Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00158/0.00158, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001454/0.001454, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 247.5 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2435/0.2435, allocations: 46.12 MB / 344.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00224/0.00224, allocations: 82.78 kB / 418.3 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1228, allocations: 62.45 MB / 480.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001758/0.1246, allocations: 0.533 MB / 481.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.1257, allocations: 0.599 MB / 481.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.077e-05/0.1258, allocations: 0 / 481.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.386e-05/0.1258, allocations: 7.922 kB / 481.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.232e-06/0.1259, allocations: 3.938 kB / 481.9 MB, free: 4.059 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:842:5-926:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.randomNumbers' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0006678/0.1265, allocations: 191.5 kB / 482.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.329e-05/0.1266, allocations: 27.92 kB / 482.1 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.142e-05/0.1267, allocations: 7.984 kB / 482.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.613e-05/0.1267, allocations: 19.92 kB / 482.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.249e-05/0.1267, allocations: 16.2 kB / 482.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.112e-05/0.1267, allocations: 0 / 482.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002947/0.127, allocations: 167.8 kB / 482.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.028e-05/0.1271, allocations: 56.11 kB / 482.4 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.11e-05/0.1272, allocations: 55.61 kB / 482.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002695/0.1275, allocations: 207.4 kB / 482.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.1275, allocations: 0 / 482.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1275, allocations: 4 kB / 482.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.1275, allocations: 0 / 482.7 MB, free: 3.316 MB / 350.1 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.0005441/0.1281, allocations: 496.7 kB / 483.1 MB, free: 2.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.1281, allocations: 12.03 kB / 483.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.961e-05/0.1282, allocations: 16.75 kB / 483.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.1283, allocations: 176.2 kB / 483.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.1283, allocations: 16.38 kB / 483.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/0.1283, allocations: 16.38 kB / 483.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001845/0.1285, allocations: 140.3 kB / 483.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.1285, allocations: 0 / 483.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.1286, allocations: 8 kB / 483.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.116e-06/0.1286, allocations: 0 / 483.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001013/0.1287, allocations: 96.41 kB / 483.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002196/0.1289, allocations: 226.2 kB / 483.8 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001599/0.1291, allocations: 167 kB / 484 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.1292, allocations: 149.7 kB / 484.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.825e-06/0.1292, allocations: 3.938 kB / 484.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002218/0.1295, allocations: 169.9 kB / 484.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.152e-06/0.1295, allocations: 0 / 484.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001116/0.1306, allocations: 0.7694 MB / 485.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.642e-05/0.1307, allocations: 107.8 kB / 485.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.045e-05/0.1308, allocations: 117.6 kB / 485.3 MB, free: 488 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.976e-05/0.1308, allocations: 73.67 kB / 485.4 MB, free: 408 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.206e-05/0.1309, allocations: 97.39 kB / 485.5 MB, free: 304 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.131, allocations: 130.5 kB / 485.6 MB, free: 172 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.1312, allocations: 166.7 kB / 485.8 MB, free: 0 / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1314, allocations: 342.8 kB / 486.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000274/0.1317, allocations: 189.8 kB / 486.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005517/0.1322, allocations: 0.5292 MB / 486.8 MB, free: 14.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009213/0.1331, allocations: 0.7827 MB / 487.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.1332, allocations: 0 / 487.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001057/0.1342, allocations: 0.7474 MB / 488.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.1343, allocations: 15.94 kB / 488.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.1343, allocations: 12 kB / 488.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.72e-05/0.1343, allocations: 16 kB / 488.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003354/0.1346, allocations: 115.7 kB / 488.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.293e-05/0.1347, allocations: 31.91 kB / 488.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001993/0.1349, allocations: 63.38 kB / 488.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.292e-05/0.1349, allocations: 40 kB / 488.6 MB, free: 12.79 MB / 366.1 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 (state33[33],$PRE.state33[33],state33[32],$PRE.state33[32],state33[31],$PRE.state33[31],state33[30],$PRE.state33[30],state33[29],$PRE.state33[29],state33[28],$PRE.state33[28],state33[27],$PRE.state33[27],state33[26],$PRE.state33[26],state33[25],$PRE.state33[25],state33[24],$PRE.state33[24],state33[23],$PRE.state33[23],state33[22],$PRE.state33[22],state33[21],$PRE.state33[21],state33[20],$PRE.state33[20],state33[19],$PRE.state33[19],state33[18],$PRE.state33[18],state33[17],$PRE.state33[17],state33[16],$PRE.state33[16],state33[15],$PRE.state33[15],state33[14],$PRE.state33[14],state33[13],$PRE.state33[13],state33[12],$PRE.state33[12],state33[11],$PRE.state33[11],state33[10],$PRE.state33[10],state33[9],$PRE.state33[9],state33[8],$PRE.state33[8],state33[7],$PRE.state33[7],state33[6],$PRE.state33[6],state33[5],$PRE.state33[5],state33[4],$PRE.state33[4],state33[3],$PRE.state33[3],state33[2],$PRE.state33[2],state33[1],$PRE.state33[1],state4c[4],$PRE.state4c[4],state4c[3],$PRE.state4c[3],state4c[2],$PRE.state4c[2],state4c[1],$PRE.state4c[1],state4b[4],$PRE.state4b[4],state4b[3],$PRE.state4b[3],state4b[2],$PRE.state4b[2],state4b[1],$PRE.state4b[1],state4a[4],$PRE.state4a[4],state4a[3],$PRE.state4a[3],state4a[2],$PRE.state4a[2],state4a[1],$PRE.state4a[1],state2[2],$PRE.state2[2],state2[1],$PRE.state2[1],r33,$PRE.r33,r4c,$PRE.r4c,r4b,$PRE.r4b,r4a,$PRE.r4a,r2,$PRE.r2,result,$PRE.result,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002603/0.1352, allocations: 249.6 kB / 488.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.224e-05/0.1352, allocations: 15.75 kB / 488.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.147e-05/0.1353, allocations: 9.875 kB / 488.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1353, allocations: 0 / 488.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.1353, allocations: 0 / 488.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.1353, allocations: 0 / 488.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001759/0.1355, allocations: 201.8 kB / 489.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1355, allocations: 0 / 489.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.041e-06/0.1355, allocations: 3.938 kB / 489.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.1355, allocations: 0 / 489.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.1355, allocations: 0 / 489.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1355, allocations: 0 / 489.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1355, allocations: 4 kB / 489.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009192/0.1364, allocations: 0.6225 MB / 489.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.14e-05/0.1365, allocations: 104.7 kB / 489.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.252e-05/0.1365, allocations: 0 / 489.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.426e-05/0.1365, allocations: 4 kB / 489.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.892e-05/0.1366, allocations: 0 / 489.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-06/0.1366, allocations: 4 kB / 489.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.441e-05/0.1366, allocations: 75.28 kB / 489.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1366, allocations: 0 / 489.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004729/0.1371, allocations: 100 kB / 490 MB, free: 11.32 MB / 366.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006016/0.1377, allocations: 255.7 kB / 490.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006142/0.1383, allocations: 473.5 kB / 490.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1383, allocations: 4.125 kB / 490.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000149/0.1385, allocations: 160.4 kB / 490.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.1386, allocations: 0 / 490.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000614/0.1393, allocations: 490.7 kB / 491.3 MB, free: 9.949 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.1396, allocations: 0.7303 MB / 492.1 MB, free: 9.191 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.855e-05/0.1397, allocations: 19.44 kB / 492.1 MB, free: 9.172 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1397, allocations: 0 / 492.1 MB, free: 9.172 MB / 366.1 MB Notification: Performance of Templates: time 0.006159/0.1458, allocations: 3.8 MB / 495.9 MB, free: 5.367 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches