Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.321/2.321, allocations: 234.9 MB / 250.5 MB, free: 9.68 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004515/0.0004515, allocations: 12 kB / 314.5 MB, free: 9.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3704, allocations: 54.86 MB / 369.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1513/0.5218, allocations: 83.51 MB / 452.9 MB, free: 9.047 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.5221, allocations: 71.91 kB / 452.9 MB, free: 8.977 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.748/2.27, allocations: 71.87 MB / 0.5125 GB, free: 119.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.114e-06/2.27, allocations: 0 / 0.5125 GB, free: 119.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/2.27, allocations: 0 / 0.5125 GB, free: 119.9 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.004491/2.275, allocations: 475.6 kB / 0.513 GB, free: 119.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/2.275, allocations: 9.688 kB / 0.513 GB, free: 119.5 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.818e-05/2.275, allocations: 30.56 kB / 0.513 GB, free: 119.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.569e-05/2.275, allocations: 0 / 0.513 GB, free: 119.4 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.03e-05/2.275, allocations: 159.1 kB / 0.5131 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/2.275, allocations: 0 / 0.5131 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-06/2.275, allocations: 3.969 kB / 0.5131 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.487e-05/2.275, allocations: 37.62 kB / 0.5132 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/2.275, allocations: 1.594 kB / 0.5132 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/2.275, allocations: 4 kB / 0.5132 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/2.275, allocations: 4.828 kB / 0.5132 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.49e-05/2.275, allocations: 7.719 kB / 0.5132 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001854/2.276, allocations: 225 kB / 0.5134 GB, free: 118.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.101e-05/2.276, allocations: 21.17 kB / 0.5134 GB, free: 118.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.933e-06/2.276, allocations: 0 / 0.5134 GB, free: 118.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/2.276, allocations: 60.27 kB / 0.5135 GB, free: 118.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 1.472e-06/2.276, allocations: 0 / 0.5135 GB, free: 118.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001975/2.276, allocations: 84 kB / 0.5136 GB, free: 118.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/2.276, allocations: 77.11 kB / 0.5136 GB, free: 118.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.082e-05/2.276, allocations: 85 kB / 0.5137 GB, free: 118.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.847e-06/2.276, allocations: 29.53 kB / 0.5138 GB, free: 118.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.336e-05/2.276, allocations: 150.6 kB / 0.5139 GB, free: 118.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/2.276, allocations: 15.05 kB / 0.5139 GB, free: 118.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.496e-06/2.276, allocations: 4.125 kB / 0.5139 GB, free: 118.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.617e-05/2.276, allocations: 310.8 kB / 0.5142 GB, free: 118 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.448e-05/2.276, allocations: 3.906 kB / 0.5142 GB, free: 118 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.398e-06/2.276, allocations: 0 / 0.5142 GB, free: 118 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.977e-05/2.276, allocations: 33.47 kB / 0.5143 GB, free: 118 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/2.276, allocations: 0 / 0.5143 GB, free: 118 MB / 426.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.825e-05/2.276, allocations: 66.41 kB / 0.5143 GB, free: 117.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/2.276, allocations: 33.42 kB / 0.5143 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/2.276, allocations: 96 / 0.5143 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/2.276, allocations: 4 kB / 0.5144 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.858e-05/2.276, allocations: 1.062 kB / 0.5144 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.505e-06/2.276, allocations: 7.938 kB / 0.5144 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.082e-05/2.276, allocations: 3.062 kB / 0.5144 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/2.276, allocations: 0 / 0.5144 GB, free: 117.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (result,$outputAlias_result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.03e-05/2.277, allocations: 140.7 kB / 0.5145 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.683e-05/2.277, allocations: 0 / 0.5145 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.874e-05/2.277, allocations: 7.062 kB / 0.5145 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.244e-05/2.277, allocations: 0 / 0.5145 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/2.277, allocations: 4 kB / 0.5145 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/2.277, allocations: 3.953 kB / 0.5145 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002343/2.277, allocations: 298.3 kB / 0.5148 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/2.277, allocations: 7.562 kB / 0.5148 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.56e-06/2.277, allocations: 0 / 0.5148 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/2.277, allocations: 0 / 0.5148 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/2.277, allocations: 0 / 0.5148 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/2.277, allocations: 3.953 kB / 0.5148 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/2.277, allocations: 0 / 0.5148 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001071/2.277, allocations: 172.2 kB / 0.515 GB, free: 117.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.086e-05/2.277, allocations: 77.11 kB / 0.515 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/2.277, allocations: 3.594 kB / 0.515 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.503e-05/2.277, allocations: 0 / 0.515 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.822e-05/2.277, allocations: 3.953 kB / 0.5151 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/2.277, allocations: 6.344 kB / 0.5151 GB, free: 117.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 1.651e-05/2.277, allocations: 75.28 kB / 0.5151 GB, free: 117 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/2.277, allocations: 4.031 kB / 0.5151 GB, free: 117 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009021/2.286, allocations: 1.53 MB / 0.5166 GB, free: 117 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01664/2.303, allocations: 2.631 MB / 0.5192 GB, free: 114.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001525/2.303, allocations: 63.41 kB / 0.5193 GB, free: 114.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/2.303, allocations: 0 / 0.5193 GB, free: 114.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.577e-05/2.303, allocations: 67.33 kB / 0.5193 GB, free: 114.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001617/2.303, allocations: 4.641 kB / 0.5193 GB, free: 114.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004337/2.308, allocations: 433.5 kB / 0.5197 GB, free: 113.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/2.308, allocations: 0.6771 MB / 0.5204 GB, free: 113.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.716e-05/2.308, allocations: 7.438 kB / 0.5204 GB, free: 113.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.032e-06/2.308, allocations: 0 / 0.5204 GB, free: 113.1 MB / 426.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:9170:39: error: use of undeclared identifier '_omcQ_24tmpVar2_'; did you mean '_omcQ_24tmpVar3_'? _omcQ_24tmpVar3_ = std::abs(_omcQ_24tmpVar2_); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar3_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:9145:14: note: '_omcQ_24tmpVar3_' declared here double _omcQ_24tmpVar3_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:10227:66: error: use of undeclared identifier '_omcQ_24tmpVar5_'; did you mean '_omcQ_24tmpVar6_'? Modelica_Math_Distributions_TruncatedNormal_cumulative(_omcQ_24tmpVar5_, -1.5, 1.5, 0.0, 0.5,tmp3083); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar6_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:10204:14: note: '_omcQ_24tmpVar6_' declared here double _omcQ_24tmpVar6_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:12301:39: error: use of undeclared identifier '_omcQ_24tmpVar8_'; did you mean '_omcQ_24tmpVar9_'? _omcQ_24tmpVar9_ = std::abs(_omcQ_24tmpVar8_); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar9_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:12276:14: note: '_omcQ_24tmpVar9_' declared here double _omcQ_24tmpVar9_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:13358:67: error: use of undeclared identifier '_omcQ_24tmpVar11_'; did you mean '_omcQ_24tmpVar12_'? Modelica_Math_Distributions_TruncatedWeibull_cumulative(_omcQ_24tmpVar11_, 0.0, 0.8, 0.5, 2.0,tmp6105); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar12_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:13335:14: note: '_omcQ_24tmpVar12_' declared here double _omcQ_24tmpVar12_; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 4 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.o] Error 1