Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001613/0.001613, allocations: 186.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.06/2.06, allocations: 205.4 MB / 222.5 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001132/0.001131, allocations: 87.42 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5328/0.5328, allocations: 43.55 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004834/0.0004834, allocations: 16 kB / 431.5 MB, free: 5.863 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1357, allocations: 58.84 MB / 490.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4852/0.6209, allocations: 88.48 MB / 0.5652 GB, free: 13.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002885/0.6213, allocations: 70.12 kB / 0.5653 GB, free: 13.86 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.309/1.93, allocations: 71.91 MB / 0.6355 GB, free: 5.891 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.424e-06/1.93, allocations: 0 / 0.6355 GB, free: 5.891 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.222e-06/1.93, allocations: 0 / 0.6355 GB, free: 5.891 MB / 458.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.004914/1.935, allocations: 472.7 kB / 0.636 GB, free: 5.375 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/1.935, allocations: 12.03 kB / 0.636 GB, free: 5.363 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.866e-05/1.935, allocations: 44.67 kB / 0.636 GB, free: 5.316 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.977e-05/1.935, allocations: 4 kB / 0.636 GB, free: 5.312 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/1.935, allocations: 159.1 kB / 0.6362 GB, free: 5.117 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/1.935, allocations: 0 / 0.6362 GB, free: 5.117 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/1.936, allocations: 0 / 0.6362 GB, free: 5.117 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/1.936, allocations: 33.64 kB / 0.6362 GB, free: 5.078 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/1.936, allocations: 5.016 kB / 0.6362 GB, free: 5.074 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/1.936, allocations: 4.688 kB / 0.6362 GB, free: 5.07 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/1.936, allocations: 4 kB / 0.6362 GB, free: 5.066 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.218e-05/1.936, allocations: 11.94 kB / 0.6362 GB, free: 5.055 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002782/1.936, allocations: 229 kB / 0.6365 GB, free: 4.781 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.556e-05/1.936, allocations: 22.59 kB / 0.6365 GB, free: 4.75 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.844e-06/1.936, allocations: 0 / 0.6365 GB, free: 4.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.202e-05/1.936, allocations: 67.64 kB / 0.6365 GB, free: 4.672 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 1.442e-06/1.936, allocations: 4 kB / 0.6365 GB, free: 4.668 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002264/1.936, allocations: 71.41 kB / 0.6366 GB, free: 4.586 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.035e-05/1.937, allocations: 85.05 kB / 0.6367 GB, free: 4.484 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.521e-05/1.937, allocations: 89 kB / 0.6368 GB, free: 4.391 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/1.937, allocations: 25.7 kB / 0.6368 GB, free: 4.359 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.204e-05/1.937, allocations: 150.6 kB / 0.6369 GB, free: 4.211 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/1.937, allocations: 3.906 kB / 0.637 GB, free: 4.207 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-06/1.937, allocations: 0 / 0.637 GB, free: 4.207 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/1.937, allocations: 315 kB / 0.6373 GB, free: 3.891 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.025e-05/1.937, allocations: 4 kB / 0.6373 GB, free: 3.887 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.599e-05/1.937, allocations: 4 kB / 0.6373 GB, free: 3.883 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.436e-05/1.937, allocations: 33.64 kB / 0.6373 GB, free: 3.844 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/1.937, allocations: 0 / 0.6373 GB, free: 3.844 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001075/1.937, allocations: 63.39 kB / 0.6374 GB, free: 3.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.899e-05/1.937, allocations: 37.7 kB / 0.6374 GB, free: 3.727 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.882e-06/1.937, allocations: 0 / 0.6374 GB, free: 3.727 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/1.937, allocations: 0 / 0.6374 GB, free: 3.727 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.001e-05/1.937, allocations: 4.094 kB / 0.6374 GB, free: 3.723 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/1.937, allocations: 0.8594 kB / 0.6374 GB, free: 3.723 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.627e-05/1.937, allocations: 3.953 kB / 0.6374 GB, free: 3.719 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/1.937, allocations: 4 kB / 0.6374 GB, free: 3.715 MB / 458.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 0.0001147/1.937, allocations: 139.5 kB / 0.6375 GB, free: 3.562 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.787e-05/1.938, allocations: 0 / 0.6375 GB, free: 3.562 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.038e-05/1.938, allocations: 7.125 kB / 0.6375 GB, free: 3.559 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/1.938, allocations: 0 / 0.6375 GB, free: 3.559 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/1.938, allocations: 0 / 0.6375 GB, free: 3.559 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/1.938, allocations: 4 kB / 0.6375 GB, free: 3.555 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/1.938, allocations: 300.2 kB / 0.6378 GB, free: 3.199 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/1.938, allocations: 4 kB / 0.6378 GB, free: 3.195 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.614e-06/1.938, allocations: 7.922 kB / 0.6378 GB, free: 3.188 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/1.938, allocations: 0 / 0.6378 GB, free: 3.188 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/1.938, allocations: 0 / 0.6378 GB, free: 3.188 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/1.938, allocations: 0 / 0.6378 GB, free: 3.188 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/1.938, allocations: 0 / 0.6378 GB, free: 3.188 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001838/1.938, allocations: 177.2 kB / 0.638 GB, free: 2.992 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.969e-05/1.938, allocations: 77.11 kB / 0.6381 GB, free: 2.898 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.678e-05/1.938, allocations: 0 / 0.6381 GB, free: 2.898 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.225e-05/1.938, allocations: 0 / 0.6381 GB, free: 2.898 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.56e-05/1.938, allocations: 4 kB / 0.6381 GB, free: 2.895 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/1.938, allocations: 0 / 0.6381 GB, free: 2.895 MB / 458.7 MB Notification: Performance of sorting global known variables: time 4.805e-05/1.938, allocations: 79.23 kB / 0.6382 GB, free: 2.816 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.31e-07/1.938, allocations: 0 / 0.6382 GB, free: 2.816 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009963/1.948, allocations: 1.527 MB / 0.6397 GB, free: 1.289 MB / 458.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.01844/1.967, allocations: 2.643 MB / 0.6422 GB, free: 14.62 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001704/1.967, allocations: 63.34 kB / 0.6423 GB, free: 14.55 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/1.967, allocations: 0 / 0.6423 GB, free: 14.55 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 5.737e-05/1.967, allocations: 55.41 kB / 0.6423 GB, free: 14.48 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001499/1.967, allocations: 7.984 kB / 0.6424 GB, free: 14.47 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004975/1.972, allocations: 438.7 kB / 0.6428 GB, free: 14 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/1.973, allocations: 0.6771 MB / 0.6434 GB, free: 13.29 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.319e-05/1.973, allocations: 7.438 kB / 0.6434 GB, free: 13.29 MB / 474.7 MB Notification: Performance of SimCode: time 1.102e-06/1.973, allocations: 0 / 0.6434 GB, free: 13.29 MB / 474.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:9170:39: error: use of undeclared identifier '_omcQ_24tmpVar4_'; did you mean '_omcQ_24tmpVar5_'? _omcQ_24tmpVar5_ = std::abs(_omcQ_24tmpVar4_); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar5_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:9145:14: note: '_omcQ_24tmpVar5_' declared here double _omcQ_24tmpVar5_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:10227:66: error: use of undeclared identifier '_omcQ_24tmpVar7_'; did you mean '_omcQ_24tmpVar8_'? Modelica_Math_Distributions_TruncatedNormal_cumulative(_omcQ_24tmpVar7_, -1.5, 1.5, 0.0, 0.5,tmp3083); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar8_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:10204:14: note: '_omcQ_24tmpVar8_' declared here double _omcQ_24tmpVar8_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:12301:40: error: use of undeclared identifier '_omcQ_24tmpVar10_'; did you mean '_omcQ_24tmpVar11_'? _omcQ_24tmpVar11_ = std::abs(_omcQ_24tmpVar10_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar11_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:12276:14: note: '_omcQ_24tmpVar11_' declared here double _omcQ_24tmpVar11_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:13358:67: error: use of undeclared identifier '_omcQ_24tmpVar13_'; did you mean '_omcQ_24tmpVar14_'? Modelica_Math_Distributions_TruncatedWeibull_cumulative(_omcQ_24tmpVar13_, 0.0, 0.8, 0.5, 2.0,tmp6105); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar14_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:13335:14: note: '_omcQ_24tmpVar14_' declared here double _omcQ_24tmpVar14_; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFMU.cpp:11: /var/lib/jenkins1/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_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsCalcHelperMain.o] Error 1