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.001562/0.001569, allocations: 180.1 kB / 13.66 MB, free: 1.66 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.117/2.117, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001229/0.001228, allocations: 90.62 kB / 267.5 MB, free: 14.1 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.2806/0.2806, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.127e-05/4.154e-05, allocations: 7.984 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1231, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4791/0.6022, allocations: 88.4 MB / 0.5592 GB, free: 14.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.6026, allocations: 73.3 kB / 0.5593 GB, free: 14.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.342/1.944, allocations: 71.86 MB / 0.6295 GB, free: 13.87 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.485e-06/1.944, allocations: 0 / 0.6295 GB, free: 13.87 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.456e-05/1.944, allocations: 0 / 0.6295 GB, free: 13.87 MB / 442.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.00671/1.951, allocations: 466.8 kB / 0.6299 GB, free: 13.37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.412e-05/1.951, allocations: 16.03 kB / 0.6299 GB, free: 13.36 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.692e-05/1.951, allocations: 30.56 kB / 0.6299 GB, free: 13.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.715e-05/1.951, allocations: 3.953 kB / 0.63 GB, free: 13.31 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/1.951, allocations: 167 kB / 0.6301 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/1.952, allocations: 3.938 kB / 0.6301 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.488e-05/1.952, allocations: 4 kB / 0.6301 GB, free: 13.1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/1.952, allocations: 29.45 kB / 0.6301 GB, free: 13.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.679e-06/1.952, allocations: 4 kB / 0.6302 GB, free: 13.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-06/1.952, allocations: 0 / 0.6302 GB, free: 13.07 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/1.952, allocations: 0 / 0.6302 GB, free: 13.07 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.163e-05/1.952, allocations: 7.953 kB / 0.6302 GB, free: 13.06 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003364/1.952, allocations: 232 kB / 0.6304 GB, free: 12.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.123e-05/1.952, allocations: 26.55 kB / 0.6304 GB, free: 12.75 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.147e-05/1.952, allocations: 12.8 kB / 0.6304 GB, free: 12.74 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/1.952, allocations: 0 / 0.6304 GB, free: 12.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.311e-05/1.952, allocations: 60.27 kB / 0.6305 GB, free: 12.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=2): time 1.973e-06/1.952, allocations: 0 / 0.6305 GB, free: 12.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003658/1.953, allocations: 75.16 kB / 0.6305 GB, free: 12.58 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.007e-05/1.953, allocations: 77.11 kB / 0.6306 GB, free: 12.49 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.314e-05/1.953, allocations: 85 kB / 0.6307 GB, free: 12.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/1.953, allocations: 29.64 kB / 0.6307 GB, free: 12.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.249e-05/1.953, allocations: 150.6 kB / 0.6309 GB, free: 12.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.25e-05/1.953, allocations: 3.906 kB / 0.6309 GB, free: 12.21 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-06/1.953, allocations: 4.031 kB / 0.6309 GB, free: 12.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001795/1.953, allocations: 314.8 kB / 0.6312 GB, free: 11.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.399e-05/1.953, allocations: 3.438 kB / 0.6312 GB, free: 11.89 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.852e-05/1.953, allocations: 4 kB / 0.6312 GB, free: 11.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.446e-05/1.954, allocations: 29.69 kB / 0.6312 GB, free: 11.85 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/1.954, allocations: 0 / 0.6312 GB, free: 11.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001728/1.954, allocations: 67.16 kB / 0.6313 GB, free: 11.78 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.592e-05/1.954, allocations: 29.7 kB / 0.6313 GB, free: 11.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/1.954, allocations: 4.078 kB / 0.6313 GB, free: 11.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/1.954, allocations: 4 kB / 0.6313 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.551e-05/1.954, allocations: 3.984 kB / 0.6313 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/1.954, allocations: 4 kB / 0.6313 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.442e-05/1.954, allocations: 3.953 kB / 0.6313 GB, free: 11.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/1.954, allocations: 0 / 0.6313 GB, free: 11.72 MB / 442.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.0001343/1.954, allocations: 134.6 kB / 0.6315 GB, free: 11.58 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.149e-05/1.954, allocations: 0 / 0.6315 GB, free: 11.58 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.883e-05/1.954, allocations: 3.125 kB / 0.6315 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/1.954, allocations: 3.938 kB / 0.6315 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/1.954, allocations: 4 kB / 0.6315 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/1.954, allocations: 0 / 0.6315 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005121/1.955, allocations: 307.6 kB / 0.6318 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/1.955, allocations: 0 / 0.6318 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.236e-06/1.955, allocations: 0 / 0.6318 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/1.955, allocations: 0 / 0.6318 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/1.955, allocations: 0 / 0.6318 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/1.955, allocations: 4 kB / 0.6318 GB, free: 11.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/1.955, allocations: 3.953 kB / 0.6318 GB, free: 11.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002198/1.955, allocations: 172.3 kB / 0.6319 GB, free: 11.01 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.86e-05/1.955, allocations: 77.11 kB / 0.632 GB, free: 10.92 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/1.955, allocations: 4 kB / 0.632 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.889e-05/1.955, allocations: 7.875 kB / 0.632 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.662e-05/1.956, allocations: 0 / 0.632 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/1.956, allocations: 3.953 kB / 0.632 GB, free: 10.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.359e-05/1.956, allocations: 78.84 kB / 0.6321 GB, free: 10.83 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.72e-07/1.956, allocations: 8.031 kB / 0.6321 GB, free: 10.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01518/1.971, allocations: 1.53 MB / 0.6336 GB, free: 9.297 MB / 442.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.02646/1.997, allocations: 2.634 MB / 0.6362 GB, free: 6.652 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0002059/1.998, allocations: 62.66 kB / 0.6362 GB, free: 6.582 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/1.998, allocations: 3.938 kB / 0.6362 GB, free: 6.578 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 6.987e-05/1.998, allocations: 59.41 kB / 0.6363 GB, free: 6.508 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002453/1.998, allocations: 3.75 kB / 0.6363 GB, free: 6.508 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006399/2.004, allocations: 219.7 kB / 0.6365 GB, free: 6.254 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/2.005, allocations: 0.6811 MB / 0.6372 GB, free: 5.547 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.623e-05/2.005, allocations: 7.438 kB / 0.6372 GB, free: 5.539 MB / 442.7 MB Notification: Performance of SimCode: time 1.753e-06/2.005, allocations: 3.938 kB / 0.6372 GB, free: 5.535 MB / 442.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: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_TestTruncatedDistributionsFunctions.cpp:9145:14: note: 'D_24tmpVar5_' declared here double D_24tmpVar5_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:10227:66: error: use of undeclared identifier 'D_24tmpVar7_'; did you mean 'D_24tmpVar8_'? Modelica_Math_Distributions_TruncatedNormal_cumulative(D_24tmpVar7_, -1.5, 1.5, 0.0, 0.5,tmp3083); ^~~~~~~~~~~~ D_24tmpVar8_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:10204:14: note: 'D_24tmpVar8_' declared here double D_24tmpVar8_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:12301: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_TestTruncatedDistributionsFunctions.cpp:12276:14: note: 'D_24tmpVar11_' declared here double D_24tmpVar11_; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:13358:67: error: use of undeclared identifier 'D_24tmpVar13_'; did you mean 'D_24tmpVar14_'? Modelica_Math_Distributions_TruncatedWeibull_cumulative(D_24tmpVar13_, 0.0, 0.8, 0.5, 2.0,tmp6105); ^~~~~~~~~~~~~ D_24tmpVar14_ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestTruncatedDistributionsFunctions.cpp:13335:14: note: 'D_24tmpVar14_' declared here double D_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