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.532/2.532, allocations: 235 MB / 248.1 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.974e-05/3.988e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.402/0.4021, allocations: 54.85 MB / 364.6 MB, free: 5.391 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1491/0.5513, allocations: 82.06 MB / 446.7 MB, free: 14.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/0.5516, allocations: 63.97 kB / 446.7 MB, free: 14.28 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.9/2.451, allocations: 81.82 MB / 0.5162 GB, free: 12.37 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.843e-06/2.451, allocations: 0 / 0.5162 GB, free: 12.37 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.683e-06/2.451, allocations: 0 / 0.5162 GB, free: 12.37 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.005285/2.457, allocations: 439.9 kB / 0.5166 GB, free: 11.89 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/2.457, allocations: 12.03 kB / 0.5166 GB, free: 11.88 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.6e-05/2.457, allocations: 30.56 kB / 0.5166 GB, free: 11.84 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.087e-05/2.457, allocations: 3.984 kB / 0.5166 GB, free: 11.83 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/2.457, allocations: 168.2 kB / 0.5168 GB, free: 11.63 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/2.457, allocations: 0 / 0.5168 GB, free: 11.63 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.455e-05/2.457, allocations: 7.984 kB / 0.5168 GB, free: 11.62 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.625e-05/2.457, allocations: 29.7 kB / 0.5168 GB, free: 11.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/2.457, allocations: 3.953 kB / 0.5168 GB, free: 11.58 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/2.457, allocations: 4 kB / 0.5169 GB, free: 11.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/2.457, allocations: 0 / 0.5169 GB, free: 11.58 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.031e-05/2.457, allocations: 7.938 kB / 0.5169 GB, free: 11.57 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002657/2.457, allocations: 225 kB / 0.5171 GB, free: 11.3 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.954e-05/2.458, allocations: 22.61 kB / 0.5171 GB, free: 11.27 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.198e-05/2.458, allocations: 12.92 kB / 0.5171 GB, free: 11.25 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/2.458, allocations: 7.953 kB / 0.5171 GB, free: 11.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.733e-05/2.458, allocations: 56.27 kB / 0.5172 GB, free: 11.18 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 1.954e-06/2.458, allocations: 4.594 kB / 0.5172 GB, free: 11.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002106/2.458, allocations: 67.39 kB / 0.5172 GB, free: 11.09 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/2.458, allocations: 81.11 kB / 0.5173 GB, free: 11 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.482e-05/2.458, allocations: 85 kB / 0.5174 GB, free: 10.91 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/2.458, allocations: 25.7 kB / 0.5174 GB, free: 10.88 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.48e-05/2.458, allocations: 150.6 kB / 0.5176 GB, free: 10.73 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/2.458, allocations: 11.92 kB / 0.5176 GB, free: 10.71 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-06/2.458, allocations: 7.938 kB / 0.5176 GB, free: 10.71 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/2.458, allocations: 314.8 kB / 0.5179 GB, free: 10.39 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.346e-05/2.458, allocations: 0 / 0.5179 GB, free: 10.39 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.409e-05/2.458, allocations: 4.719 kB / 0.5179 GB, free: 10.39 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.116e-05/2.458, allocations: 29.7 kB / 0.5179 GB, free: 10.35 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/2.458, allocations: 0 / 0.5179 GB, free: 10.35 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001001/2.459, allocations: 67.34 kB / 0.518 GB, free: 10.27 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.573e-05/2.459, allocations: 37.78 kB / 0.518 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/2.459, allocations: 3.953 kB / 0.518 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/2.459, allocations: 0 / 0.518 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.527e-05/2.459, allocations: 4 kB / 0.518 GB, free: 10.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/2.459, allocations: 0 / 0.518 GB, free: 10.22 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.79e-05/2.459, allocations: 0 / 0.518 GB, free: 10.22 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/2.459, allocations: 0 / 0.518 GB, free: 10.22 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 () * 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.0001044/2.459, allocations: 134.7 kB / 0.5182 GB, free: 10.08 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.09e-05/2.459, allocations: 0 / 0.5182 GB, free: 10.08 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.344e-05/2.459, allocations: 15.02 kB / 0.5182 GB, free: 10.06 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.922e-06/2.459, allocations: 3.953 kB / 0.5182 GB, free: 10.06 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/2.459, allocations: 4 kB / 0.5182 GB, free: 10.05 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/2.459, allocations: 3.984 kB / 0.5182 GB, free: 10.05 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003224/2.459, allocations: 296.3 kB / 0.5185 GB, free: 9.699 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.145e-06/2.459, allocations: 0 / 0.5185 GB, free: 9.699 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-06/2.459, allocations: 0 / 0.5185 GB, free: 9.699 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/2.459, allocations: 3.953 kB / 0.5185 GB, free: 9.695 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/2.459, allocations: 4 kB / 0.5185 GB, free: 9.691 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/2.459, allocations: 3.984 kB / 0.5185 GB, free: 9.688 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/2.459, allocations: 4.031 kB / 0.5185 GB, free: 9.684 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001707/2.46, allocations: 161.2 kB / 0.5186 GB, free: 9.504 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.963e-05/2.46, allocations: 81.11 kB / 0.5187 GB, free: 9.406 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/2.46, allocations: 3.953 kB / 0.5187 GB, free: 9.402 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.053e-05/2.46, allocations: 0 / 0.5187 GB, free: 9.402 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.687e-05/2.46, allocations: 7.938 kB / 0.5187 GB, free: 9.395 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/2.46, allocations: 7.984 kB / 0.5187 GB, free: 9.387 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.769e-05/2.46, allocations: 82.55 kB / 0.5188 GB, free: 9.309 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.21e-07/2.46, allocations: 0 / 0.5188 GB, free: 9.309 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01342/2.473, allocations: 2.148 MB / 0.5209 GB, free: 7.16 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) * 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.02294/2.496, allocations: 2.871 MB / 0.5237 GB, free: 4.266 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001627/2.497, allocations: 63.41 kB / 0.5238 GB, free: 4.191 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/2.497, allocations: 4 kB / 0.5238 GB, free: 4.188 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 5.098e-05/2.497, allocations: 55.41 kB / 0.5238 GB, free: 4.121 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/2.497, allocations: 7.891 kB / 0.5238 GB, free: 4.113 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004609/2.501, allocations: 204.9 kB / 0.524 GB, free: 3.871 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/2.502, allocations: 0.6731 MB / 0.5247 GB, free: 3.172 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.432e-05/2.502, allocations: 7.438 kB / 0.5247 GB, free: 3.164 MB / 458.7 MB Notification: Performance of SimCode: time 1.182e-06/2.502, allocations: 0 / 0.5247 GB, free: 3.164 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_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: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_TestDistributionsFunctions.cpp:11962:14: note: 'D_24tmpVar3_' declared here double D_24tmpVar3_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:13044:58: error: use of undeclared identifier 'D_24tmpVar5_'; did you mean 'D_24tmpVar6_'? Modelica_Math_Distributions_Uniform_cumulative(D_24tmpVar5_, -1.0, 2.0,tmp3068); ^~~~~~~~~~~~ D_24tmpVar6_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:13021:14: note: 'D_24tmpVar6_' declared here double D_24tmpVar6_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:15118: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_TestDistributionsFunctions.cpp:15093:14: note: 'D_24tmpVar9_' declared here double D_24tmpVar9_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:16175:57: error: use of undeclared identifier 'D_24tmpVar11_'; did you mean 'D_24tmpVar12_'? Modelica_Math_Distributions_Normal_cumulative(D_24tmpVar11_, 1.0, 0.5,tmp6090); ^~~~~~~~~~~~~ D_24tmpVar12_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:16152:14: note: 'D_24tmpVar12_' declared here double D_24tmpVar12_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:18249:36: error: use of undeclared identifier 'D_24tmpVar14_'; did you mean 'D_24tmpVar15_'? D_24tmpVar15_ = std::abs(D_24tmpVar14_); ^~~~~~~~~~~~~ D_24tmpVar15_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:18224:14: note: 'D_24tmpVar15_' declared here double D_24tmpVar15_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:19306:58: error: use of undeclared identifier 'D_24tmpVar17_'; did you mean 'D_24tmpVar18_'? Modelica_Math_Distributions_Weibull_cumulative(D_24tmpVar17_, 0.5, 2.0,tmp9112); ^~~~~~~~~~~~~ D_24tmpVar18_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:19283:14: note: 'D_24tmpVar18_' declared here double D_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