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.001089/0.001089, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.0009414/0.0009414, allocations: 160.5 kB / 24.55 MB, free: 16 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 0.9517/0.9517, allocations: 177 MB / 204.8 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] 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.2911/0.2911, allocations: 34.86 MB / 296.3 MB, free: 0.5352 MB / 266.7 MB " [Timeout remaining time 180] 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 2.034e-06/2.034e-06, allocations: 0 / 378.8 MB, free: 2.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.508e-05/2.711e-05, allocations: 2.312 kB / 378.8 MB, free: 2.086 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001172/0.001199, allocations: 0.5509 MB / 379.3 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009013/0.002101, allocations: 0.6112 MB / 379.9 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.757e-05/0.002138, allocations: 3.938 kB / 379.9 MB, free: 0.918 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000103/0.002241, allocations: 11.94 kB / 379.9 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.838e-06/0.002245, allocations: 0 / 379.9 MB, free: 0.9062 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.0008223/0.003067, allocations: 207.2 kB / 380.1 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.444e-05/0.003132, allocations: 31.97 kB / 380.2 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.962e-05/0.003171, allocations: 7.922 kB / 380.2 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.631e-05/0.003208, allocations: 19.97 kB / 380.2 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.894e-05/0.003247, allocations: 12.2 kB / 380.2 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.00326, allocations: 4 kB / 380.2 MB, free: 0.625 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002857/0.003545, allocations: 199.6 kB / 380.4 MB, free: 440 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.208e-05/0.003618, allocations: 60.09 kB / 380.5 MB, free: 380 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.334e-05/0.003661, allocations: 35.89 kB / 380.5 MB, free: 344 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002637/0.003925, allocations: 223.2 kB / 380.7 MB, free: 120 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.003927, allocations: 0 / 380.7 MB, free: 120 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.003928, allocations: 0 / 380.7 MB, free: 120 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.003933, allocations: 4 kB / 380.7 MB, free: 116 kB / 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.0004432/0.004376, allocations: 0.5167 MB / 381.2 MB, free: 15.56 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.004413, allocations: 8.031 kB / 381.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.602e-05/0.004469, allocations: 24.84 kB / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.841e-05/0.004537, allocations: 124.4 kB / 381.4 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.004554, allocations: 12.38 kB / 381.4 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.838e-05/0.004573, allocations: 24.38 kB / 381.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001098/0.004682, allocations: 62.27 kB / 381.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.00469, allocations: 4.125 kB / 381.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/0.004698, allocations: 384 / 381.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.004708, allocations: 8.359 kB / 381.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.778e-05/0.004735, allocations: 36.94 kB / 381.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000134/0.004869, allocations: 161.4 kB / 381.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.99e-05/0.004929, allocations: 63.55 kB / 381.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.294e-05/0.004962, allocations: 40.72 kB / 381.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.767e-06/0.004971, allocations: 4 kB / 381.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001174/0.005088, allocations: 113 kB / 381.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 2.004e-06/0.00509, allocations: 0 / 381.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=54): time 0.0004892/0.00558, allocations: 494.5 kB / 382.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.424e-05/0.005644, allocations: 111.8 kB / 382.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.445e-05/0.005708, allocations: 178.1 kB / 382.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.238e-05/0.005751, allocations: 69.67 kB / 382.8 MB, free: 13.92 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.286e-05/0.005793, allocations: 136.2 kB / 382.9 MB, free: 13.78 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.005895, allocations: 147 kB / 383 MB, free: 13.64 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.006016, allocations: 176.3 kB / 383.2 MB, free: 13.45 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.006144, allocations: 0.5196 MB / 383.7 MB, free: 12.92 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.006254, allocations: 89.92 kB / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005451/0.006799, allocations: 0.5927 MB / 384.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005603/0.007359, allocations: 0.7679 MB / 385.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.007367, allocations: 4 kB / 385.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0005865/0.007954, allocations: 0.5988 MB / 385.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.007973, allocations: 12 kB / 385.8 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.007984, allocations: 12 kB / 385.8 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.008005, allocations: 16 kB / 385.8 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003465/0.008352, allocations: 191.7 kB / 386 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.598e-05/0.008368, allocations: 19.94 kB / 386 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.008487, allocations: 72.03 kB / 386.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.8e-05/0.008515, allocations: 44 kB / 386.1 MB, free: 10.05 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.0001561/0.008671, allocations: 272.2 kB / 386.4 MB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.765e-05/0.008689, allocations: 23.86 kB / 386.4 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.65e-05/0.008715, allocations: 5.812 kB / 386.4 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.008717, allocations: 0 / 386.4 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.008721, allocations: 0 / 386.4 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.008725, allocations: 3.938 kB / 386.4 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.844e-05/0.008823, allocations: 133 kB / 386.6 MB, free: 9.578 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.008825, allocations: 0 / 386.6 MB, free: 9.578 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.757e-06/0.008829, allocations: 0 / 386.6 MB, free: 9.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.008831, allocations: 4 kB / 386.6 MB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.008837, allocations: 0 / 386.6 MB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.008839, allocations: 3.938 kB / 386.6 MB, free: 9.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.008842, allocations: 8 kB / 386.6 MB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003501/0.009192, allocations: 403.2 kB / 387 MB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.442e-05/0.009206, allocations: 27.73 kB / 387 MB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.689e-06/0.009216, allocations: 0 / 387 MB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.596e-06/0.009225, allocations: 0 / 387 MB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.333e-05/0.009248, allocations: 3.984 kB / 387 MB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.009254, allocations: 4 kB / 387 MB, free: 9.109 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.848e-05/0.009283, allocations: 119.2 kB / 387.1 MB, free: 8.992 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009283, allocations: 0 / 387.1 MB, free: 8.992 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003366/0.00962, allocations: 99.75 kB / 387.2 MB, free: 8.895 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.0004918/0.01011, allocations: 283 kB / 387.5 MB, free: 8.641 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003445/0.01046, allocations: 339.4 kB / 387.8 MB, free: 8.309 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01046, allocations: 0.875 kB / 387.8 MB, free: 8.309 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.819e-05/0.01051, allocations: 73.16 kB / 387.9 MB, free: 8.234 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000117/0.01062, allocations: 8.062 kB / 387.9 MB, free: 8.227 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004129/0.01104, allocations: 380.3 kB / 388.3 MB, free: 7.828 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.163e-05/0.01109, allocations: 85.36 kB / 388.4 MB, free: 7.723 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.029e-05/0.01116, allocations: 31.59 kB / 388.4 MB, free: 7.691 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.259e-05/0.0112, allocations: 24.5 kB / 388.4 MB, free: 7.668 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.0112, allocations: 0 / 388.4 MB, free: 7.668 MB / 362.7 MB Notification: Performance of Templates: time 0.005491/0.01669, allocations: 3.443 MB / 391.9 MB, free: 4.273 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","",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.237999909091741]