Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.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: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009455/0.0009455, allocations: 184.2 kB / 7.801 MB, free: 2.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.041/1.041, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0008224/0.0008224, allocations: 95.27 kB / 261.4 MB, free: 13.56 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.1557/0.1557, allocations: 43.49 MB / 352.8 MB, free: 1.977 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.113e-06/7.123e-06, allocations: 4 kB / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2161, allocations: 58.83 MB / 476.6 MB, free: 5.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09772/0.3138, allocations: 84.53 MB / 0.5479 GB, free: 14.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001656/0.314, allocations: 63.97 kB / 0.548 GB, free: 14.37 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01079/0.3248, allocations: 4.691 MB / 0.5526 GB, free: 9.676 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.3249, allocations: 8 kB / 0.5526 GB, free: 9.668 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.0004337/0.3253, allocations: 470.9 kB / 0.553 GB, free: 9.164 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.3253, allocations: 11.97 kB / 0.5531 GB, free: 9.152 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.853e-05/0.3254, allocations: 19.81 kB / 0.5531 GB, free: 9.133 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.3255, allocations: 178.9 kB / 0.5532 GB, free: 8.918 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.3255, allocations: 0 / 0.5532 GB, free: 8.918 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.3255, allocations: 12 kB / 0.5533 GB, free: 8.906 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001164/0.3257, allocations: 96.31 kB / 0.5533 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.3258, allocations: 130.7 kB / 0.5535 GB, free: 8.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.3258, allocations: 7.938 kB / 0.5535 GB, free: 8.672 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.854e-06/0.3258, allocations: 0 / 0.5535 GB, free: 8.672 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.3258, allocations: 0 / 0.5535 GB, free: 8.672 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000144/0.326, allocations: 162.3 kB / 0.5536 GB, free: 8.477 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.3261, allocations: 175 kB / 0.5538 GB, free: 8.297 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.3262, allocations: 153.7 kB / 0.5539 GB, free: 8.145 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.793e-06/0.3262, allocations: 0 / 0.5539 GB, free: 8.145 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001315/0.3264, allocations: 165.9 kB / 0.5541 GB, free: 7.973 MB / 394.7 MB Notification: Performance of pre-optimization done (n=54): time 9.82e-07/0.3264, allocations: 0 / 0.5541 GB, free: 7.973 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.0004914/0.3269, allocations: 0.5325 MB / 0.5546 GB, free: 7.434 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/0.327, allocations: 111.7 kB / 0.5547 GB, free: 7.309 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.32e-05/0.327, allocations: 112.8 kB / 0.5548 GB, free: 7.191 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.281e-05/0.3271, allocations: 57.67 kB / 0.5549 GB, free: 7.129 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.058e-05/0.3271, allocations: 85.45 kB / 0.555 GB, free: 7.039 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.999e-05/0.3272, allocations: 126.6 kB / 0.5551 GB, free: 6.914 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.317e-05/0.3272, allocations: 4 kB / 0.5551 GB, free: 6.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.3274, allocations: 342.8 kB / 0.5554 GB, free: 6.566 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.3276, allocations: 169.9 kB / 0.5556 GB, free: 6.398 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003884/0.328, allocations: 0.5039 MB / 0.5561 GB, free: 5.727 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000294/0.3283, allocations: 259.6 kB / 0.5563 GB, free: 5.473 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.3283, allocations: 4 kB / 0.5563 GB, free: 5.469 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0008044/0.3291, allocations: 0.642 MB / 0.557 GB, free: 4.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.3291, allocations: 4 kB / 0.557 GB, free: 4.816 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.3291, allocations: 12 kB / 0.557 GB, free: 4.805 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.3292, allocations: 20 kB / 0.557 GB, free: 4.785 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003045/0.3295, allocations: 111.7 kB / 0.5571 GB, free: 4.676 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/0.3295, allocations: 23.92 kB / 0.5571 GB, free: 4.652 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/0.3297, allocations: 51.38 kB / 0.5572 GB, free: 4.602 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.674e-05/0.3297, allocations: 40 kB / 0.5572 GB, free: 4.562 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.0001541/0.3299, allocations: 204.2 kB / 0.5574 GB, free: 4.359 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.3299, allocations: 15.73 kB / 0.5574 GB, free: 4.344 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.092e-05/0.3299, allocations: 9.594 kB / 0.5574 GB, free: 4.332 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3299, allocations: 4 kB / 0.5574 GB, free: 4.328 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.3299, allocations: 0 / 0.5574 GB, free: 4.328 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.33, allocations: 0 / 0.5574 GB, free: 4.328 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.693e-05/0.3301, allocations: 154.3 kB / 0.5576 GB, free: 4.141 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3301, allocations: 0 / 0.5576 GB, free: 4.141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.186e-06/0.3301, allocations: 0 / 0.5576 GB, free: 4.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.3301, allocations: 0 / 0.5576 GB, free: 4.141 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.191e-06/0.3301, allocations: 0 / 0.5576 GB, free: 4.141 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3301, allocations: 4 kB / 0.5576 GB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.3301, allocations: 0 / 0.5576 GB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004182/0.3305, allocations: 0.5795 MB / 0.5581 GB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.708e-05/0.3306, allocations: 96.86 kB / 0.5582 GB, free: 3.426 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.12e-05/0.3306, allocations: 0 / 0.5582 GB, free: 3.426 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.211e-05/0.3306, allocations: 0 / 0.5582 GB, free: 3.426 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.684e-05/0.3306, allocations: 0 / 0.5582 GB, free: 3.426 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-06/0.3306, allocations: 8 kB / 0.5582 GB, free: 3.418 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.16e-05/0.3307, allocations: 75.72 kB / 0.5583 GB, free: 3.344 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004281/0.3311, allocations: 95.94 kB / 0.5584 GB, free: 3.25 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.0004546/0.3316, allocations: 269.3 kB / 0.5587 GB, free: 2.988 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004582/0.332, allocations: 441.4 kB / 0.5591 GB, free: 2.559 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.332, allocations: 0 / 0.5591 GB, free: 2.559 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.3322, allocations: 156.4 kB / 0.5592 GB, free: 2.406 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.15e-05/0.3323, allocations: 7.891 kB / 0.5592 GB, free: 2.398 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004117/0.3327, allocations: 353.3 kB / 0.5596 GB, free: 2.027 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002652/0.3329, allocations: 0.7598 MB / 0.5603 GB, free: 1.242 MB / 394.7 MB Notification: Performance of SimCode: time 2.1e-07/0.333, allocations: 0 / 0.5603 GB, free: 1.242 MB / 394.7 MB Notification: Performance of Templates: time 0.006099/0.3391, allocations: 3.825 MB / 0.5641 GB, free: 13.41 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches