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.00107/0.00107, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001268/0.001268, allocations: 170 kB / 24.82 MB, free: 9.254 MB / 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.038/1.038, allocations: 177 MB / 205.1 MB, free: 5.477 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.296/0.296, allocations: 34.86 MB / 296.6 MB, free: 0.5039 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 1.873e-06/1.873e-06, allocations: 0 / 379.2 MB, free: 1.832 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.167e-05/3.354e-05, allocations: 2.312 kB / 379.2 MB, free: 1.828 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001304/0.001337, allocations: 0.5566 MB / 379.8 MB, free: 1.27 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009232/0.00226, allocations: 0.6072 MB / 380.4 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.335e-05/0.002294, allocations: 0 / 380.4 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.119e-05/0.002375, allocations: 7.875 kB / 380.4 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.526e-06/0.002378, allocations: 0 / 380.4 MB, free: 0.6523 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.0006015/0.00298, allocations: 211.3 kB / 380.6 MB, free: 456 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.697e-05/0.003037, allocations: 23.97 kB / 380.6 MB, free: 432 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.893e-05/0.003076, allocations: 7.938 kB / 380.6 MB, free: 424 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.037e-05/0.003116, allocations: 19.91 kB / 380.7 MB, free: 404 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.277e-05/0.003159, allocations: 16.25 kB / 380.7 MB, free: 384 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.003171, allocations: 0 / 380.7 MB, free: 384 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002572/0.003428, allocations: 203.5 kB / 380.9 MB, free: 180 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.7e-05/0.003495, allocations: 60.08 kB / 380.9 MB, free: 120 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.649e-05/0.003532, allocations: 31.91 kB / 381 MB, free: 88 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002329/0.003765, allocations: 219.3 kB / 381.2 MB, free: 15.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.003767, allocations: 4 kB / 381.2 MB, free: 15.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.003768, allocations: 0 / 381.2 MB, free: 15.87 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.003772, allocations: 0 / 381.2 MB, free: 15.87 MB / 362.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.0003829/0.004155, allocations: 0.5244 MB / 381.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.00419, allocations: 12.03 kB / 381.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.575e-05/0.004226, allocations: 16.84 kB / 381.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.913e-05/0.004295, allocations: 124.4 kB / 381.8 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.004311, allocations: 12.38 kB / 381.9 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.004329, allocations: 24.38 kB / 381.9 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.766e-05/0.004417, allocations: 58.25 kB / 381.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.004424, allocations: 4.188 kB / 381.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.951e-06/0.00443, allocations: 384 / 381.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.004435, allocations: 384 / 381.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.41e-05/0.004459, allocations: 33.44 kB / 382 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001112/0.00457, allocations: 146 kB / 382.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.562e-05/0.004626, allocations: 59.5 kB / 382.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.874e-05/0.004655, allocations: 40.72 kB / 382.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.602e-06/0.004661, allocations: 3.984 kB / 382.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001168/0.004778, allocations: 101 kB / 382.3 MB, free: 14.6 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 7.71e-07/0.004779, allocations: 4 kB / 382.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=54): time 0.0004661/0.005245, allocations: 470.5 kB / 382.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.005299, allocations: 103.8 kB / 382.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.298e-05/0.005362, allocations: 178.1 kB / 383.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.881e-05/0.005401, allocations: 69.61 kB / 383.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.368e-05/0.005445, allocations: 140.2 kB / 383.3 MB, free: 13.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.005552, allocations: 151 kB / 383.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.00567, allocations: 180.2 kB / 383.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.00584, allocations: 0.5273 MB / 384.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.324e-05/0.005903, allocations: 65.94 kB / 384.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003427/0.006246, allocations: 0.5887 MB / 384.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004516/0.006697, allocations: 0.7288 MB / 385.5 MB, free: 10.9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.006704, allocations: 4 kB / 385.5 MB, free: 10.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0004723/0.007176, allocations: 0.5595 MB / 386.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.007191, allocations: 8 kB / 386.1 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.007203, allocations: 12 kB / 386.1 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.007222, allocations: 20.78 kB / 386.1 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004654/0.007688, allocations: 187.7 kB / 386.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.007702, allocations: 27.94 kB / 386.3 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.007818, allocations: 67.56 kB / 386.4 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.505e-05/0.007843, allocations: 35.94 kB / 386.4 MB, free: 9.98 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.0001531/0.007996, allocations: 280.1 kB / 386.7 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.196e-05/0.008008, allocations: 11.86 kB / 386.7 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.619e-05/0.008035, allocations: 13.81 kB / 386.7 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.008036, allocations: 0 / 386.7 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.008038, allocations: 0 / 386.7 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.008042, allocations: 4 kB / 386.7 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.387e-05/0.008126, allocations: 117.5 kB / 386.8 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.008127, allocations: 0 / 386.8 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.006e-06/0.00813, allocations: 0 / 386.8 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.008132, allocations: 0 / 386.8 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.97e-06/0.008137, allocations: 8 kB / 386.8 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.008137, allocations: 0 / 386.8 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.008138, allocations: 0 / 386.8 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.008463, allocations: 391.2 kB / 387.2 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.498e-05/0.008478, allocations: 23.73 kB / 387.2 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.207e-06/0.008487, allocations: 4 kB / 387.2 MB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.264e-06/0.008495, allocations: 0 / 387.2 MB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.782e-05/0.008512, allocations: 0 / 387.2 MB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.008517, allocations: 0 / 387.2 MB, free: 9.082 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.237e-05/0.008549, allocations: 123.1 kB / 387.4 MB, free: 8.961 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008549, allocations: 0 / 387.4 MB, free: 8.961 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003195/0.008869, allocations: 107.8 kB / 387.5 MB, free: 8.855 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.0005208/0.009389, allocations: 284.3 kB / 387.7 MB, free: 8.602 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002889/0.009678, allocations: 307.8 kB / 388 MB, free: 8.301 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.00968, allocations: 0.5 kB / 388.1 MB, free: 8.301 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.178e-05/0.009722, allocations: 69.14 kB / 388.1 MB, free: 8.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001043/0.009826, allocations: 7.938 kB / 388.1 MB, free: 8.223 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003533/0.01018, allocations: 376.2 kB / 388.5 MB, free: 7.828 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.437e-05/0.01022, allocations: 81.38 kB / 388.6 MB, free: 7.727 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.966e-05/0.01027, allocations: 35.64 kB / 388.6 MB, free: 7.691 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.291e-05/0.01033, allocations: 94.2 kB / 388.7 MB, free: 7.598 MB / 362.7 MB Notification: Performance of SimCode: time 3.9e-07/0.01033, allocations: 0 / 388.7 MB, free: 7.598 MB / 362.7 MB Notification: Performance of Templates: time 0.005085/0.01541, allocations: 3.461 MB / 392.2 MB, free: 4.16 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.2722502718679607]