Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 143.7 kB / 24.98 MB, free: 8.812 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9224/0.9224, allocations: 173.4 MB / 201.5 MB, free: 9.355 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 268.1 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.523e-05/1.649e-05, allocations: 6.312 kB / 268.1 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001381/0.001398, allocations: 1.256 MB / 269.3 MB, free: 5.488 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006187/0.002016, allocations: 466.2 kB / 269.8 MB, free: 5.031 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.317e-05/0.00205, allocations: 0 / 269.8 MB, free: 5.031 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.796e-05/0.002087, allocations: 3.984 kB / 269.8 MB, free: 5.027 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeBindings: time 0.0003876/0.002475, allocations: 83.59 kB / 269.9 MB, free: 4.945 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001001/0.002575, allocations: 63.69 kB / 269.9 MB, free: 4.883 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.798e-05/0.002653, allocations: 43.89 kB / 270 MB, free: 4.84 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.452e-05/0.002688, allocations: 7.984 kB / 270 MB, free: 4.832 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.172e-05/0.002729, allocations: 23.92 kB / 270 MB, free: 4.809 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.094e-05/0.00276, allocations: 19.97 kB / 270 MB, free: 4.789 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.002772, allocations: 3.938 kB / 270 MB, free: 4.785 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.002966, allocations: 147.7 kB / 270.2 MB, free: 4.641 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.969e-05/0.003005, allocations: 39.86 kB / 270.2 MB, free: 4.602 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.402e-05/0.003039, allocations: 27.86 kB / 270.2 MB, free: 4.574 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000203/0.003242, allocations: 199.3 kB / 270.4 MB, free: 4.379 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.003244, allocations: 0 / 270.4 MB, free: 4.379 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.003245, allocations: 0 / 270.4 MB, free: 4.379 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.003249, allocations: 0 / 270.4 MB, free: 4.379 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0003971/0.003646, allocations: 0.5577 MB / 271 MB, free: 3.77 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.003678, allocations: 8.922 kB / 271 MB, free: 3.762 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.003803, allocations: 24.84 kB / 271 MB, free: 3.738 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.246e-05/0.003896, allocations: 120.4 kB / 271.1 MB, free: 3.594 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.003908, allocations: 4.375 kB / 271.1 MB, free: 3.59 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.022e-05/0.003918, allocations: 4.375 kB / 271.1 MB, free: 3.586 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002038/0.004122, allocations: 287.8 kB / 271.4 MB, free: 3.277 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.004131, allocations: 4.188 kB / 271.4 MB, free: 3.273 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-06/0.004139, allocations: 384 / 271.4 MB, free: 3.273 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.004147, allocations: 384 / 271.4 MB, free: 3.273 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.249e-05/0.004239, allocations: 175.3 kB / 271.6 MB, free: 3.09 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001108/0.00435, allocations: 148 kB / 271.8 MB, free: 2.906 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.004482, allocations: 229.5 kB / 272 MB, free: 2.645 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.83e-05/0.004581, allocations: 190.8 kB / 272.2 MB, free: 2.438 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.498e-06/0.004585, allocations: 0 / 272.2 MB, free: 2.438 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002785/0.004864, allocations: 486.3 kB / 272.6 MB, free: 1.902 MB / 250.7 MB Notification: Performance of pre-optimization done (n=46): time 1.122e-06/0.004865, allocations: 0 / 272.6 MB, free: 1.902 MB / 250.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005797/0.005444, allocations: 0.738 MB / 273.4 MB, free: 1.121 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.005502, allocations: 164.4 kB / 273.5 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.221e-05/0.005574, allocations: 169.9 kB / 273.7 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.598e-06/0.005584, allocations: 25.7 kB / 273.7 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.129e-05/0.005615, allocations: 127.9 kB / 273.9 MB, free: 0.582 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.281e-05/0.005668, allocations: 99.22 kB / 273.9 MB, free: 496 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.422e-05/0.005712, allocations: 51.3 kB / 274 MB, free: 436 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003334/0.006046, allocations: 0.504 MB / 274.5 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.816e-05/0.006114, allocations: 131.8 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.055e-05/0.006194, allocations: 171.5 kB / 274.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/0.006359, allocations: 335.4 kB / 275.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.006361, allocations: 3.938 kB / 275.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002524/0.006613, allocations: 420.3 kB / 275.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.65e-05/0.00668, allocations: 103.3 kB / 275.6 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.006684, allocations: 4 kB / 275.6 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.006697, allocations: 0 / 275.6 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.193e-06/0.006698, allocations: 0 / 275.6 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.006704, allocations: 3.938 kB / 275.6 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.442e-05/0.006739, allocations: 23.84 kB / 275.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.006751, allocations: 16.03 kB / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],r1024,r128,r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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.0001483/0.006899, allocations: 302.5 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.344e-05/0.006943, allocations: 39.91 kB / 276 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.535e-05/0.006958, allocations: 13.64 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.006961, allocations: 4 kB / 276 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.006964, allocations: 0 / 276 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.006968, allocations: 3.938 kB / 276 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.577e-05/0.007064, allocations: 168.4 kB / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.007065, allocations: 0 / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.072e-06/0.007066, allocations: 0 / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.007067, allocations: 0 / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.007087, allocations: 23.97 kB / 276.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.007088, allocations: 0 / 276.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.007088, allocations: 0 / 276.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000545/0.007633, allocations: 0.7811 MB / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.652e-05/0.00765, allocations: 23.78 kB / 277 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.009e-05/0.00772, allocations: 59.94 kB / 277.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.891e-05/0.007749, allocations: 8 kB / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.744e-05/0.007776, allocations: 11.98 kB / 277.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.007795, allocations: 23.92 kB / 277.1 MB, free: 13.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.265e-05/0.007827, allocations: 123.2 kB / 277.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007827, allocations: 0 / 277.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002248/0.008052, allocations: 95.86 kB / 277.4 MB, free: 12.84 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0004138/0.008466, allocations: 312.7 kB / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004269/0.008893, allocations: 0.6608 MB / 278.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.008894, allocations: 0 / 278.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002373/0.009131, allocations: 465.7 kB / 278.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001377/0.009269, allocations: 25.56 kB / 278.8 MB, free: 11.33 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004075/0.009677, allocations: 414.5 kB / 279.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.157e-05/0.009718, allocations: 80.27 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.382e-06/0.009725, allocations: 0 / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.155e-05/0.009736, allocations: 8.5 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.009737, allocations: 7.938 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of Templates: time 0.00443/0.01417, allocations: 3.156 MB / 282.5 MB, free: 7.629 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.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: 2.8728592479601502]