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.000966/0.000966, allocations: 91.67 kB / 21.19 MB, free: 3.367 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.0009888/0.0009888, allocations: 156.5 kB / 24.55 MB, free: 12 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.9788/0.9788, 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.2879/0.2879, allocations: 34.86 MB / 296.3 MB, free: 0.5273 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.013e-06/2.013e-06, allocations: 0 / 378.8 MB, free: 2.062 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.411e-05/3.613e-05, allocations: 3.297 kB / 378.8 MB, free: 2.059 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.002008/0.002044, allocations: 0.5497 MB / 379.3 MB, free: 1.508 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.003346, allocations: 0.6112 MB / 379.9 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.945e-05/0.003385, allocations: 7.938 kB / 379.9 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.0035, allocations: 7.875 kB / 380 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.489e-06/0.003504, allocations: 0 / 380 MB, free: 0.8789 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.0008947/0.004399, allocations: 207.3 kB / 380.2 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.835e-05/0.004467, allocations: 23.97 kB / 380.2 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.323e-05/0.00451, allocations: 7.938 kB / 380.2 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.834e-05/0.004549, allocations: 23.91 kB / 380.2 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.719e-05/0.004596, allocations: 12.25 kB / 380.2 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.004611, allocations: 4 kB / 380.2 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005038/0.005115, allocations: 199.6 kB / 380.4 MB, free: 416 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.793e-05/0.005213, allocations: 60.08 kB / 380.5 MB, free: 356 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.839e-05/0.005261, allocations: 31.91 kB / 380.5 MB, free: 324 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002924/0.005554, allocations: 223.2 kB / 380.7 MB, free: 100 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.005557, allocations: 0 / 380.7 MB, free: 100 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.005558, allocations: 0 / 380.7 MB, free: 100 kB / 346.7 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.005565, allocations: 0 / 380.7 MB, free: 100 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.0004881/0.006053, allocations: 0.5208 MB / 381.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.006098, allocations: 8.031 kB / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.498e-05/0.006153, allocations: 20.84 kB / 381.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.072e-05/0.006223, allocations: 124.4 kB / 381.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.006246, allocations: 8.375 kB / 381.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.00627, allocations: 24.38 kB / 381.4 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.006391, allocations: 66.25 kB / 381.5 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.006401, allocations: 4.125 kB / 381.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.006412, allocations: 4.359 kB / 381.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/0.00642, allocations: 384 / 381.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.234e-05/0.006452, allocations: 36.94 kB / 381.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001379/0.00659, allocations: 169.4 kB / 381.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.277e-05/0.006653, allocations: 59.56 kB / 381.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.52e-05/0.006688, allocations: 48.7 kB / 381.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.909e-06/0.006693, allocations: 4 kB / 381.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001285/0.006821, allocations: 113 kB / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.132e-06/0.006822, allocations: 0 / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=54): time 0.0005016/0.007324, allocations: 494.5 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.007383, allocations: 95.81 kB / 382.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.63e-05/0.007449, allocations: 186 kB / 382.7 MB, free: 13.97 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.007488, allocations: 69.7 kB / 382.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.007528, allocations: 140.2 kB / 382.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.312e-05/0.007621, allocations: 147 kB / 383 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/0.007751, allocations: 172.3 kB / 383.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.007893, allocations: 0.5274 MB / 383.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004411/0.008334, allocations: 89.94 kB / 383.8 MB, free: 12.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000415/0.008749, allocations: 0.5966 MB / 384.4 MB, free: 11.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007065/0.009456, allocations: 0.7601 MB / 385.2 MB, free: 11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.009465, allocations: 4 kB / 385.2 MB, free: 11 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006348/0.0101, allocations: 0.5991 MB / 385.8 MB, free: 10.39 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.01012, allocations: 15.98 kB / 385.8 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.01014, allocations: 12 kB / 385.8 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.549e-05/0.01016, allocations: 16 kB / 385.8 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003516/0.01051, allocations: 191.7 kB / 386 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.875e-05/0.01053, allocations: 23.92 kB / 386 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.01066, allocations: 67.5 kB / 386.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.01068, allocations: 44 kB / 386.1 MB, free: 10.03 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.0001655/0.01085, allocations: 268.5 kB / 386.4 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.929e-05/0.01087, allocations: 19.84 kB / 386.4 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.192e-05/0.0109, allocations: 5.812 kB / 386.4 MB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.0109, allocations: 4 kB / 386.4 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.01091, allocations: 0 / 386.4 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.01091, allocations: 3.938 kB / 386.4 MB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001116/0.01102, allocations: 132.9 kB / 386.6 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.01102, allocations: 0 / 386.6 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.28e-06/0.01103, allocations: 7.984 kB / 386.6 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.01103, allocations: 0 / 386.6 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.01104, allocations: 0 / 386.6 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.01104, allocations: 3.938 kB / 386.6 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.01105, allocations: 0 / 386.6 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003661/0.01141, allocations: 403.2 kB / 387 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.617e-05/0.01143, allocations: 31.77 kB / 387 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.007e-05/0.01144, allocations: 0 / 387 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.245e-06/0.01145, allocations: 0 / 387 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.612e-05/0.01147, allocations: 3.984 kB / 387 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.01148, allocations: 4 kB / 387 MB, free: 9.086 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.946e-05/0.01151, allocations: 119.2 kB / 387.1 MB, free: 8.969 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01151, allocations: 0 / 387.1 MB, free: 8.969 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003498/0.01186, allocations: 99.8 kB / 387.2 MB, free: 8.871 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.0005184/0.01237, allocations: 295 kB / 387.5 MB, free: 8.605 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003346/0.01271, allocations: 336.1 kB / 387.8 MB, free: 8.277 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.01271, allocations: 0 / 387.8 MB, free: 8.277 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.872e-05/0.01276, allocations: 69.17 kB / 387.9 MB, free: 8.207 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001099/0.01287, allocations: 7.984 kB / 387.9 MB, free: 8.199 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004324/0.0133, allocations: 380.6 kB / 388.3 MB, free: 7.801 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.337e-05/0.01336, allocations: 85.36 kB / 388.4 MB, free: 7.695 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.893e-05/0.0134, allocations: 35.58 kB / 388.4 MB, free: 7.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.214e-05/0.01344, allocations: 24.5 kB / 388.4 MB, free: 7.637 MB / 362.7 MB Notification: Performance of SimCode: time 8.82e-07/0.01344, allocations: 0 / 388.4 MB, free: 7.637 MB / 362.7 MB Notification: Performance of Templates: time 0.005814/0.01925, allocations: 3.153 MB / 391.6 MB, free: 4.531 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.4141777120530605]