Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001676/0.00168, allocations: 177.3 kB / 8.15 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.734/1.734, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001232/0.001232, allocations: 86.2 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2663/0.2663, allocations: 43.5 MB / 353.2 MB, free: 2.027 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.918e-06/9.859e-06, allocations: 224 / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2807, allocations: 58.83 MB / 476.5 MB, free: 5.074 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1503/0.431, allocations: 87.67 MB / 0.551 GB, free: 11.39 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.4313, allocations: 67.97 kB / 0.551 GB, free: 11.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 9.453/9.884, allocations: 2.308 GB / 2.859 GB, free: 139 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.133e-06/9.884, allocations: 0 / 2.859 GB, free: 139 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.00523/9.889, allocations: 475.2 kB / 2.86 GB, free: 138.5 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/9.889, allocations: 7.875 kB / 2.86 GB, free: 138.5 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/9.889, allocations: 3.938 kB / 2.86 GB, free: 138.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.69e-05/9.889, allocations: 159.1 kB / 2.86 GB, free: 138.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/9.889, allocations: 0 / 2.86 GB, free: 138.3 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.317e-06/9.889, allocations: 3.984 kB / 2.86 GB, free: 138.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.548e-05/9.889, allocations: 7.406 kB / 2.86 GB, free: 138.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.165e-05/9.889, allocations: 29.64 kB / 2.86 GB, free: 138.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/9.89, allocations: 3.906 kB / 2.86 GB, free: 138.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/9.89, allocations: 0 / 2.86 GB, free: 138.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.758e-06/9.89, allocations: 0 / 2.86 GB, free: 138.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001008/9.89, allocations: 128.8 kB / 2.86 GB, free: 138.1 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.455e-05/9.89, allocations: 21.95 kB / 2.86 GB, free: 138.1 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.457e-05/9.89, allocations: 4.859 kB / 2.86 GB, free: 138.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.556e-06/9.89, allocations: 0 / 2.86 GB, free: 138.1 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/9.89, allocations: 64.27 kB / 2.86 GB, free: 138 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 1.422e-06/9.89, allocations: 3.938 kB / 2.86 GB, free: 138 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.000136/9.89, allocations: 33.58 kB / 2.86 GB, free: 138 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/9.89, allocations: 80.64 kB / 2.86 GB, free: 137.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.218e-05/9.89, allocations: 88.97 kB / 2.861 GB, free: 137.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.348e-06/9.89, allocations: 25.7 kB / 2.861 GB, free: 137.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.477e-05/9.89, allocations: 150.6 kB / 2.861 GB, free: 137.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.09e-05/9.89, allocations: 3.906 kB / 2.861 GB, free: 137.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-06/9.89, allocations: 0 / 2.861 GB, free: 137.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.569e-05/9.89, allocations: 310.8 kB / 2.861 GB, free: 137.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.494e-06/9.89, allocations: 0 / 2.861 GB, free: 137.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.444e-06/9.89, allocations: 11.38 kB / 2.861 GB, free: 137.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.585e-05/9.89, allocations: 0 / 2.861 GB, free: 137.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/9.89, allocations: 3.719 kB / 2.861 GB, free: 137.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.356e-05/9.89, allocations: 33.58 kB / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/9.89, allocations: 6.75 kB / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/9.89, allocations: 3.047 kB / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/9.89, allocations: 3.938 kB / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.512e-06/9.89, allocations: 0.6562 kB / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.998e-06/9.89, allocations: 3.438 kB / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.639e-05/9.89, allocations: 3.906 kB / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/9.89, allocations: 0 / 2.861 GB, free: 137.2 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: 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 5.566e-05/9.89, allocations: 56.75 kB / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.548e-06/9.891, allocations: 0 / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.375e-05/9.891, allocations: 3 kB / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/9.891, allocations: 3.938 kB / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/9.891, allocations: 7.094 kB / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/9.891, allocations: 0 / 2.861 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.609e-05/9.891, allocations: 130.1 kB / 2.861 GB, free: 137 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/9.891, allocations: 0 / 2.861 GB, free: 137 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.62e-07/9.891, allocations: 0 / 2.861 GB, free: 137 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/9.891, allocations: 0 / 2.861 GB, free: 137 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/9.891, allocations: 0 / 2.861 GB, free: 137 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/9.891, allocations: 0 / 2.861 GB, free: 137 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/9.891, allocations: 0 / 2.861 GB, free: 137 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.795e-05/9.891, allocations: 72.27 kB / 2.861 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.983e-05/9.891, allocations: 77.11 kB / 2.861 GB, free: 136.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/9.891, allocations: 0 / 2.861 GB, free: 136.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.212e-05/9.891, allocations: 3.938 kB / 2.861 GB, free: 136.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.532e-05/9.891, allocations: 0 / 2.861 GB, free: 136.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/9.891, allocations: 0 / 2.861 GB, free: 136.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.479e-05/9.891, allocations: 75.28 kB / 2.861 GB, free: 136.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002079/9.891, allocations: 7.344 kB / 2.861 GB, free: 136.8 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: 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 8.939e-05/9.891, allocations: 94.34 kB / 2.862 GB, free: 136.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 6.729e-05/9.891, allocations: 29.67 kB / 2.862 GB, free: 136.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/9.891, allocations: 0 / 2.862 GB, free: 136.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.016e-05/9.891, allocations: 33.58 kB / 2.862 GB, free: 136.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001065/9.891, allocations: 3.828 kB / 2.862 GB, free: 136.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001336/9.892, allocations: 81 kB / 2.862 GB, free: 136.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002434/9.892, allocations: 0.6841 MB / 2.862 GB, free: 151.8 MB / 0.4948 GB Notification: Performance of SimCode: time 7.41e-07/9.892, allocations: 0 / 2.862 GB, free: 151.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.001575/9.893, allocations: 338.6 kB / 2.863 GB, free: 151.8 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches