Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Failed Tests when building from source

Failed Tests when building from source

After cloning the git repo and following the readme instructions for building openmodelica, a number of tests have failed (106 of 2981 failed). I was wondering if this possibly is an indication of a erroneous build. Any help on resolving any issues would be much appreciated.

Thanks,

Aris

Code:



Failed tests:
    ./openmodelica/cppruntime/BouncingBall.mos
    ./openmodelica/cppruntime/RefArrayDim2.mos
    ./openmodelica/cppruntime/WhenStatement1.mos
    ./openmodelica/cppruntime/WhenTuple.mos
    ./openmodelica/cppruntime/arraySliceTest.mos
    ./openmodelica/cppruntime/clockedAlgloopTest.mos
    ./openmodelica/cppruntime/clockedEventTest.mos
    ./openmodelica/cppruntime/clockedSolverTest.mos
    ./openmodelica/cppruntime/clockedTest.mos
    ./openmodelica/cppruntime/clockedTypesTest.mos
    ./openmodelica/cppruntime/externalArrayInputTest.mos
    ./openmodelica/cppruntime/fmu/modelExchange/1.0/Crane_FMU1_CPP.mos
    ./openmodelica/cppruntime/fmu/modelExchange/1.0/DIC_FMU1_CPP.mos
    ./openmodelica/cppruntime/fmu/modelExchange/2.0/DIC_FMU2_CPP.mos
    ./openmodelica/cppruntime/fmu/modelExchange/2.0/testDrumBoiler.mos
    ./openmodelica/cppruntime/fmu/modelExchange/2.0/testFMU2MatrixIO.mos
    ./openmodelica/cppruntime/fmu/modelExchange/2.0/testModelDescription.mos
    ./openmodelica/cppruntime/functionPointerTest.mos
    ./openmodelica/cppruntime/genDebugSymbols/Modelica.Fluid.Examples.BranchingDynamicPipes_genDebugSymbols.mos
    ./openmodelica/cppruntime/hardcodedStartValues/Modelica.Fluid.Examples.BranchingDynamicPipes_hardcodedStartValues.mos
    ./openmodelica/cppruntime/hpcom/Modelica.Electrical.Analog.Examples.CauerLowPassSC_level_omp_measureTime.mos
    ./openmodelica/cppruntime/hpcom/Modelica.Electrical.Analog.Examples.CauerLowPassSC_levelfix_pthreads_memory.mos
    ./openmodelica/cppruntime/hpcom/Modelica.Electrical.Spice3.Examples.CoupledInductors_level_omp.mos
    ./openmodelica/cppruntime/hpcom/Modelica.Electrical.Spice3.Examples.CoupledInductors_list_pthreads_spin.mos
    ./openmodelica/cppruntime/hpcom/Modelica.Thermal.HeatTransfer.Examples.Motor_mcp_omp.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Blocks.Examples.BooleanNetwork1.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Blocks.Examples.Filter.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Electrical.Analog.Examples.CauerLowPassSC.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Electrical.Digital.Examples.Counter.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Electrical.Spice3.Examples.CoupledInductors.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Mechanics.Rotational.Examples.Backlash.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Mechanics.Rotational.Examples.RollingWheel.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Mechanics.Translational.Examples.Accelerate.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Mechanics.Translational.Examples.InitialConditions.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Media.Examples.IdealGasH2O.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Media.Examples.TestOnly.IdealGasN2.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Media.Examples.Tests.MediaTestModels.Air.DryAirNasa.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Media.Examples.WaterIF97.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.StateGraph.Examples.FirstExample.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Thermal.HeatTransfer.Examples.TwoMasses.mos
    ./openmodelica/cppruntime/libraries/msl32/Modelica.Utilities.Examples.readRealParameterModel.mos
    ./openmodelica/cppruntime/mathFunctionsTest.mos
    ./openmodelica/cppruntime/omedit/BouncingBall_OMEdit_flags.mos
    ./openmodelica/cppruntime/recordTupleReturnTest.mos
    ./openmodelica/cppruntime/solveTest.mos
    ./openmodelica/cppruntime/staticLinking/Modelica.Electrical.Analog.Examples.CauerLowPassSC_cpp_static.mos
    ./openmodelica/cppruntime/tearnonlin1.mos
    ./openmodelica/cppruntime/testMatrixIO.mos
    ./openmodelica/cppruntime/trapezoidTest.mos
    ./openmodelica/cruntime/sensitivities/testLotkaVoltera.mos
    ./openmodelica/cruntime/sensitivities/testVanDerPol.mos
    ./openmodelica/cruntime/sensitivities/testWorldScenario1.mos
    ./openmodelica/cruntime/simoptions/testOutputIntervalIDAstepsnoEquidistant.mos
    ./openmodelica/fmi/ModelExchange/2.0/testBug3902.mos
    ./simulation/modelica/built_in_functions/MeasureTime.mos
    ./simulation/modelica/hpcom/BouncingBall.mos
    ./simulation/modelica/hpcom/ElectricalCircuit.mos
    ./simulation/modelica/hpcom/MergingExample.mos
    ./simulation/modelica/hpcom/Modelica.Blocks.Examples.BooleanNetwork1.mos
    ./simulation/modelica/hpcom/Modelica.Blocks.Examples.InverseModel.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Analog.Examples.CauerLowPassSC.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Analog.Examples.CompareTransformers.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Analog.Examples.OvervoltageProtection.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Analog.Examples.SwitchWithArc.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Spice3.Examples.CoupledInductors.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Spice3.Examples.Graetz.mos
    ./simulation/modelica/hpcom/Modelica.Fluid.Examples.BranchingDynamicPipes.mos
    ./simulation/modelica/hpcom/Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.mos
    ./simulation/modelica/hpcom/Modelica.Mechanics.Rotational.Examples.HeatLosses.mos
    ./simulation/modelica/hpcom/SimpleResistor.mos
    ./simulation/modelica/nonlinear_system/nonlinearMixed_kinsol.mos
    ./simulation/modelica/nonlinear_system/nonlinear_kinsol.mos
    ./simulation/modelica/nonlinear_system/problem1_kinsol.mos
    ./simulation/modelica/nonlinear_system/problem6_kinsol.mos
    ./simulation/modelica/nonlinear_system/problem7_kinsol.mos
    ./simulation/modelica/solver/LotkaVolterraWithInput.mos
    ./simulation/modelica/solver/bug2231-radau1.mos
    ./simulation/modelica/solver/problem1-ida.mos
    ./simulation/modelica/solver/problem1-lobatto2.mos
    ./simulation/modelica/solver/problem1-lobatto4.mos
    ./simulation/modelica/solver/problem1-lobatto6.mos
    ./simulation/modelica/solver/problem1-radau1.mos
    ./simulation/modelica/solver/problem1-radau3.mos
    ./simulation/modelica/solver/problem1-radau5.mos
    ./simulation/modelica/solver/problem2-ida.mos
    ./simulation/modelica/solver/problem2-idaLinearSolver.mos
    ./simulation/modelica/solver/problem2-lobatto2.mos
    ./simulation/modelica/solver/problem2-lobatto4.mos
    ./simulation/modelica/solver/problem2-lobatto6.mos
    ./simulation/modelica/solver/problem2-radau1.mos
    ./simulation/modelica/solver/problem2-radau3.mos
    ./simulation/modelica/solver/problem2-radau5.mos
    ./simulation/modelica/solver/testDAEmodeDrumBoiler.mos
    ./simulation/modelica/solver/testDAEp1.mos
    ./simulation/modelica/solver/testDAEp2.mos
    ./simulation/modelica/solver/testDAEp3.mos
    ./simulation/modelica/solver/testDAEp4.mos
    ./simulation/modelica/solver/testDAEp5.mos
    ./simulation/modelica/solver/testDAEp6.mos


Re: Failed Tests when building from source

Most (all?) of those are from optional dependencies. The C++ runtime is needed for cppruntime and hpcom tests. The sundials suite needs to be installed in order to run IDA / Radau / etc solvers (need to ./configure again after installing those packages).

Re: Failed Tests when building from source

Thanks for the answer.

after  ./configure CC=clang CXX=clang++

I notice the following responses:

checking if cppruntime is requested... no
checking for CORBA... none

but if i check for packages i have everything related to sundials

Code:


➜  OpenModelica git:(master) dnf list installed | grep sundials
sundials.x86_64                     2.6.2-19.fc24               @fedora         
sundials-devel.x86_64               2.6.2-19.fc24               @fedora         
sundials-fortran.x86_64             2.6.2-19.fc24               @fedora         
sundials-mpich.x86_64               2.6.2-19.fc24               @fedora         
sundials-openmp.x86_64              2.6.2-19.fc24               @fedora         
sundials-openmpi.x86_64             2.6.2-19.fc24               @fedora         
sundials-threads.x86_64             2.6.2-19.fc24               @fedora   

➜  OpenModelica git:(master) dnf list installed | grep ORB
ORBit.x86_64                        1:0.5.17-44.fc24            @fedora         
ORBit2.x86_64                       2.14.19-15.fc24             @fedora         
omniORB.x86_64                      4.2.1-2.fc24                @fedora         
omniORB-devel.x86_64                4.2.1-2.fc24                @fedora         
omniORB-utils.x86_64                4.2.1-2.fc24                @fedora   

and c++ runtime libs

Code:


➜  OpenModelica git:(master) dnf list installed | grep c++     
ImageMagick-c++.x86_64              6.9.3.0-2.fc24              @fedora         
compat-libstdc++-33.x86_64          3.2.3-68.16.fc24            @fedora         
gcc-c++.x86_64                      6.3.1-1.fc24                @updates       
gnutls-c++.x86_64                   3.4.12-1.fc24               @fedora         
libsigc++.x86_64                    1.2.7-19.fc24               @fedora         
libsigc++20.x86_64                  2.8.0-1.fc24                @koji-override-0
libsigc++20-devel.x86_64            2.8.0-1.fc24                @fedora         
libstdc++.i686                      6.3.1-1.fc24                @updates       
libstdc++.x86_64                    6.3.1-1.fc24                @updates       
libstdc++-devel.x86_64              6.3.1-1.fc24                @updates       
ncurses-c++-libs.x86_64             6.0-6.20160709.fc24         @updates

