Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributions",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.002452/0.002452, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.149/2.149, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00117/0.001169, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2897/0.2897, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.378e-05/3.381e-05, allocations: 7.984 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1234, allocations: 58.87 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4888/0.6122, allocations: 86.96 MB / 0.5578 GB, free: 0.582 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/0.6125, allocations: 69.88 kB / 0.5579 GB, free: 0.5508 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.017/2.629, allocations: 97.13 MB / 0.6527 GB, free: 8 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.499e-06/2.629, allocations: 4 kB / 0.6527 GB, free: 7.996 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.652e-06/2.629, allocations: 7.938 kB / 0.6527 GB, free: 7.988 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.005689/2.635, allocations: 435.9 kB / 0.6532 GB, free: 7.512 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/2.635, allocations: 8.031 kB / 0.6532 GB, free: 7.504 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.455e-05/2.635, allocations: 38.55 kB / 0.6532 GB, free: 7.457 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/2.635, allocations: 3.953 kB / 0.6532 GB, free: 7.453 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/2.635, allocations: 159.1 kB / 0.6534 GB, free: 7.258 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/2.635, allocations: 4 kB / 0.6534 GB, free: 7.254 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/2.635, allocations: 0 / 0.6534 GB, free: 7.254 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/2.636, allocations: 41.62 kB / 0.6534 GB, free: 7.207 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/2.636, allocations: 4 kB / 0.6534 GB, free: 7.203 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/2.636, allocations: 4 kB / 0.6534 GB, free: 7.199 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/2.636, allocations: 0 / 0.6534 GB, free: 7.199 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.772e-05/2.636, allocations: 3.953 kB / 0.6534 GB, free: 7.195 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002835/2.636, allocations: 221 kB / 0.6536 GB, free: 6.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.812e-05/2.636, allocations: 30.53 kB / 0.6537 GB, free: 6.891 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.458e-05/2.636, allocations: 12.92 kB / 0.6537 GB, free: 6.875 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/2.636, allocations: 4 kB / 0.6537 GB, free: 6.871 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.714e-05/2.636, allocations: 60.27 kB / 0.6537 GB, free: 6.797 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 1.774e-06/2.636, allocations: 0 / 0.6537 GB, free: 6.797 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002159/2.636, allocations: 63.36 kB / 0.6538 GB, free: 6.723 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/2.636, allocations: 85.09 kB / 0.6539 GB, free: 6.621 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.377e-05/2.637, allocations: 85 kB / 0.654 GB, free: 6.531 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/2.637, allocations: 29.73 kB / 0.654 GB, free: 6.496 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.421e-05/2.637, allocations: 150.6 kB / 0.6541 GB, free: 6.348 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.947e-05/2.637, allocations: 8.531 kB / 0.6541 GB, free: 6.34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-06/2.637, allocations: 0 / 0.6541 GB, free: 6.34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/2.637, allocations: 311.6 kB / 0.6544 GB, free: 6.027 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.047e-05/2.637, allocations: 7.938 kB / 0.6544 GB, free: 6.02 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.285e-05/2.637, allocations: 0 / 0.6544 GB, free: 6.02 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.427e-05/2.637, allocations: 33.64 kB / 0.6545 GB, free: 5.98 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/2.637, allocations: 64 / 0.6545 GB, free: 5.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001095/2.637, allocations: 71.39 kB / 0.6545 GB, free: 5.898 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.485e-05/2.637, allocations: 41.08 kB / 0.6546 GB, free: 5.855 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/2.637, allocations: 0 / 0.6546 GB, free: 5.855 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/2.637, allocations: 0 / 0.6546 GB, free: 5.855 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.867e-05/2.637, allocations: 0 / 0.6546 GB, free: 5.855 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/2.637, allocations: 0 / 0.6546 GB, free: 5.855 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.556e-05/2.637, allocations: 3.953 kB / 0.6546 GB, free: 5.852 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/2.637, allocations: 4 kB / 0.6546 GB, free: 5.848 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 9.609e-05/2.637, allocations: 130.7 kB / 0.6547 GB, free: 5.707 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.412e-05/2.637, allocations: 12.02 kB / 0.6547 GB, free: 5.695 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.713e-05/2.637, allocations: 7.125 kB / 0.6547 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/2.637, allocations: 0 / 0.6547 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/2.637, allocations: 3.938 kB / 0.6547 GB, free: 5.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/2.637, allocations: 0 / 0.6547 GB, free: 5.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003442/2.638, allocations: 296.3 kB / 0.655 GB, free: 5.328 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/2.638, allocations: 0 / 0.655 GB, free: 5.328 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.512e-06/2.638, allocations: 0 / 0.655 GB, free: 5.328 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/2.638, allocations: 0 / 0.655 GB, free: 5.328 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.136e-06/2.638, allocations: 4.031 kB / 0.655 GB, free: 5.324 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/2.638, allocations: 0 / 0.655 GB, free: 5.324 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.301e-06/2.638, allocations: 7.938 kB / 0.655 GB, free: 5.316 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/2.638, allocations: 165.2 kB / 0.6552 GB, free: 5.133 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.365e-05/2.638, allocations: 81.09 kB / 0.6553 GB, free: 5.035 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/2.638, allocations: 0 / 0.6553 GB, free: 5.035 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.275e-05/2.638, allocations: 0 / 0.6553 GB, free: 5.035 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.749e-05/2.638, allocations: 8.031 kB / 0.6553 GB, free: 5.027 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/2.638, allocations: 7.953 kB / 0.6553 GB, free: 5.02 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.564e-05/2.638, allocations: 75.28 kB / 0.6553 GB, free: 4.945 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.81e-07/2.638, allocations: 0 / 0.6553 GB, free: 4.945 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01378/2.652, allocations: 2.16 MB / 0.6575 GB, free: 2.785 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.02342/2.676, allocations: 2.871 MB / 0.6603 GB, free: 15.88 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001832/2.676, allocations: 67.39 kB / 0.6603 GB, free: 15.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/2.676, allocations: 0 / 0.6603 GB, free: 15.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 5.308e-05/2.676, allocations: 63.28 kB / 0.6604 GB, free: 15.73 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001541/2.676, allocations: 6.641 kB / 0.6604 GB, free: 15.73 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005192/2.681, allocations: 188.1 kB / 0.6606 GB, free: 15.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/2.682, allocations: 0.677 MB / 0.6612 GB, free: 14.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.645e-05/2.682, allocations: 7.438 kB / 0.6612 GB, free: 14.79 MB / 474.7 MB Notification: Performance of SimCode: time 1.493e-06/2.682, allocations: 0 / 0.6612 GB, free: 14.79 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_TestDistributionsCalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:12038:35: error: use of undeclared identifier 'D_24tmpVar4_'; did you mean 'D_24tmpVar5_'? D_24tmpVar5_ = std::abs(D_24tmpVar4_); ^~~~~~~~~~~~ D_24tmpVar5_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:12013:14: note: 'D_24tmpVar5_' declared here double D_24tmpVar5_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:13095:58: error: use of undeclared identifier 'D_24tmpVar7_'; did you mean 'D_24tmpVar8_'? Modelica_Math_Distributions_Uniform_cumulative(D_24tmpVar7_, -1.0, 2.0,tmp3074); ^~~~~~~~~~~~ D_24tmpVar8_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:13072:14: note: 'D_24tmpVar8_' declared here double D_24tmpVar8_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:15169:36: error: use of undeclared identifier 'D_24tmpVar10_'; did you mean 'D_24tmpVar11_'? D_24tmpVar11_ = std::abs(D_24tmpVar10_); ^~~~~~~~~~~~~ D_24tmpVar11_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:15144:14: note: 'D_24tmpVar11_' declared here double D_24tmpVar11_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:16226:57: error: use of undeclared identifier 'D_24tmpVar13_'; did you mean 'D_24tmpVar14_'? Modelica_Math_Distributions_Normal_cumulative(D_24tmpVar13_, 1.0, 0.5,tmp6096); ^~~~~~~~~~~~~ D_24tmpVar14_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:16203:14: note: 'D_24tmpVar14_' declared here double D_24tmpVar14_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:18300:36: error: use of undeclared identifier 'D_24tmpVar16_'; did you mean 'D_24tmpVar17_'? D_24tmpVar17_ = std::abs(D_24tmpVar16_); ^~~~~~~~~~~~~ D_24tmpVar17_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:18275:14: note: 'D_24tmpVar17_' declared here double D_24tmpVar17_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:19357:58: error: use of undeclared identifier 'D_24tmpVar19_'; did you mean 'D_24tmpVar20_'? Modelica_Math_Distributions_Weibull_cumulative(D_24tmpVar19_, 0.5, 2.0,tmp9118); ^~~~~~~~~~~~~ D_24tmpVar20_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:19334:14: note: 'D_24tmpVar20_' declared here double D_24tmpVar20_; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFMU.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 6 errors generated. : recipe for target 'OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsCalcHelperMain.o] Error 1