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.375/2.375, allocations: 235 MB / 248 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.363e-05/3.366e-05, allocations: 4 kB / 309.8 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.3887, allocations: 54.85 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1547/0.5435, allocations: 83.42 MB / 448 MB, free: 13.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002605/0.5438, allocations: 63.97 kB / 448.1 MB, free: 13.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.382/1.926, allocations: 71.83 MB / 0.5078 GB, free: 5.121 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.813e-06/1.926, allocations: 0 / 0.5078 GB, free: 5.121 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.582e-06/1.926, allocations: 0 / 0.5078 GB, free: 5.121 MB / 442.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.004396/1.93, allocations: 467.8 kB / 0.5082 GB, free: 4.613 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/1.93, allocations: 8.031 kB / 0.5082 GB, free: 4.605 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.153e-05/1.931, allocations: 34.56 kB / 0.5082 GB, free: 4.562 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.785e-05/1.931, allocations: 0 / 0.5082 GB, free: 4.562 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/1.931, allocations: 159.1 kB / 0.5084 GB, free: 4.367 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/1.931, allocations: 8 kB / 0.5084 GB, free: 4.359 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/1.931, allocations: 5.297 kB / 0.5084 GB, free: 4.355 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/1.931, allocations: 33.69 kB / 0.5084 GB, free: 4.316 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/1.931, allocations: 3.953 kB / 0.5084 GB, free: 4.312 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/1.931, allocations: 0 / 0.5084 GB, free: 4.312 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/1.931, allocations: 0 / 0.5084 GB, free: 4.312 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.971e-05/1.931, allocations: 7.938 kB / 0.5084 GB, free: 4.305 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002582/1.931, allocations: 229 kB / 0.5087 GB, free: 4.031 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.868e-05/1.931, allocations: 22.58 kB / 0.5087 GB, free: 4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.401e-05/1.931, allocations: 12.92 kB / 0.5087 GB, free: 3.984 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/1.931, allocations: 7.891 kB / 0.5087 GB, free: 3.977 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.314e-05/1.931, allocations: 56.27 kB / 0.5088 GB, free: 3.906 MB / 442.7 MB Notification: Performance of pre-optimization done (n=2): time 1.874e-06/1.931, allocations: 4 kB / 0.5088 GB, free: 3.902 MB / 442.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002106/1.932, allocations: 71.36 kB / 0.5088 GB, free: 3.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/1.932, allocations: 81.11 kB / 0.5089 GB, free: 3.723 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.264e-05/1.932, allocations: 85.66 kB / 0.509 GB, free: 3.633 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/1.932, allocations: 25.7 kB / 0.509 GB, free: 3.602 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.742e-05/1.932, allocations: 150.6 kB / 0.5092 GB, free: 3.453 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.432e-05/1.932, allocations: 7.906 kB / 0.5092 GB, free: 3.445 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-06/1.932, allocations: 0 / 0.5092 GB, free: 3.445 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/1.932, allocations: 310.8 kB / 0.5095 GB, free: 3.133 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.57e-05/1.932, allocations: 4 kB / 0.5095 GB, free: 3.129 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.316e-05/1.932, allocations: 9.219 kB / 0.5095 GB, free: 3.121 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.934e-05/1.932, allocations: 29.7 kB / 0.5095 GB, free: 3.086 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/1.932, allocations: 0 / 0.5095 GB, free: 3.086 MB / 442.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001001/1.932, allocations: 67.33 kB / 0.5096 GB, free: 3.008 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.379e-05/1.932, allocations: 29.7 kB / 0.5096 GB, free: 2.973 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/1.932, allocations: 7.953 kB / 0.5096 GB, free: 2.965 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/1.932, allocations: 0 / 0.5096 GB, free: 2.965 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.752e-05/1.932, allocations: 0 / 0.5096 GB, free: 2.965 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.483e-06/1.932, allocations: 0 / 0.5096 GB, free: 2.965 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.391e-05/1.932, allocations: 8.094 kB / 0.5096 GB, free: 2.957 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/1.932, allocations: 0 / 0.5096 GB, free: 2.957 MB / 442.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 () * 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 9.567e-05/1.933, allocations: 134.7 kB / 0.5097 GB, free: 2.812 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.743e-05/1.933, allocations: 0 / 0.5097 GB, free: 2.812 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.393e-05/1.933, allocations: 11.02 kB / 0.5097 GB, free: 2.801 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/1.933, allocations: 3.953 kB / 0.5098 GB, free: 2.797 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/1.933, allocations: 4 kB / 0.5098 GB, free: 2.793 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/1.933, allocations: 0 / 0.5098 GB, free: 2.793 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003062/1.933, allocations: 296.3 kB / 0.51 GB, free: 2.441 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/1.933, allocations: 0 / 0.51 GB, free: 2.441 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.016e-05/1.933, allocations: 7.984 kB / 0.51 GB, free: 2.434 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/1.933, allocations: 3.953 kB / 0.5101 GB, free: 2.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/1.933, allocations: 0 / 0.5101 GB, free: 2.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/1.933, allocations: 0 / 0.5101 GB, free: 2.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.933, allocations: 0 / 0.5101 GB, free: 2.43 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001544/1.933, allocations: 173.2 kB / 0.5102 GB, free: 2.238 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/1.933, allocations: 85.17 kB / 0.5103 GB, free: 2.137 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.779e-05/1.933, allocations: 3.953 kB / 0.5103 GB, free: 2.133 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.029e-05/1.933, allocations: 0 / 0.5103 GB, free: 2.133 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.468e-05/1.933, allocations: 4 kB / 0.5103 GB, free: 2.129 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-06/1.933, allocations: 3.984 kB / 0.5103 GB, free: 2.125 MB / 442.7 MB Notification: Performance of sorting global known variables: time 4.682e-05/1.933, allocations: 78.52 kB / 0.5104 GB, free: 2.051 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.196e-06/1.933, allocations: 0 / 0.5104 GB, free: 2.051 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009587/1.943, allocations: 1.527 MB / 0.5119 GB, free: 0.5234 MB / 442.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) * 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.01708/1.96, allocations: 2.644 MB / 0.5145 GB, free: 13.85 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001709/1.96, allocations: 63.44 kB / 0.5145 GB, free: 13.78 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/1.96, allocations: 0 / 0.5145 GB, free: 13.78 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 5.261e-05/1.961, allocations: 63.41 kB / 0.5146 GB, free: 13.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/1.961, allocations: 4.719 kB / 0.5146 GB, free: 13.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004189/1.965, allocations: 223.9 kB / 0.5148 GB, free: 13.44 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/1.965, allocations: 0.6731 MB / 0.5155 GB, free: 12.74 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/1.965, allocations: 7.438 kB / 0.5155 GB, free: 12.73 MB / 458.7 MB Notification: Performance of SimCode: time 1.382e-06/1.965, allocations: 0 / 0.5155 GB, free: 12.73 MB / 458.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:35: error: use of undeclared identifier 'D_24tmpVar2_'; did you mean 'D_24tmpVar3_'? D_24tmpVar3_ = std::abs(D_24tmpVar2_); ^~~~~~~~~~~~ D_24tmpVar3_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:9145:14: note: 'D_24tmpVar3_' declared here double D_24tmpVar3_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:10227:66: error: use of undeclared identifier 'D_24tmpVar5_'; did you mean 'D_24tmpVar6_'? Modelica_Math_Distributions_TruncatedNormal_cumulative(D_24tmpVar5_, -1.5, 1.5, 0.0, 0.5,tmp3083); ^~~~~~~~~~~~ D_24tmpVar6_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:10204:14: note: 'D_24tmpVar6_' declared here double D_24tmpVar6_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:12301:35: error: use of undeclared identifier 'D_24tmpVar8_'; did you mean 'D_24tmpVar9_'? D_24tmpVar9_ = std::abs(D_24tmpVar8_); ^~~~~~~~~~~~ D_24tmpVar9_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:12276:14: note: 'D_24tmpVar9_' declared here double D_24tmpVar9_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:13358:67: error: use of undeclared identifier 'D_24tmpVar11_'; did you mean 'D_24tmpVar12_'? Modelica_Math_Distributions_TruncatedWeibull_cumulative(D_24tmpVar11_, 0.0, 0.8, 0.5, 2.0,tmp6105); ^~~~~~~~~~~~~ D_24tmpVar12_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:13335:14: note: 'D_24tmpVar12_' declared here double D_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