Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.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.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers") [: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.002345/0.002345, allocations: 170.8 kB / 8.144 MB, free: 2.215 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.803/1.803, allocations: 205.2 MB / 213.8 MB, free: 13.94 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.001264/0.001263, allocations: 88.8 kB / 261.8 MB, free: 13.63 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.2644/0.2644, allocations: 43.49 MB / 353.2 MB, free: 2.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.738e-06/9.899e-06, allocations: 4.219 kB / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2801, allocations: 58.84 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1736/0.4539, allocations: 84.53 MB / 0.5479 GB, free: 14.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.4541, allocations: 59.97 kB / 0.548 GB, free: 14.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01954/0.4737, allocations: 4.702 MB / 0.5526 GB, free: 9.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.4738, allocations: 4 kB / 0.5526 GB, free: 9.816 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006868/0.4745, allocations: 474.8 kB / 0.553 GB, free: 9.309 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.4745, allocations: 12.03 kB / 0.553 GB, free: 9.297 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.667e-05/0.4746, allocations: 19.81 kB / 0.5531 GB, free: 9.277 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.4748, allocations: 174.9 kB / 0.5532 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.4748, allocations: 0 / 0.5532 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.348e-05/0.4748, allocations: 12 kB / 0.5532 GB, free: 9.055 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002122/0.4751, allocations: 96.31 kB / 0.5533 GB, free: 8.961 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.4753, allocations: 132.2 kB / 0.5534 GB, free: 8.824 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.4753, allocations: 0 / 0.5534 GB, free: 8.824 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.4753, allocations: 7.969 kB / 0.5535 GB, free: 8.816 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.4753, allocations: 3.938 kB / 0.5535 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002183/0.4756, allocations: 168.8 kB / 0.5536 GB, free: 8.613 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.4758, allocations: 167 kB / 0.5538 GB, free: 8.441 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001935/0.476, allocations: 153.7 kB / 0.5539 GB, free: 8.289 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.476, allocations: 0 / 0.5539 GB, free: 8.289 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002439/0.4763, allocations: 157.9 kB / 0.5541 GB, free: 8.125 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 1.793e-06/0.4763, allocations: 0 / 0.5541 GB, free: 8.125 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.0008494/0.4772, allocations: 0.5364 MB / 0.5546 GB, free: 7.582 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.4773, allocations: 111.8 kB / 0.5547 GB, free: 7.457 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.992e-05/0.4774, allocations: 112.8 kB / 0.5548 GB, free: 7.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001121/0.4775, allocations: 57.67 kB / 0.5549 GB, free: 7.277 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.994e-05/0.4776, allocations: 155.9 kB / 0.555 GB, free: 7.121 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.4778, allocations: 126.5 kB / 0.5551 GB, free: 6.996 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.472e-05/0.4778, allocations: 0 / 0.5551 GB, free: 6.996 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.478, allocations: 346.8 kB / 0.5555 GB, free: 6.648 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004409/0.4785, allocations: 169.9 kB / 0.5556 GB, free: 6.48 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007861/0.4793, allocations: 0.5078 MB / 0.5561 GB, free: 5.805 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006477/0.4799, allocations: 259.6 kB / 0.5564 GB, free: 5.551 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.48, allocations: 4 kB / 0.5564 GB, free: 5.547 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001616/0.4816, allocations: 0.6384 MB / 0.557 GB, free: 4.898 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.4816, allocations: 7.438 kB / 0.557 GB, free: 4.895 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/0.4817, allocations: 12 kB / 0.557 GB, free: 4.883 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.566e-05/0.4817, allocations: 24.03 kB / 0.557 GB, free: 4.859 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006849/0.4824, allocations: 115.7 kB / 0.5572 GB, free: 4.746 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.994e-05/0.4825, allocations: 27.92 kB / 0.5572 GB, free: 4.719 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003274/0.4828, allocations: 47.38 kB / 0.5572 GB, free: 4.672 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.464e-05/0.4829, allocations: 36 kB / 0.5573 GB, free: 4.637 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,result,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * 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.0002544/0.4832, allocations: 121.3 kB / 0.5574 GB, free: 4.512 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.705e-05/0.4832, allocations: 11.72 kB / 0.5574 GB, free: 4.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.937e-05/0.4833, allocations: 9.594 kB / 0.5574 GB, free: 4.488 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.4833, allocations: 0 / 0.5574 GB, free: 4.488 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.4833, allocations: 4 kB / 0.5574 GB, free: 4.484 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.4833, allocations: 0 / 0.5574 GB, free: 4.484 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.4835, allocations: 150.3 kB / 0.5575 GB, free: 4.301 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.4835, allocations: 4 kB / 0.5575 GB, free: 4.297 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.047e-06/0.4835, allocations: 7.875 kB / 0.5576 GB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.4835, allocations: 0 / 0.5576 GB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.4835, allocations: 0 / 0.5576 GB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.4836, allocations: 7.984 kB / 0.5576 GB, free: 4.281 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4836, allocations: 0 / 0.5576 GB, free: 4.281 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008055/0.4844, allocations: 0.5757 MB / 0.5581 GB, free: 3.688 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.658e-05/0.4845, allocations: 96.8 kB / 0.5582 GB, free: 3.574 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.4845, allocations: 4.031 kB / 0.5582 GB, free: 3.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.072e-05/0.4845, allocations: 0 / 0.5582 GB, free: 3.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.287e-05/0.4846, allocations: 3.984 kB / 0.5582 GB, free: 3.566 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.4846, allocations: 4 kB / 0.5582 GB, free: 3.562 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.347e-05/0.4846, allocations: 75.72 kB / 0.5583 GB, free: 3.488 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007427/0.4854, allocations: 91.92 kB / 0.5584 GB, free: 3.398 MB / 394.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: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007878/0.4862, allocations: 269.2 kB / 0.5586 GB, free: 3.141 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.4872, allocations: 437.8 kB / 0.5591 GB, free: 2.715 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.4872, allocations: 4.062 kB / 0.5591 GB, free: 2.711 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002229/0.4875, allocations: 160.3 kB / 0.5592 GB, free: 2.555 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001563/0.4876, allocations: 18.56 kB / 0.5592 GB, free: 2.539 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007767/0.4884, allocations: 366.7 kB / 0.5596 GB, free: 2.148 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004584/0.4889, allocations: 0.7598 MB / 0.5603 GB, free: 1.363 MB / 394.7 MB Notification: Performance of SimCode: time 8.21e-07/0.4889, allocations: 4.062 kB / 0.5603 GB, free: 1.359 MB / 394.7 MB Notification: Performance of Templates: time 0.01043/0.4994, allocations: 4.023 MB / 0.5643 GB, free: 13.33 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches