Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.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.001085/0.001085, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001081/0.001081, allocations: 160.5 kB / 24.55 MB, free: 20 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.072/1.072, allocations: 177 MB / 204.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.236e-05/3.446e-05, allocations: 2.312 kB / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002231/0.002266, allocations: 1.268 MB / 274.2 MB, free: 180 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008167/0.003083, allocations: 470.2 kB / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.154e-05/0.003124, allocations: 0 / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 5.054e-05/0.003175, allocations: 3.938 kB / 274.6 MB, free: 15.71 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0005539/0.003729, allocations: 79.59 kB / 274.7 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000205/0.003934, allocations: 67.67 kB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.898e-05/0.004033, allocations: 43.89 kB / 274.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.957e-05/0.004072, allocations: 8 kB / 274.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.783e-05/0.00412, allocations: 31.91 kB / 274.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.554e-05/0.004155, allocations: 15.97 kB / 274.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.004169, allocations: 0 / 274.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002532/0.004422, allocations: 151.7 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.123e-05/0.004473, allocations: 35.88 kB / 275.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.387e-05/0.004517, allocations: 31.91 kB / 275.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002491/0.004766, allocations: 187.3 kB / 275.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.004769, allocations: 0 / 275.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.00477, allocations: 3.938 kB / 275.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.004775, allocations: 0 / 275.3 MB, free: 15.07 MB / 266.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.0005102/0.005285, allocations: 0.5616 MB / 275.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.005325, allocations: 11.98 kB / 275.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001408/0.005465, allocations: 28.83 kB / 275.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.005588, allocations: 128.4 kB / 276 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.005603, allocations: 8.312 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.479e-05/0.005617, allocations: 4.375 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00023/0.005847, allocations: 272 kB / 276.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.005859, allocations: 192 / 276.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.00587, allocations: 4.375 kB / 276.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.005878, allocations: 384 / 276.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001012/0.00598, allocations: 183.2 kB / 276.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001335/0.006113, allocations: 144.2 kB / 276.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000144/0.006257, allocations: 225.5 kB / 276.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.00636, allocations: 190.8 kB / 277 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.45e-06/0.006366, allocations: 0 / 277 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002911/0.006657, allocations: 474.4 kB / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 8.11e-07/0.006658, allocations: 0 / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006113/0.007269, allocations: 0.7467 MB / 278.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.146e-05/0.00734, allocations: 156.5 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.062e-05/0.007431, allocations: 173.9 kB / 278.5 MB, free: 11.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.007442, allocations: 25.7 kB / 278.6 MB, free: 11.4 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.025e-05/0.007483, allocations: 127.9 kB / 278.7 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.257e-05/0.007545, allocations: 103.2 kB / 278.8 MB, free: 11.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/0.007593, allocations: 51.34 kB / 278.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.00773, allocations: 0.5001 MB / 279.3 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.681e-05/0.007817, allocations: 139.7 kB / 279.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.156e-05/0.007909, allocations: 167.5 kB / 279.6 MB, free: 10.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001937/0.008102, allocations: 330 kB / 280 MB, free: 9.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.008105, allocations: 0 / 280 MB, free: 9.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002918/0.008396, allocations: 428.2 kB / 280.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.847e-05/0.008465, allocations: 106.6 kB / 280.5 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.008471, allocations: 4 kB / 280.5 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.00849, allocations: 0 / 280.5 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.298e-06/0.008494, allocations: 0 / 280.5 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.008502, allocations: 3.938 kB / 280.5 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.945e-05/0.008541, allocations: 23.84 kB / 280.5 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.008556, allocations: 11.98 kB / 280.5 MB, free: 9.305 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.0001795/0.008736, allocations: 306.5 kB / 280.8 MB, free: 8.98 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.351e-05/0.008779, allocations: 43.84 kB / 280.9 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.549e-05/0.008795, allocations: 5.656 kB / 280.9 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.008798, allocations: 4.328 kB / 280.9 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.008802, allocations: 0 / 280.9 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.008808, allocations: 3.938 kB / 280.9 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004071/0.009215, allocations: 172.4 kB / 281.1 MB, free: 8.723 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.009218, allocations: 7.984 kB / 281.1 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.293e-06/0.009219, allocations: 0 / 281.1 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.009222, allocations: 0 / 281.1 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.009244, allocations: 20 kB / 281.1 MB, free: 8.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.009247, allocations: 0 / 281.1 MB, free: 8.695 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.009249, allocations: 3.984 kB / 281.1 MB, free: 8.691 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006063/0.009856, allocations: 0.7693 MB / 281.9 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.623e-05/0.009882, allocations: 19.84 kB / 281.9 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.801e-05/0.00996, allocations: 63.88 kB / 281.9 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.23e-05/0.009992, allocations: 11.94 kB / 281.9 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.917e-05/0.01003, allocations: 16.02 kB / 282 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.01005, allocations: 19.94 kB / 282 MB, free: 7.742 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.302e-05/0.01009, allocations: 127.2 kB / 282.1 MB, free: 7.617 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01009, allocations: 0 / 282.1 MB, free: 7.617 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000266/0.01036, allocations: 91.88 kB / 282.2 MB, free: 7.527 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.0005438/0.0109, allocations: 315 kB / 282.5 MB, free: 7.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004867/0.01139, allocations: 0.661 MB / 283.2 MB, free: 6.535 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.01139, allocations: 4.125 kB / 283.2 MB, free: 6.531 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.01164, allocations: 457.7 kB / 283.6 MB, free: 6.043 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.0118, allocations: 31.98 kB / 283.6 MB, free: 6.012 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005141/0.01231, allocations: 414.2 kB / 284.1 MB, free: 5.559 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.422e-05/0.01237, allocations: 84.25 kB / 284.1 MB, free: 5.453 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.248e-06/0.01238, allocations: 0 / 284.1 MB, free: 5.453 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.827e-05/0.01239, allocations: 8.5 kB / 284.1 MB, free: 5.445 MB / 266.7 MB Notification: Performance of SimCode: time 9.71e-07/0.0124, allocations: 4.125 kB / 284.1 MB, free: 5.441 MB / 266.7 MB Notification: Performance of Templates: time 0.005205/0.0176, allocations: 3.169 MB / 287.3 MB, free: 2.281 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.819974613375962]