still the same tests fail. Any idea of what might be going wrong with the build process.

Thanks

Re: Failed Tests when building from source

The C++ runtime is requested using "--with-cppruntime". You should typically have a different line saying it failed to find omniidl if it doesn't find CORBA (but this has no impact on the tests).

Sundials is detected in the OMCompiler configure. It first looks for headers and then tries to link. If it says it fails to find sundials, read the config.log carefully to see what is missing. I think you need all of cvode, kinsol and the ida solver installed (which are separate packages on Ubuntu; don't know about Fedora).

Re: Failed Tests when building from source

somehow related to this issue.


I also had to pass qt4 directory explicitly.

Code:


Failed tests:
    ./openmodelica/cppruntime/hpcom/Modelica.Electrical.Analog.Examples.CauerLowPassSC_level_omp_measureTime.mos
    ./openmodelica/cppruntime/hpcom/Modelica.Electrical.Spice3.Examples.CoupledInductors_level_omp.mos
    ./openmodelica/cppruntime/hpcom/Modelica.Thermal.HeatTransfer.Examples.Motor_mcp_omp.mos
    ./openmodelica/cppruntime/staticLinking/Modelica.Electrical.Analog.Examples.CauerLowPassSC_cpp_static.mos
    ./openmodelica/cruntime/sensitivities/testLotkaVoltera.mos
    ./openmodelica/cruntime/sensitivities/testVanDerPol.mos
    ./openmodelica/cruntime/sensitivities/testWorldScenario1.mos
    ./openmodelica/cruntime/simoptions/testOutputIntervalIDAstepsnoEquidistant.mos
    ./openmodelica/fmi/ModelExchange/2.0/testBug3902.mos
    ./simulation/modelica/built_in_functions/MeasureTime.mos
    ./simulation/modelica/hpcom/BouncingBall.mos
    ./simulation/modelica/hpcom/ElectricalCircuit.mos
    ./simulation/modelica/hpcom/MergingExample.mos
    ./simulation/modelica/hpcom/Modelica.Blocks.Examples.BooleanNetwork1.mos
    ./simulation/modelica/hpcom/Modelica.Blocks.Examples.InverseModel.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Analog.Examples.CauerLowPassSC.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Analog.Examples.CompareTransformers.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Analog.Examples.OvervoltageProtection.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Analog.Examples.SwitchWithArc.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Spice3.Examples.CoupledInductors.mos
    ./simulation/modelica/hpcom/Modelica.Electrical.Spice3.Examples.Graetz.mos
    ./simulation/modelica/hpcom/Modelica.Fluid.Examples.BranchingDynamicPipes.mos
    ./simulation/modelica/hpcom/Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.mos
    ./simulation/modelica/hpcom/Modelica.Mechanics.Rotational.Examples.HeatLosses.mos
    ./simulation/modelica/hpcom/SimpleResistor.mos
    ./simulation/modelica/nonlinear_system/nonlinearMixed_kinsol.mos
    ./simulation/modelica/nonlinear_system/nonlinear_kinsol.mos
    ./simulation/modelica/nonlinear_system/problem1_kinsol.mos
    ./simulation/modelica/nonlinear_system/problem6_kinsol.mos
    ./simulation/modelica/nonlinear_system/problem7_kinsol.mos
    ./simulation/modelica/solver/LotkaVolterraWithInput.mos
    ./simulation/modelica/solver/bug2231-radau1.mos
    ./simulation/modelica/solver/problem1-ida.mos
    ./simulation/modelica/solver/problem1-lobatto2.mos
    ./simulation/modelica/solver/problem1-lobatto4.mos
    ./simulation/modelica/solver/problem1-lobatto6.mos
    ./simulation/modelica/solver/problem1-radau1.mos
    ./simulation/modelica/solver/problem1-radau3.mos
    ./simulation/modelica/solver/problem1-radau5.mos
    ./simulation/modelica/solver/problem2-ida.mos
    ./simulation/modelica/solver/problem2-idaLinearSolver.mos
    ./simulation/modelica/solver/problem2-lobatto2.mos
    ./simulation/modelica/solver/problem2-lobatto4.mos
    ./simulation/modelica/solver/problem2-lobatto6.mos
    ./simulation/modelica/solver/problem2-radau1.mos
    ./simulation/modelica/solver/problem2-radau3.mos
    ./simulation/modelica/solver/problem2-radau5.mos
    ./simulation/modelica/solver/testDAEmodeDrumBoiler.mos
    ./simulation/modelica/solver/testDAEp1.mos
    ./simulation/modelica/solver/testDAEp2.mos
    ./simulation/modelica/solver/testDAEp3.mos
    ./simulation/modelica/solver/testDAEp4.mos
    ./simulation/modelica/solver/testDAEp5.mos
    ./simulation/modelica/solver/testDAEp6.mos

55 of 2981 failed

still cant find any packages related to these solvers, kinsol or hpcom.

Thanks for your kind help

Aris

There are 0 guests and 0 other users also viewing this topic
You are here: