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.002485/0.002485, allocations: 185.9 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.259/2.259, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001226/0.001226, allocations: 94.56 kB / 270.9 MB, free: 8.402 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.602/0.602, allocations: 43.54 MB / 362.7 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006614/0.0006614, allocations: 12 kB / 431.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1385, allocations: 58.84 MB / 490.3 MB, free: 11.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4716/0.6103, allocations: 87.06 MB / 0.5638 GB, free: 15.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.6106, allocations: 67.97 kB / 0.5639 GB, free: 15.49 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.928/2.538, allocations: 97.18 MB / 0.6588 GB, free: 14.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.885e-06/2.538, allocations: 0 / 0.6588 GB, free: 14.21 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.833e-06/2.538, allocations: 0 / 0.6588 GB, free: 14.21 MB / 490.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.005343/2.544, allocations: 448.8 kB / 0.6592 GB, free: 13.72 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/2.544, allocations: 8.031 kB / 0.6592 GB, free: 13.71 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.712e-05/2.544, allocations: 38.72 kB / 0.6593 GB, free: 13.67 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.077e-05/2.544, allocations: 4.938 kB / 0.6593 GB, free: 13.67 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/2.544, allocations: 159.1 kB / 0.6594 GB, free: 13.47 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/2.544, allocations: 0 / 0.6594 GB, free: 13.47 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/2.544, allocations: 4 kB / 0.6594 GB, free: 13.47 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/2.544, allocations: 33.69 kB / 0.6595 GB, free: 13.43 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/2.544, allocations: 5.031 kB / 0.6595 GB, free: 13.43 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-06/2.544, allocations: 0 / 0.6595 GB, free: 13.43 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/2.544, allocations: 0 / 0.6595 GB, free: 13.43 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.862e-05/2.544, allocations: 7.953 kB / 0.6595 GB, free: 13.42 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002743/2.544, allocations: 232.9 kB / 0.6597 GB, free: 13.14 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.703e-05/2.545, allocations: 22.56 kB / 0.6597 GB, free: 13.11 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.119e-05/2.545, allocations: 0 / 0.6597 GB, free: 13.11 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.641e-05/2.545, allocations: 60.27 kB / 0.6598 GB, free: 13.04 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 1.573e-06/2.545, allocations: 0 / 0.6598 GB, free: 13.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002389/2.545, allocations: 75.39 kB / 0.6598 GB, free: 12.95 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/2.545, allocations: 81.06 kB / 0.6599 GB, free: 12.85 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.423e-05/2.545, allocations: 86.41 kB / 0.66 GB, free: 12.76 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/2.545, allocations: 33.7 kB / 0.66 GB, free: 12.72 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.699e-05/2.545, allocations: 154.5 kB / 0.6602 GB, free: 12.57 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/2.545, allocations: 10.05 kB / 0.6602 GB, free: 12.56 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-06/2.545, allocations: 4 kB / 0.6602 GB, free: 12.56 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/2.545, allocations: 310.8 kB / 0.6605 GB, free: 12.25 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.675e-05/2.545, allocations: 4 kB / 0.6605 GB, free: 12.24 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.869e-06/2.545, allocations: 0 / 0.6605 GB, free: 12.24 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.856e-05/2.545, allocations: 37.69 kB / 0.6605 GB, free: 12.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/2.545, allocations: 0 / 0.6605 GB, free: 12.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001031/2.546, allocations: 59.41 kB / 0.6606 GB, free: 12.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.236e-05/2.546, allocations: 29.7 kB / 0.6606 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/2.546, allocations: 12.03 kB / 0.6606 GB, free: 12.08 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/2.546, allocations: 0 / 0.6606 GB, free: 12.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.898e-05/2.546, allocations: 0 / 0.6606 GB, free: 12.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/2.546, allocations: 6.703 kB / 0.6606 GB, free: 12.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.41e-05/2.546, allocations: 3.953 kB / 0.6606 GB, free: 12.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-06/2.546, allocations: 0 / 0.6606 GB, free: 12.07 MB / 490.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.0001088/2.546, allocations: 144.2 kB / 0.6608 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/2.546, allocations: 0 / 0.6608 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.053e-05/2.546, allocations: 3.125 kB / 0.6608 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/2.546, allocations: 4 kB / 0.6608 GB, free: 11.91 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/2.546, allocations: 4 kB / 0.6608 GB, free: 11.91 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/2.546, allocations: 0 / 0.6608 GB, free: 11.91 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003247/2.546, allocations: 296.3 kB / 0.6611 GB, free: 11.56 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/2.546, allocations: 0 / 0.6611 GB, free: 11.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.606e-06/2.546, allocations: 3.938 kB / 0.6611 GB, free: 11.55 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/2.546, allocations: 0 / 0.6611 GB, free: 11.55 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/2.546, allocations: 4 kB / 0.6611 GB, free: 11.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/2.546, allocations: 0 / 0.6611 GB, free: 11.55 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/2.546, allocations: 0 / 0.6611 GB, free: 11.55 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001604/2.547, allocations: 173.2 kB / 0.6612 GB, free: 11.36 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-05/2.547, allocations: 77.11 kB / 0.6613 GB, free: 11.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/2.547, allocations: 7.938 kB / 0.6613 GB, free: 11.26 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.094e-05/2.547, allocations: 0 / 0.6613 GB, free: 11.26 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.061e-05/2.547, allocations: 0 / 0.6613 GB, free: 11.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.658e-06/2.547, allocations: 0 / 0.6613 GB, free: 11.26 MB / 490.7 MB Notification: Performance of sorting global known variables: time 3.588e-05/2.547, allocations: 83.23 kB / 0.6614 GB, free: 11.18 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.71e-07/2.547, allocations: 7.969 kB / 0.6614 GB, free: 11.17 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01359/2.56, allocations: 2.16 MB / 0.6635 GB, free: 9.012 MB / 490.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.02247/2.583, allocations: 2.872 MB / 0.6663 GB, free: 6.117 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001748/2.583, allocations: 59.41 kB / 0.6664 GB, free: 6.047 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/2.583, allocations: 0 / 0.6664 GB, free: 6.047 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 5.364e-05/2.583, allocations: 59.39 kB / 0.6664 GB, free: 5.977 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001558/2.583, allocations: 7.938 kB / 0.6664 GB, free: 5.969 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006215/2.59, allocations: 416.4 kB / 0.6668 GB, free: 5.512 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002935/2.59, allocations: 0.677 MB / 0.6675 GB, free: 4.809 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.899e-05/2.59, allocations: 11.42 kB / 0.6675 GB, free: 4.797 MB / 490.7 MB Notification: Performance of SimCode: time 1.322e-06/2.59, allocations: 0 / 0.6675 GB, free: 4.797 MB / 490.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: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_TestDistributionsFunctions.cpp:12013:14: note: '_omcQ_24tmpVar5_' declared here double _omcQ_24tmpVar5_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:13095:58: error: use of undeclared identifier '_omcQ_24tmpVar7_'; did you mean '_omcQ_24tmpVar8_'? Modelica_Math_Distributions_Uniform_cumulative(_omcQ_24tmpVar7_, -1.0, 2.0,tmp3074); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar8_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:13072:14: note: '_omcQ_24tmpVar8_' declared here double _omcQ_24tmpVar8_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:15169: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_TestDistributionsFunctions.cpp:15144:14: note: '_omcQ_24tmpVar11_' declared here double _omcQ_24tmpVar11_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:16226:57: error: use of undeclared identifier '_omcQ_24tmpVar13_'; did you mean '_omcQ_24tmpVar14_'? Modelica_Math_Distributions_Normal_cumulative(_omcQ_24tmpVar13_, 1.0, 0.5,tmp6096); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar14_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:16203:14: note: '_omcQ_24tmpVar14_' declared here double _omcQ_24tmpVar14_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:18300:40: error: use of undeclared identifier '_omcQ_24tmpVar16_'; did you mean '_omcQ_24tmpVar17_'? _omcQ_24tmpVar17_ = std::abs(_omcQ_24tmpVar16_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar17_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:18275:14: note: '_omcQ_24tmpVar17_' declared here double _omcQ_24tmpVar17_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:19357:58: error: use of undeclared identifier '_omcQ_24tmpVar19_'; did you mean '_omcQ_24tmpVar20_'? Modelica_Math_Distributions_Weibull_cumulative(_omcQ_24tmpVar19_, 0.5, 2.0,tmp9118); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar20_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestDistributionsFunctions.cpp:19334:14: note: '_omcQ_24tmpVar20_' declared here double _omcQ_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