Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadModel(ModelicaTest): time 2.2/2.2, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.365e-05/3.372e-05, allocations: 8 kB / 304.9 MB, free: 5.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.331/0.331, allocations: 54.85 MB / 359.8 MB, free: 2.664 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.4595, allocations: 83.42 MB / 443.2 MB, free: 13.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.4597, allocations: 65.16 kB / 443.2 MB, free: 13.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.07/1.53, allocations: 71.78 MB / 0.5029 GB, free: 5.656 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.184e-06/1.53, allocations: 0 / 0.5029 GB, free: 5.656 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.074e-05/1.53, allocations: 0 / 0.5029 GB, free: 5.656 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.003163/1.533, allocations: 459.9 kB / 0.5034 GB, free: 5.156 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/1.533, allocations: 8.031 kB / 0.5034 GB, free: 5.148 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.936e-05/1.533, allocations: 0 / 0.5034 GB, free: 5.148 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/1.534, allocations: 171.1 kB / 0.5036 GB, free: 4.941 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/1.534, allocations: 2.625 kB / 0.5036 GB, free: 4.941 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/1.534, allocations: 0 / 0.5036 GB, free: 4.941 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.642e-05/1.534, allocations: 30.55 kB / 0.5036 GB, free: 4.906 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/1.534, allocations: 3.953 kB / 0.5036 GB, free: 4.902 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.177e-06/1.534, allocations: 0 / 0.5036 GB, free: 4.902 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.244e-06/1.534, allocations: 0 / 0.5036 GB, free: 4.902 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.74e-05/1.534, allocations: 0 / 0.5036 GB, free: 4.902 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001584/1.534, allocations: 145.7 kB / 0.5037 GB, free: 4.711 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.699e-05/1.534, allocations: 30.53 kB / 0.5038 GB, free: 4.672 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.685e-05/1.534, allocations: 4.859 kB / 0.5038 GB, free: 4.664 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.655e-06/1.534, allocations: 3.984 kB / 0.5038 GB, free: 4.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.652e-05/1.534, allocations: 60.98 kB / 0.5038 GB, free: 4.586 MB / 442.7 MB Notification: Performance of pre-optimization done (n=1): time 2.249e-06/1.534, allocations: 0 / 0.5038 GB, free: 4.586 MB / 442.7 MB Notification: Performance of matching and sorting (n=1): time 0.000175/1.534, allocations: 67.34 kB / 0.5039 GB, free: 4.508 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.637e-05/1.534, allocations: 81.11 kB / 0.504 GB, free: 4.41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.565e-05/1.534, allocations: 89.03 kB / 0.5041 GB, free: 4.316 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/1.535, allocations: 33.62 kB / 0.5041 GB, free: 4.277 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.983e-05/1.535, allocations: 150.6 kB / 0.5042 GB, free: 4.129 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/1.535, allocations: 1.031 kB / 0.5042 GB, free: 4.129 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.757e-06/1.535, allocations: 3.938 kB / 0.5042 GB, free: 4.125 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/1.535, allocations: 310.8 kB / 0.5045 GB, free: 3.812 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.361e-05/1.535, allocations: 4 kB / 0.5045 GB, free: 3.809 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.312e-06/1.535, allocations: 0 / 0.5045 GB, free: 3.809 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.593e-05/1.535, allocations: 30.48 kB / 0.5046 GB, free: 3.773 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.382e-06/1.535, allocations: 0 / 0.5046 GB, free: 3.773 MB / 442.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001031/1.535, allocations: 63.41 kB / 0.5046 GB, free: 3.699 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/1.535, allocations: 33.69 kB / 0.5047 GB, free: 3.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/1.535, allocations: 4 kB / 0.5047 GB, free: 3.656 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/1.535, allocations: 0 / 0.5047 GB, free: 3.656 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.564e-06/1.535, allocations: 1.406 kB / 0.5047 GB, free: 3.656 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/1.535, allocations: 6.297 kB / 0.5047 GB, free: 3.652 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.862e-05/1.535, allocations: 0 / 0.5047 GB, free: 3.652 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.648e-06/1.535, allocations: 0 / 0.5047 GB, free: 3.652 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: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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.0001009/1.535, allocations: 134.7 kB / 0.5048 GB, free: 3.508 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.016e-05/1.535, allocations: 0 / 0.5048 GB, free: 3.508 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.683e-05/1.535, allocations: 6.719 kB / 0.5048 GB, free: 3.504 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.499e-06/1.535, allocations: 0 / 0.5048 GB, free: 3.504 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/1.535, allocations: 0 / 0.5048 GB, free: 3.504 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/1.535, allocations: 11.94 kB / 0.5048 GB, free: 3.492 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001242/1.536, allocations: 141.7 kB / 0.5049 GB, free: 3.305 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-06/1.536, allocations: 3.938 kB / 0.505 GB, free: 3.301 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.067e-06/1.536, allocations: 0.875 kB / 0.505 GB, free: 3.301 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.654e-06/1.536, allocations: 4 kB / 0.505 GB, free: 3.297 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.121e-06/1.536, allocations: 0 / 0.505 GB, free: 3.297 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/1.536, allocations: 5.781 kB / 0.505 GB, free: 3.293 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.526e-06/1.536, allocations: 0 / 0.505 GB, free: 3.293 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001271/1.536, allocations: 90.78 kB / 0.5051 GB, free: 3.18 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.62e-05/1.536, allocations: 85.02 kB / 0.5051 GB, free: 3.078 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/1.536, allocations: 2.25 kB / 0.5051 GB, free: 3.078 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.563e-05/1.536, allocations: 4.031 kB / 0.5051 GB, free: 3.074 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.403e-05/1.536, allocations: 3.984 kB / 0.5051 GB, free: 3.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.202e-06/1.536, allocations: 0 / 0.5051 GB, free: 3.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 4.485e-05/1.536, allocations: 83.22 kB / 0.5052 GB, free: 2.988 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.43e-07/1.536, allocations: 4 kB / 0.5052 GB, free: 2.984 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007177/1.543, allocations: 1.519 MB / 0.5067 GB, free: 1.465 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: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.01229/1.555, allocations: 2.037 MB / 0.5087 GB, free: 15.43 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001221/1.556, allocations: 55.41 kB / 0.5088 GB, free: 15.36 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.882e-06/1.556, allocations: 0 / 0.5088 GB, free: 15.36 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 5.254e-05/1.556, allocations: 59.39 kB / 0.5088 GB, free: 15.29 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001067/1.556, allocations: 11.86 kB / 0.5088 GB, free: 15.28 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001752/1.556, allocations: 74.83 kB / 0.5089 GB, free: 15.18 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/1.556, allocations: 0.6848 MB / 0.5096 GB, free: 14.47 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.341e-05/1.556, allocations: 7.438 kB / 0.5096 GB, free: 14.46 MB / 458.7 MB Notification: Performance of SimCode: time 1.808e-06/1.556, allocations: 0 / 0.5096 GB, free: 14.46 MB / 458.7 MB Notification: Performance of Templates: time 0.3999/1.956, allocations: 84.18 MB / 0.5918 GB, free: 93.21 MB / 458.7 MB make -j1 -f ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.cpp:28: ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:9170:49: error: use of undeclared identifier '_omcQuot_24746D7056617232_'; did you mean '_omcQuot_24746D7056617233_'? _omcQuot_24746D7056617233_ = std::abs(_omcQuot_24746D7056617232_); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617233_ ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:9145:14: note: '_omcQuot_24746D7056617233_' declared here double _omcQuot_24746D7056617233_; ^ ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:10227:66: error: use of undeclared identifier '_omcQuot_24746D7056617235_'; did you mean '_omcQuot_24746D7056617236_'? Modelica_Math_Distributions_TruncatedNormal_cumulative(_omcQuot_24746D7056617235_, -1.5, 1.5, 0.0, 0.5,tmp3083); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617236_ ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:10204:14: note: '_omcQuot_24746D7056617236_' declared here double _omcQuot_24746D7056617236_; ^ ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:12301:49: error: use of undeclared identifier '_omcQuot_24746D7056617238_'; did you mean '_omcQuot_24746D7056617239_'? _omcQuot_24746D7056617239_ = std::abs(_omcQuot_24746D7056617238_); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617239_ ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:12276:14: note: '_omcQuot_24746D7056617239_' declared here double _omcQuot_24746D7056617239_; ^ ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:13358:67: error: use of undeclared identifier '_omcQuot_24746D705661723131_'; did you mean '_omcQuot_24746D705661723132_'? Modelica_Math_Distributions_TruncatedWeibull_cumulative(_omcQuot_24746D705661723131_, 0.0, 0.8, 0.5, 2.0,tmp6105); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723132_ ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:13335:14: note: '_omcQuot_24746D705661723132_' declared here double _omcQuot_24746D705661723132_; ^ 4 errors generated. : recipe for target 'OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.o] Error 1