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.TestDistributions.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.TestDistributions,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.329/2.329, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004455/0.0004456, allocations: 16 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3458, allocations: 54.86 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1465/0.4924, allocations: 82.15 MB / 451.5 MB, free: 8.355 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.4927, allocations: 67.91 kB / 451.6 MB, free: 8.289 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.366/2.859, allocations: 81.86 MB / 0.5209 GB, free: 46.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.575e-06/2.859, allocations: 0 / 0.5209 GB, free: 46.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.762e-06/2.859, allocations: 4 kB / 0.5209 GB, free: 46.75 MB / 394.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.006394/2.866, allocations: 438.7 kB / 0.5213 GB, free: 46.3 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/2.866, allocations: 8.031 kB / 0.5214 GB, free: 46.29 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.14e-05/2.866, allocations: 42.47 kB / 0.5214 GB, free: 46.24 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.578e-05/2.866, allocations: 0 / 0.5214 GB, free: 46.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.869e-05/2.866, allocations: 167 kB / 0.5216 GB, free: 46.04 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/2.866, allocations: 3.391 kB / 0.5216 GB, free: 46.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/2.866, allocations: 0 / 0.5216 GB, free: 46.04 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.091e-05/2.866, allocations: 33.7 kB / 0.5216 GB, free: 46 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/2.866, allocations: 3.953 kB / 0.5216 GB, free: 46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/2.866, allocations: 0 / 0.5216 GB, free: 46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/2.866, allocations: 4 kB / 0.5216 GB, free: 45.99 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.338e-05/2.866, allocations: 0 / 0.5216 GB, free: 45.99 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001897/2.866, allocations: 229 kB / 0.5218 GB, free: 45.72 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.336e-05/2.866, allocations: 22.55 kB / 0.5218 GB, free: 45.69 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-06/2.866, allocations: 4 kB / 0.5218 GB, free: 45.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/2.866, allocations: 73.14 kB / 0.5219 GB, free: 45.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.452e-06/2.866, allocations: 0 / 0.5219 GB, free: 45.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001967/2.867, allocations: 63.41 kB / 0.522 GB, free: 45.52 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/2.867, allocations: 85.05 kB / 0.5221 GB, free: 45.42 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.071e-05/2.867, allocations: 85 kB / 0.5221 GB, free: 45.33 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.036e-05/2.867, allocations: 25.7 kB / 0.5222 GB, free: 45.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.487e-05/2.867, allocations: 158.7 kB / 0.5223 GB, free: 45.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/2.867, allocations: 7.906 kB / 0.5223 GB, free: 45.14 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-06/2.867, allocations: 0 / 0.5223 GB, free: 45.14 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.805e-05/2.867, allocations: 314.8 kB / 0.5226 GB, free: 44.82 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.267e-05/2.867, allocations: 0 / 0.5226 GB, free: 44.82 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.998e-06/2.867, allocations: 4 kB / 0.5226 GB, free: 44.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.847e-05/2.867, allocations: 29.7 kB / 0.5226 GB, free: 44.78 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/2.867, allocations: 0 / 0.5226 GB, free: 44.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.676e-05/2.867, allocations: 67.39 kB / 0.5227 GB, free: 44.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/2.867, allocations: 37.8 kB / 0.5227 GB, free: 44.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/2.867, allocations: 0 / 0.5227 GB, free: 44.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/2.867, allocations: 3.953 kB / 0.5228 GB, free: 44.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.949e-05/2.867, allocations: 3.938 kB / 0.5228 GB, free: 44.65 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/2.867, allocations: 3.938 kB / 0.5228 GB, free: 44.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.366e-05/2.867, allocations: 4 kB / 0.5228 GB, free: 44.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/2.867, allocations: 4.672 kB / 0.5228 GB, free: 44.64 MB / 394.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 6.943e-05/2.867, allocations: 138.9 kB / 0.5229 GB, free: 44.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.725e-05/2.867, allocations: 4 kB / 0.5229 GB, free: 44.49 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.946e-05/2.867, allocations: 7.125 kB / 0.5229 GB, free: 44.49 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/2.867, allocations: 3.953 kB / 0.5229 GB, free: 44.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/2.867, allocations: 1.078 kB / 0.5229 GB, free: 44.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/2.867, allocations: 0 / 0.5229 GB, free: 44.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/2.868, allocations: 296.4 kB / 0.5232 GB, free: 44.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/2.868, allocations: 0 / 0.5232 GB, free: 44.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.122e-06/2.868, allocations: 3.75 kB / 0.5232 GB, free: 44.13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/2.868, allocations: 0 / 0.5232 GB, free: 44.13 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/2.868, allocations: 3.953 kB / 0.5232 GB, free: 44.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/2.868, allocations: 11.95 kB / 0.5232 GB, free: 44.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/2.868, allocations: 0 / 0.5232 GB, free: 44.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001013/2.868, allocations: 161.3 kB / 0.5234 GB, free: 43.94 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.135e-05/2.868, allocations: 81.09 kB / 0.5234 GB, free: 43.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/2.868, allocations: 0 / 0.5234 GB, free: 43.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.196e-05/2.868, allocations: 7.953 kB / 0.5235 GB, free: 43.83 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.576e-05/2.868, allocations: 0 / 0.5235 GB, free: 43.83 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/2.868, allocations: 0 / 0.5235 GB, free: 43.83 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.465e-05/2.868, allocations: 79.31 kB / 0.5235 GB, free: 43.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.7e-07/2.868, allocations: 0 / 0.5235 GB, free: 43.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01346/2.881, allocations: 2.163 MB / 0.5256 GB, free: 41.61 MB / 394.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.02313/2.905, allocations: 2.867 MB / 0.5284 GB, free: 38.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001589/2.905, allocations: 63.39 kB / 0.5285 GB, free: 38.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/2.905, allocations: 3.828 kB / 0.5285 GB, free: 38.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.212e-05/2.905, allocations: 59.41 kB / 0.5286 GB, free: 38.61 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001626/2.905, allocations: 3.953 kB / 0.5286 GB, free: 38.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005969/2.911, allocations: 408.7 kB / 0.529 GB, free: 38.15 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001253/2.911, allocations: 0.679 MB / 0.5296 GB, free: 37.45 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.86e-05/2.911, allocations: 7.438 kB / 0.5296 GB, free: 37.44 MB / 394.7 MB Notification: Performance of SimCode: time 1.142e-06/2.911, allocations: 0 / 0.5296 GB, free: 37.44 MB / 394.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_TestDistributionsCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:11987: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_TestDistributionsFunctions.cpp:11962:14: note: '_omcQ_24tmpVar3_' declared here double _omcQ_24tmpVar3_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:13044:58: error: use of undeclared identifier '_omcQ_24tmpVar5_'; did you mean '_omcQ_24tmpVar6_'? Modelica_Math_Distributions_Uniform_cumulative(_omcQ_24tmpVar5_, -1.0, 2.0,tmp3068); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar6_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:13021:14: note: '_omcQ_24tmpVar6_' declared here double _omcQ_24tmpVar6_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:15118: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_TestDistributionsFunctions.cpp:15093:14: note: '_omcQ_24tmpVar9_' declared here double _omcQ_24tmpVar9_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:16175:57: error: use of undeclared identifier '_omcQ_24tmpVar11_'; did you mean '_omcQ_24tmpVar12_'? Modelica_Math_Distributions_Normal_cumulative(_omcQ_24tmpVar11_, 1.0, 0.5,tmp6090); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar12_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:16152:14: note: '_omcQ_24tmpVar12_' declared here double _omcQ_24tmpVar12_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:18249:40: error: use of undeclared identifier '_omcQ_24tmpVar14_'; did you mean '_omcQ_24tmpVar15_'? _omcQ_24tmpVar15_ = std::abs(_omcQ_24tmpVar14_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar15_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:18224:14: note: '_omcQ_24tmpVar15_' declared here double _omcQ_24tmpVar15_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:19306:58: error: use of undeclared identifier '_omcQ_24tmpVar17_'; did you mean '_omcQ_24tmpVar18_'? Modelica_Math_Distributions_Weibull_cumulative(_omcQ_24tmpVar17_, 0.5, 2.0,tmp9112); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar18_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:19283:14: note: '_omcQ_24tmpVar18_' declared here double _omcQ_24tmpVar18_; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFMU.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 6 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.o] Error 1