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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 82.64 kB / 21.44 MB, free: 3.059 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 167.2 kB / 24.84 MB, free: 9.297 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9966/0.9966, allocations: 158.6 MB / 186.7 MB, free: 2.773 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1308/0.1308, allocations: 32.37 MB / 271.5 MB, free: 14.54 MB / 266.7 MB " [Timeout remaining time 180] 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 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 348.9 MB, free: 9.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.525e-05/2.669e-05, allocations: 8.219 kB / 348.9 MB, free: 9.176 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001423/0.001449, allocations: 0.5652 MB / 349.5 MB, free: 8.617 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009251/0.002374, allocations: 0.593 MB / 350.1 MB, free: 8.016 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.743e-05/0.002412, allocations: 0 / 350.1 MB, free: 8.016 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.9e-05/0.002511, allocations: 11.88 kB / 350.1 MB, free: 8.004 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.248e-06/0.002515, allocations: 0 / 350.1 MB, free: 8.004 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007214/0.003236, allocations: 203.3 kB / 350.3 MB, free: 7.805 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.339e-05/0.0033, allocations: 23.98 kB / 350.3 MB, free: 7.781 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.866e-05/0.003339, allocations: 7.969 kB / 350.3 MB, free: 7.773 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.446e-05/0.003373, allocations: 19.92 kB / 350.3 MB, free: 7.754 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.475e-05/0.003418, allocations: 16.25 kB / 350.3 MB, free: 7.738 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.094e-05/0.003429, allocations: 0 / 350.3 MB, free: 7.738 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002858/0.003715, allocations: 195.5 kB / 350.5 MB, free: 7.547 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.603e-05/0.003781, allocations: 76 kB / 350.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.656e-05/0.003817, allocations: 31.91 kB / 350.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002305/0.004048, allocations: 215.3 kB / 350.9 MB, free: 7.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.00405, allocations: 0 / 350.9 MB, free: 7.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.91e-07/0.004051, allocations: 0 / 350.9 MB, free: 7.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.004055, allocations: 0 / 350.9 MB, free: 7.23 MB / 282.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.0003641/0.00442, allocations: 0.5128 MB / 351.4 MB, free: 6.684 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.004454, allocations: 8.031 kB / 351.4 MB, free: 6.676 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.72e-05/0.004492, allocations: 20.8 kB / 351.4 MB, free: 6.656 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.243e-05/0.004544, allocations: 124.4 kB / 351.5 MB, free: 6.508 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.00456, allocations: 16.38 kB / 351.5 MB, free: 6.492 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.004579, allocations: 24.38 kB / 351.6 MB, free: 6.469 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.446e-05/0.004653, allocations: 58.25 kB / 351.6 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.00466, allocations: 192 / 351.6 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-06/0.004668, allocations: 8.125 kB / 351.6 MB, free: 6.398 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.004673, allocations: 0 / 351.6 MB, free: 6.398 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.13e-05/0.004694, allocations: 25.5 kB / 351.6 MB, free: 6.371 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001018/0.004796, allocations: 150 kB / 351.8 MB, free: 6.195 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.111e-05/0.004847, allocations: 55.5 kB / 351.8 MB, free: 6.129 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.342e-05/0.00487, allocations: 36.72 kB / 351.9 MB, free: 6.09 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.859e-06/0.004875, allocations: 4 kB / 351.9 MB, free: 6.086 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001006/0.004976, allocations: 109 kB / 352 MB, free: 5.969 MB / 282.7 MB Notification: Performance of pre-optimization done (n=54): time 1.232e-06/0.004977, allocations: 0 / 352 MB, free: 5.969 MB / 282.7 MB Notification: Performance of matching and sorting (n=54): time 0.0004525/0.00543, allocations: 470.5 kB / 352.4 MB, free: 5.504 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.005482, allocations: 107.7 kB / 352.6 MB, free: 5.387 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.203e-05/0.005524, allocations: 182.1 kB / 352.7 MB, free: 5.195 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.893e-05/0.005563, allocations: 65.67 kB / 352.8 MB, free: 5.125 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.031e-05/0.005583, allocations: 140.2 kB / 352.9 MB, free: 4.984 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.899e-05/0.005672, allocations: 147 kB / 353.1 MB, free: 4.84 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.005801, allocations: 180.2 kB / 353.3 MB, free: 4.656 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.04e-05/0.005871, allocations: 0.5351 MB / 353.8 MB, free: 4.109 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.907e-05/0.005951, allocations: 65.94 kB / 353.9 MB, free: 4.043 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002197/0.00617, allocations: 0.5848 MB / 354.4 MB, free: 3.227 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005151/0.006685, allocations: 0.7287 MB / 355.2 MB, free: 2.27 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.006693, allocations: 4 kB / 355.2 MB, free: 2.266 MB / 282.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0005855/0.007279, allocations: 0.5563 MB / 355.7 MB, free: 1.703 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.007297, allocations: 8 kB / 355.7 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.007309, allocations: 20.16 kB / 355.8 MB, free: 1.676 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.007328, allocations: 20 kB / 355.8 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003923/0.007721, allocations: 187.7 kB / 356 MB, free: 1.473 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.007736, allocations: 31.8 kB / 356 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.007912, allocations: 67.56 kB / 356.1 MB, free: 1.375 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.007939, allocations: 32 kB / 356.1 MB, free: 1.344 MB / 282.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.0001454/0.008084, allocations: 272.2 kB / 356.4 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.417e-05/0.008098, allocations: 15.84 kB / 356.4 MB, free: 1.051 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.118e-05/0.00812, allocations: 13.81 kB / 356.4 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.008122, allocations: 0 / 356.4 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.008124, allocations: 0 / 356.4 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.008128, allocations: 3.938 kB / 356.4 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.38e-05/0.008202, allocations: 113.5 kB / 356.5 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.008204, allocations: 4 kB / 356.5 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.817e-06/0.008208, allocations: 3.984 kB / 356.5 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.00821, allocations: 0 / 356.5 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.008215, allocations: 4 kB / 356.5 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.008217, allocations: 0 / 356.5 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.008218, allocations: 0 / 356.5 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003333/0.008551, allocations: 391.2 kB / 356.9 MB, free: 492 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.422e-05/0.008565, allocations: 23.73 kB / 356.9 MB, free: 468 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.077e-06/0.008575, allocations: 4 kB / 356.9 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.128e-05/0.008586, allocations: 0 / 356.9 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.716e-05/0.008603, allocations: 3.938 kB / 356.9 MB, free: 460 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.008607, allocations: 4.031 kB / 356.9 MB, free: 456 kB / 282.7 MB Notification: Performance of sorting global known variables: time 1.35e-05/0.00862, allocations: 119.2 kB / 357 MB, free: 336 kB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00862, allocations: 4 kB / 357 MB, free: 332 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004501/0.009071, allocations: 95.86 kB / 357.1 MB, free: 236 kB / 282.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.0004811/0.009552, allocations: 291.6 kB / 357.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000385/0.009937, allocations: 307.9 kB / 357.7 MB, free: 15.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.009938, allocations: 0 / 357.7 MB, free: 15.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.544e-05/0.009994, allocations: 65.16 kB / 357.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.01013, allocations: 7.984 kB / 357.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003922/0.01052, allocations: 363.5 kB / 358.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.1e-05/0.01058, allocations: 85.36 kB / 358.2 MB, free: 15.12 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.439e-05/0.01065, allocations: 36.02 kB / 358.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.003e-05/0.01071, allocations: 98.2 kB / 358.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of SimCode: time 9.32e-07/0.01071, allocations: 0 / 358.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of Templates: time 0.006053/0.01676, allocations: 3.454 MB / 361.8 MB, free: 11.55 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3999285590834916]