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.001384/0.001384, allocations: 86.02 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001557/0.001557, allocations: 158.8 kB / 23.95 MB, free: 4.168 MB / 14.72 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.499/1.499, allocations: 177 MB / 204.1 MB, free: 9.18 MB / 190.1 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.2387/0.2387, allocations: 34.25 MB / 294.8 MB, free: 14.55 MB / 286.1 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=1,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 442.6 MB, free: 5.328 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.11e-05/3.299e-05, allocations: 12.75 kB / 442.7 MB, free: 5.316 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001707/0.00174, allocations: 0.5438 MB / 443.2 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.00335, allocations: 0.5878 MB / 443.8 MB, free: 4.184 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.232e-05/0.003383, allocations: 0 / 443.8 MB, free: 4.184 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001251/0.003508, allocations: 7.938 kB / 443.8 MB, free: 4.176 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.43e-06/0.003513, allocations: 0 / 443.8 MB, free: 4.176 MB / 366.1 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.0009333/0.004446, allocations: 207.2 kB / 444 MB, free: 3.973 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.804e-05/0.004524, allocations: 39.89 kB / 444 MB, free: 3.934 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.972e-05/0.004574, allocations: 0 / 444 MB, free: 3.934 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.164e-05/0.004616, allocations: 15.97 kB / 444.1 MB, free: 3.918 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.238e-05/0.004668, allocations: 12.27 kB / 444.1 MB, free: 3.902 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.004683, allocations: 0 / 444.1 MB, free: 3.902 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003812/0.005064, allocations: 207.5 kB / 444.3 MB, free: 3.699 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.475e-05/0.005159, allocations: 60.14 kB / 444.3 MB, free: 3.641 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.007e-05/0.005219, allocations: 39.78 kB / 444.4 MB, free: 3.602 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003458/0.005565, allocations: 215.3 kB / 444.6 MB, free: 3.391 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.005567, allocations: 0 / 444.6 MB, free: 3.391 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005568, allocations: 0 / 444.6 MB, free: 3.391 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.005577, allocations: 4 kB / 444.6 MB, free: 3.387 MB / 366.1 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.0005992/0.006176, allocations: 422.9 kB / 445 MB, free: 2.938 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.006214, allocations: 8.031 kB / 445 MB, free: 2.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.145e-05/0.006266, allocations: 16.84 kB / 445 MB, free: 2.914 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.006374, allocations: 125.6 kB / 445.1 MB, free: 2.766 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.006391, allocations: 16.31 kB / 445.2 MB, free: 2.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.513e-05/0.006426, allocations: 24.38 kB / 445.2 MB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001996/0.006626, allocations: 125.2 kB / 445.3 MB, free: 2.602 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.006635, allocations: 192 / 445.3 MB, free: 2.602 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.006646, allocations: 4.375 kB / 445.3 MB, free: 2.598 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.006651, allocations: 4.375 kB / 445.3 MB, free: 2.594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001045/0.006755, allocations: 96.34 kB / 445.4 MB, free: 2.496 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001868/0.006942, allocations: 154.1 kB / 445.6 MB, free: 2.316 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001377/0.00708, allocations: 115 kB / 445.7 MB, free: 2.195 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.007183, allocations: 101.8 kB / 445.8 MB, free: 2.094 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.052e-06/0.007189, allocations: 3.984 kB / 445.8 MB, free: 2.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/0.007433, allocations: 166.3 kB / 445.9 MB, free: 1.914 MB / 366.1 MB Notification: Performance of pre-optimization done (n=54): time 1.322e-06/0.007434, allocations: 0 / 445.9 MB, free: 1.914 MB / 366.1 MB Notification: Performance of matching and sorting (n=54): time 0.0008185/0.008253, allocations: 0.6078 MB / 446.5 MB, free: 1.305 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.358e-05/0.008346, allocations: 107.8 kB / 446.6 MB, free: 1.184 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.584e-05/0.008422, allocations: 129.7 kB / 446.8 MB, free: 1.047 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.289e-05/0.008505, allocations: 65.69 kB / 446.8 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.707e-05/0.008562, allocations: 97.44 kB / 446.9 MB, free: 0.875 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.008706, allocations: 139.1 kB / 447.1 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.008882, allocations: 158.7 kB / 447.2 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.009058, allocations: 338.8 kB / 447.6 MB, free: 244 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000288/0.009346, allocations: 189.8 kB / 447.7 MB, free: 56 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2134/0.2228, allocations: 0.5264 MB / 448.3 MB, free: 18.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008393/0.2236, allocations: 0.7802 MB / 449 MB, free: 17.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.2236, allocations: 3.531 kB / 449 MB, free: 17.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001089/0.2247, allocations: 0.74 MB / 449.8 MB, free: 17.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.2247, allocations: 9.344 kB / 449.8 MB, free: 17.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-05/0.2248, allocations: 14.81 kB / 449.8 MB, free: 17.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.877e-05/0.2248, allocations: 19.56 kB / 449.8 MB, free: 17.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004048/0.2252, allocations: 113.6 kB / 449.9 MB, free: 17.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.114e-05/0.2252, allocations: 30.3 kB / 450 MB, free: 17.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002182/0.2255, allocations: 71.88 kB / 450 MB, free: 17.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.971e-05/0.2255, allocations: 45.34 kB / 450.1 MB, free: 17.61 MB / 366.1 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.0002211/0.2257, allocations: 246.1 kB / 450.3 MB, free: 17.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/0.2258, allocations: 14.98 kB / 450.3 MB, free: 17.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.092e-05/0.2258, allocations: 7.406 kB / 450.3 MB, free: 17.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.2258, allocations: 0.6094 kB / 450.3 MB, free: 17.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.2258, allocations: 0 / 450.3 MB, free: 17.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.2258, allocations: 0 / 450.3 MB, free: 17.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.452e-05/0.2259, allocations: 126.3 kB / 450.5 MB, free: 17.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2259, allocations: 0 / 450.5 MB, free: 17.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.157e-06/0.2259, allocations: 2.031 kB / 450.5 MB, free: 17.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2259, allocations: 0 / 450.5 MB, free: 17.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.2259, allocations: 4.625 kB / 450.5 MB, free: 17.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2259, allocations: 0 / 450.5 MB, free: 17.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2259, allocations: 7.062 kB / 450.5 MB, free: 17.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005362/0.2264, allocations: 460.8 kB / 450.9 MB, free: 17.1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.898e-05/0.2265, allocations: 23.31 kB / 451 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.2265, allocations: 5.828 kB / 451 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.389e-05/0.2265, allocations: 3.344 kB / 451 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.252e-05/0.2265, allocations: 2.031 kB / 451 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.2265, allocations: 5.969 kB / 451 MB, free: 17.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 1.41e-05/0.2265, allocations: 75.28 kB / 451 MB, free: 17.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2265, allocations: 0 / 451 MB, free: 17.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005076/0.227, allocations: 99.47 kB / 451.1 MB, free: 16.99 MB / 366.1 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.000684/0.2277, allocations: 271.1 kB / 451.4 MB, free: 16.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007003/0.2284, allocations: 455.8 kB / 451.9 MB, free: 16.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.2284, allocations: 1.375 kB / 451.9 MB, free: 16.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.2286, allocations: 103.5 kB / 452 MB, free: 16.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000159/0.2287, allocations: 7.469 kB / 452 MB, free: 16.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005911/0.2293, allocations: 456.5 kB / 452.4 MB, free: 16.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001083/0.2294, allocations: 122.4 kB / 452.5 MB, free: 16.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.455e-05/0.2295, allocations: 43.19 kB / 452.6 MB, free: 16.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.241e-05/0.2295, allocations: 23.66 kB / 452.6 MB, free: 16.36 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2295, allocations: 0 / 452.6 MB, free: 16.36 MB / 366.1 MB Notification: Performance of Templates: time 0.008449/0.238, allocations: 3.128 MB / 455.7 MB, free: 16.06 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) [Timeout 480] 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.166062626987696]