Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0023/0.0023, allocations: 180.2 kB / 13.66 MB, free: 1.664 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.056/2.056, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001066/0.001066, allocations: 82.72 kB / 267.5 MB, free: 14.04 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.2745/0.2745, allocations: 43.48 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.021e-05/3.027e-05, allocations: 8 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1152, allocations: 58.85 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4781/0.5934, allocations: 85.26 MB / 0.556 GB, free: 2.332 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.5937, allocations: 67.81 kB / 0.5561 GB, free: 2.301 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01852/0.6123, allocations: 5.006 MB / 0.561 GB, free: 14.01 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.6123, allocations: 0 / 0.561 GB, free: 14.01 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.6124, allocations: 4 kB / 0.561 GB, free: 14.01 MB / 378.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.0007052/0.6131, allocations: 470.3 kB / 0.5615 GB, free: 13.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.6131, allocations: 8.031 kB / 0.5615 GB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.85e-05/0.6132, allocations: 15.81 kB / 0.5615 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.6134, allocations: 177.3 kB / 0.5616 GB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.083e-05/0.6134, allocations: 15.75 kB / 0.5617 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.082e-05/0.6134, allocations: 27.5 kB / 0.5617 GB, free: 13.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002386/0.6137, allocations: 131 kB / 0.5618 GB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.6137, allocations: 3.938 kB / 0.5618 GB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.6137, allocations: 0 / 0.5618 GB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.6138, allocations: 0 / 0.5618 GB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001574/0.6139, allocations: 95.28 kB / 0.5619 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000259/0.6142, allocations: 221 kB / 0.5621 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.6144, allocations: 165.1 kB / 0.5623 GB, free: 12.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.6146, allocations: 160.7 kB / 0.5624 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.6146, allocations: 0 / 0.5624 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002501/0.6149, allocations: 163.6 kB / 0.5626 GB, free: 12.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 1.893e-06/0.6149, allocations: 0 / 0.5626 GB, free: 12.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.001248/0.6162, allocations: 0.5728 MB / 0.5631 GB, free: 12.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.6163, allocations: 106.5 kB / 0.5632 GB, free: 11.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.24e-05/0.6164, allocations: 111.4 kB / 0.5634 GB, free: 11.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001094/0.6165, allocations: 77.83 kB / 0.5634 GB, free: 11.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.771e-05/0.6166, allocations: 162.6 kB / 0.5636 GB, free: 11.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.6168, allocations: 133.8 kB / 0.5637 GB, free: 11.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.6168, allocations: 14.81 kB / 0.5637 GB, free: 11.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.617, allocations: 351.3 kB / 0.5641 GB, free: 11.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004696/0.6175, allocations: 176.2 kB / 0.5642 GB, free: 11.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007928/0.6183, allocations: 0.5219 MB / 0.5647 GB, free: 10.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000697/0.619, allocations: 265.7 kB / 0.565 GB, free: 10.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.261e-05/0.619, allocations: 7.922 kB / 0.565 GB, free: 10.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001736/0.6208, allocations: 0.7241 MB / 0.5657 GB, free: 9.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/0.6209, allocations: 15.94 kB / 0.5657 GB, free: 9.574 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/0.6209, allocations: 12 kB / 0.5657 GB, free: 9.562 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.819e-05/0.621, allocations: 23.98 kB / 0.5658 GB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006916/0.6217, allocations: 109.8 kB / 0.5659 GB, free: 9.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-05/0.6217, allocations: 27.86 kB / 0.5659 GB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003862/0.6221, allocations: 65.28 kB / 0.5659 GB, free: 9.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.71e-05/0.6222, allocations: 46.75 kB / 0.566 GB, free: 9.32 MB / 378.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.0003082/0.6225, allocations: 218.8 kB / 0.5662 GB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.282e-05/0.6226, allocations: 15.81 kB / 0.5662 GB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.885e-05/0.6226, allocations: 5.656 kB / 0.5662 GB, free: 9.098 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.6226, allocations: 0 / 0.5662 GB, free: 9.098 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.6227, allocations: 0 / 0.5662 GB, free: 9.098 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.6227, allocations: 0 / 0.5662 GB, free: 9.098 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.6229, allocations: 192.3 kB / 0.5664 GB, free: 8.867 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.6229, allocations: 7.953 kB / 0.5664 GB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.316e-06/0.6229, allocations: 0 / 0.5664 GB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.6229, allocations: 0 / 0.5664 GB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.6229, allocations: 3.375 kB / 0.5664 GB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.623, allocations: 4 kB / 0.5664 GB, free: 8.855 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.623, allocations: 3.938 kB / 0.5664 GB, free: 8.852 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.6242, allocations: 0.6089 MB / 0.567 GB, free: 8.344 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.424e-05/0.6243, allocations: 100.8 kB / 0.5671 GB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.6243, allocations: 0 / 0.5671 GB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.576e-05/0.6243, allocations: 3.625 kB / 0.5671 GB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.311e-05/0.6244, allocations: 4 kB / 0.5671 GB, free: 8.223 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.6244, allocations: 0 / 0.5671 GB, free: 8.223 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.501e-05/0.6244, allocations: 79.31 kB / 0.5672 GB, free: 8.145 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6244, allocations: 0 / 0.5672 GB, free: 8.145 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008008/0.6253, allocations: 105.6 kB / 0.5673 GB, free: 8.055 MB / 378.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.0008107/0.6261, allocations: 283.1 kB / 0.5676 GB, free: 7.801 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.6272, allocations: 462.2 kB / 0.568 GB, free: 7.441 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.6272, allocations: 4.125 kB / 0.568 GB, free: 7.438 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001967/0.6274, allocations: 156.5 kB / 0.5682 GB, free: 7.355 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.6276, allocations: 9.953 kB / 0.5682 GB, free: 7.352 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007475/0.6284, allocations: 376.2 kB / 0.5685 GB, free: 7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005314/0.6289, allocations: 0.7377 MB / 0.5692 GB, free: 6.234 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.079e-05/0.629, allocations: 23.5 kB / 0.5693 GB, free: 6.211 MB / 378.7 MB Notification: Performance of SimCode: time 1.322e-06/0.629, allocations: 0 / 0.5693 GB, free: 6.211 MB / 378.7 MB Notification: Performance of Templates: time 0.01056/0.6396, allocations: 4.001 MB / 0.5732 GB, free: 2.207 MB / 378.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/jenkins1/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