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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002629/0.002629, allocations: 87.62 kB / 20.96 MB, free: 3.312 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003165/0.003165, allocations: 156.9 kB / 24.27 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.599/1.599, allocations: 177 MB / 204.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3828/0.3828, allocations: 34.26 MB / 295.2 MB, free: 0.6289 MB / 266.7 MB " [Timeout remaining time 179] 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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 377.2 MB, free: 2.926 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.1e-05/3.279e-05, allocations: 2.312 kB / 377.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001787/0.00182, allocations: 0.5368 MB / 377.7 MB, free: 2.383 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.003198, allocations: 0.6111 MB / 378.4 MB, free: 1.77 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.9e-05/0.003227, allocations: 3.938 kB / 378.4 MB, free: 1.766 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.003337, allocations: 11.92 kB / 378.4 MB, free: 1.754 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.639e-06/0.003341, allocations: 0 / 378.4 MB, free: 1.754 MB / 346.7 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.0008242/0.004166, allocations: 203.2 kB / 378.6 MB, free: 1.555 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.632e-05/0.004242, allocations: 31.95 kB / 378.6 MB, free: 1.523 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.878e-05/0.004281, allocations: 3.984 kB / 378.6 MB, free: 1.52 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.656e-05/0.004327, allocations: 15.98 kB / 378.6 MB, free: 1.504 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.865e-05/0.004386, allocations: 20.19 kB / 378.6 MB, free: 1.48 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.004403, allocations: 0 / 378.6 MB, free: 1.48 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004377/0.004841, allocations: 203.5 kB / 378.8 MB, free: 1.281 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.004952, allocations: 64.08 kB / 378.9 MB, free: 1.219 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.248e-05/0.005015, allocations: 27.92 kB / 378.9 MB, free: 1.191 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000378/0.005393, allocations: 223.2 kB / 379.1 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.005396, allocations: 0 / 379.1 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.005397, allocations: 0 / 379.1 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.005403, allocations: 0 / 379.1 MB, free: 0.9727 MB / 346.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.000707/0.00611, allocations: 0.5164 MB / 379.7 MB, free: 428 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.006153, allocations: 15.95 kB / 379.7 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.027e-05/0.006213, allocations: 20.84 kB / 379.7 MB, free: 392 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.006331, allocations: 120.4 kB / 379.8 MB, free: 244 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.727e-05/0.006359, allocations: 16.38 kB / 379.8 MB, free: 228 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.087e-05/0.006389, allocations: 20.38 kB / 379.9 MB, free: 208 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001498/0.006539, allocations: 70.19 kB / 379.9 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.006548, allocations: 192 / 379.9 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.006557, allocations: 384 / 379.9 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.006561, allocations: 384 / 379.9 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.027e-05/0.006632, allocations: 36.44 kB / 380 MB, free: 96 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002348/0.006866, allocations: 165.4 kB / 380.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001122/0.006979, allocations: 59.56 kB / 380.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.097e-05/0.00704, allocations: 40.72 kB / 380.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.03e-05/0.00705, allocations: 0 / 380.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.007236, allocations: 117 kB / 380.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 9.62e-07/0.007237, allocations: 0 / 380.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=54): time 0.0007665/0.008004, allocations: 478.5 kB / 380.8 MB, free: 15.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.008107, allocations: 111.7 kB / 380.9 MB, free: 15.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.008239, allocations: 182.1 kB / 381.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.069e-05/0.008319, allocations: 73.7 kB / 381.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.556e-05/0.008405, allocations: 140.2 kB / 381.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002456/0.008651, allocations: 155 kB / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002677/0.008918, allocations: 184.3 kB / 381.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003292/0.009248, allocations: 0.5313 MB / 382.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003519/0.009599, allocations: 93.92 kB / 382.3 MB, free: 13.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006889/0.01029, allocations: 0.6005 MB / 382.9 MB, free: 12.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.01136, allocations: 0.7718 MB / 383.6 MB, free: 11.85 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.01137, allocations: 4 kB / 383.6 MB, free: 11.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001035/0.0124, allocations: 0.6108 MB / 384.2 MB, free: 11.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.01243, allocations: 8 kB / 384.2 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.01245, allocations: 15.94 kB / 384.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.309e-05/0.01249, allocations: 16 kB / 384.3 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006046/0.0131, allocations: 191.7 kB / 384.5 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.438e-05/0.01313, allocations: 27.92 kB / 384.5 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002195/0.01335, allocations: 67.56 kB / 384.6 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.131e-05/0.0134, allocations: 36 kB / 384.6 MB, free: 10.87 MB / 362.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 (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.0002966/0.0137, allocations: 272.5 kB / 384.9 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.035e-05/0.01373, allocations: 19.86 kB / 384.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.087e-05/0.01376, allocations: 5.812 kB / 384.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.01376, allocations: 4 kB / 384.9 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.01376, allocations: 0 / 384.9 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.01377, allocations: 7.938 kB / 384.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001633/0.01394, allocations: 136.9 kB / 385 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.01394, allocations: 0 / 385 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.187e-06/0.01394, allocations: 0 / 385 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.01394, allocations: 3.938 kB / 385 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.228e-06/0.01395, allocations: 4 kB / 385 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.01395, allocations: 0 / 385 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01396, allocations: 0 / 385 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000618/0.01457, allocations: 399.2 kB / 385.4 MB, free: 9.969 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.507e-05/0.0146, allocations: 27.77 kB / 385.5 MB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.814e-05/0.01462, allocations: 3.984 kB / 385.5 MB, free: 9.938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.495e-05/0.01463, allocations: 4 kB / 385.5 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.865e-05/0.01466, allocations: 0 / 385.5 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/0.01466, allocations: 0 / 385.5 MB, free: 9.934 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.887e-05/0.01473, allocations: 119.2 kB / 385.6 MB, free: 9.816 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01473, allocations: 0 / 385.6 MB, free: 9.816 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005172/0.01525, allocations: 99.8 kB / 385.7 MB, free: 9.719 MB / 362.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 () * 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.0009362/0.01619, allocations: 284.1 kB / 386 MB, free: 9.465 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006002/0.01679, allocations: 350.3 kB / 386.3 MB, free: 9.117 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.01679, allocations: 2 kB / 386.3 MB, free: 9.117 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.828e-05/0.01688, allocations: 65.17 kB / 386.4 MB, free: 9.051 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001445/0.01702, allocations: 4 kB / 386.4 MB, free: 9.047 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006001/0.01762, allocations: 380.4 kB / 386.7 MB, free: 8.648 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001326/0.01775, allocations: 116.2 kB / 386.8 MB, free: 8.512 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.527e-05/0.01783, allocations: 39.58 kB / 386.9 MB, free: 8.473 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.012e-05/0.01787, allocations: 20.5 kB / 386.9 MB, free: 8.453 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01787, allocations: 0 / 386.9 MB, free: 8.453 MB / 362.7 MB Notification: Performance of Templates: time 0.008145/0.02602, allocations: 3.161 MB / 390.1 MB, free: 5.32 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.149690275080502]