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.001442/0.001442, allocations: 96.25 kB / 20.96 MB, free: 3.473 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.001832/0.001832, allocations: 156.9 kB / 24.27 MB, free: 176 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 1.614/1.614, allocations: 177 MB / 204.5 MB, free: 5.625 MB / 186.7 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.3963/0.3963, allocations: 34.24 MB / 295.2 MB, free: 0.6328 MB / 266.7 MB " [Timeout remaining time 179] 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.803e-06/1.803e-06, allocations: 0 / 377.2 MB, free: 2.895 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.95e-05/3.13e-05, allocations: 4.844 kB / 377.2 MB, free: 2.891 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001545/0.001576, allocations: 0.5439 MB / 377.8 MB, free: 2.344 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.002808, allocations: 0.5954 MB / 378.3 MB, free: 1.746 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.939e-05/0.002827, allocations: 4 kB / 378.4 MB, free: 1.742 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 7.853e-05/0.002906, allocations: 7.922 kB / 378.4 MB, free: 1.734 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.479e-06/0.00291, allocations: 0 / 378.4 MB, free: 1.734 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.0007106/0.003621, allocations: 203.2 kB / 378.6 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.389e-05/0.003685, allocations: 31.95 kB / 378.6 MB, free: 1.504 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.958e-05/0.003714, allocations: 0 / 378.6 MB, free: 1.504 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.366e-05/0.003758, allocations: 27.97 kB / 378.6 MB, free: 1.477 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.094e-05/0.003799, allocations: 12.2 kB / 378.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.00381, allocations: 0 / 378.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003685/0.004179, allocations: 203.5 kB / 378.8 MB, free: 1.262 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001/0.004279, allocations: 64.08 kB / 378.9 MB, free: 1.199 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.862e-05/0.004337, allocations: 31.91 kB / 378.9 MB, free: 1.168 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003171/0.004654, allocations: 223.2 kB / 379.1 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.573e-06/0.004656, allocations: 0 / 379.1 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.004657, allocations: 0 / 379.1 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.036e-06/0.00466, allocations: 0 / 379.1 MB, free: 0.9492 MB / 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.0005599/0.00522, allocations: 430.8 kB / 379.6 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.958e-05/0.005249, allocations: 8.031 kB / 379.6 MB, free: 500 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.268e-05/0.005302, allocations: 20.84 kB / 379.6 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.005403, allocations: 117.6 kB / 379.7 MB, free: 336 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.005427, allocations: 16.38 kB / 379.7 MB, free: 320 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.005451, allocations: 16.38 kB / 379.7 MB, free: 304 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000184/0.005635, allocations: 137.2 kB / 379.9 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.005641, allocations: 192 / 379.9 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.54e-06/0.005646, allocations: 384 / 379.9 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.484e-06/0.005649, allocations: 384 / 379.9 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.005757, allocations: 100.4 kB / 380 MB, free: 60 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001854/0.005942, allocations: 150.1 kB / 380.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001367/0.006079, allocations: 115 kB / 380.2 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.006195, allocations: 101.9 kB / 380.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.832e-06/0.006202, allocations: 0 / 380.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002296/0.006431, allocations: 166.3 kB / 380.5 MB, free: 15.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 9.52e-07/0.006432, allocations: 0 / 380.5 MB, free: 15.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=54): time 0.0008477/0.00728, allocations: 0.6039 MB / 381.1 MB, free: 14.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.818e-05/0.007378, allocations: 115.7 kB / 381.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.597e-05/0.007464, allocations: 121.7 kB / 381.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.799e-05/0.007542, allocations: 69.67 kB / 381.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.972e-05/0.007602, allocations: 97.48 kB / 381.5 MB, free: 14.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.007748, allocations: 143 kB / 381.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/0.007927, allocations: 154.7 kB / 381.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002858/0.008213, allocations: 350.8 kB / 382.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002921/0.008505, allocations: 177.9 kB / 382.3 MB, free: 13.62 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006474/0.009153, allocations: 0.5334 MB / 382.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.0102, allocations: 0.7827 MB / 383.6 MB, free: 11.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.01021, allocations: 4 kB / 383.6 MB, free: 11.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001223/0.01143, allocations: 0.7865 MB / 384.4 MB, free: 11.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.01145, allocations: 8 kB / 384.4 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.01147, allocations: 12 kB / 384.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.258e-05/0.0115, allocations: 16 kB / 384.4 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003974/0.0119, allocations: 115.7 kB / 384.5 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.959e-05/0.01193, allocations: 23.92 kB / 384.6 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002408/0.01217, allocations: 71.5 kB / 384.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.425e-05/0.01222, allocations: 47.98 kB / 384.7 MB, free: 10.89 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.0002625/0.01249, allocations: 245.6 kB / 384.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.255e-05/0.01251, allocations: 15.86 kB / 384.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.742e-05/0.01253, allocations: 5.812 kB / 385 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.01253, allocations: 4 kB / 385 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.01253, allocations: 0 / 385 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.01254, allocations: 3.938 kB / 385 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001324/0.01267, allocations: 121.6 kB / 385.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.01267, allocations: 0 / 385.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.457e-06/0.01267, allocations: 3.938 kB / 385.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.01268, allocations: 4 kB / 385.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.18e-06/0.01268, allocations: 0 / 385.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.01268, allocations: 0 / 385.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.01268, allocations: 0 / 385.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006249/0.01331, allocations: 463.9 kB / 385.5 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.478e-05/0.01333, allocations: 31.77 kB / 385.6 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.879e-06/0.01334, allocations: 0 / 385.6 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.349e-05/0.01336, allocations: 0 / 385.6 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.809e-05/0.01338, allocations: 7.984 kB / 385.6 MB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.01339, allocations: 0 / 385.6 MB, free: 9.949 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.125e-05/0.01343, allocations: 75.28 kB / 385.7 MB, free: 9.875 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01343, allocations: 0 / 385.7 MB, free: 9.875 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004803/0.01391, allocations: 95.81 kB / 385.7 MB, free: 9.781 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.0006943/0.01461, allocations: 292.6 kB / 386 MB, free: 9.523 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006576/0.01526, allocations: 452.3 kB / 386.5 MB, free: 9.078 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.01526, allocations: 0 / 386.5 MB, free: 9.078 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.01538, allocations: 106.3 kB / 386.6 MB, free: 8.977 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001361/0.01552, allocations: 6.812 kB / 386.6 MB, free: 8.973 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006195/0.01614, allocations: 458.7 kB / 387 MB, free: 8.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001263/0.01626, allocations: 120.2 kB / 387.1 MB, free: 8.363 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.508e-05/0.01635, allocations: 47.58 kB / 387.2 MB, free: 8.316 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.074e-05/0.01639, allocations: 20.5 kB / 387.2 MB, free: 8.293 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01639, allocations: 0 / 387.2 MB, free: 8.293 MB / 362.7 MB Notification: Performance of Templates: time 0.007234/0.02362, allocations: 3.164 MB / 390.4 MB, free: 5.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=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.074037685990334]