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.002047/0.002047, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002361/0.002361, allocations: 183.5 kB / 23.71 MB, free: 4.695 MB / 14.72 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 1.431/1.431, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
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 0.00147/0.00147, allocations: 43.92 kB / 370.9 MB, free: 9.344 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2611, allocations: 52.19 MB / 423.1 MB, free: 14.65 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002427/0.2636, allocations: 1.242 MB / 424.4 MB, free: 13.4 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0009921/0.2646, allocations: 473 kB / 424.8 MB, free: 12.94 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 3.505e-05/0.2646, allocations: 0 / 424.8 MB, free: 12.94 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 4.008e-05/0.2646, allocations: 3.938 kB / 424.8 MB, free: 12.93 MB / 334.1 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.0004507/0.2651, allocations: 79.72 kB / 424.9 MB, free: 12.86 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0001439/0.2652, allocations: 71.8 kB / 425 MB, free: 12.79 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001136/0.2653, allocations: 47.84 kB / 425 MB, free: 12.74 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 9.952e-05/0.2654, allocations: 4 kB / 425 MB, free: 12.73 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 3.426e-05/0.2655, allocations: 15.97 kB / 425 MB, free: 12.72 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 3.802e-05/0.2655, allocations: 23.91 kB / 425.1 MB, free: 12.7 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.5e-05/0.2655, allocations: 4 kB / 425.1 MB, free: 12.69 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002962/0.2658, allocations: 155.7 kB / 425.2 MB, free: 12.54 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 5.492e-05/0.2659, allocations: 31.92 kB / 425.2 MB, free: 12.51 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 6.783e-05/0.266, allocations: 55.59 kB / 425.3 MB, free: 12.45 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002686/0.2662, allocations: 180.5 kB / 425.5 MB, free: 12.28 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2662, allocations: 0 / 425.5 MB, free: 12.28 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.543e-06/0.2662, allocations: 4 kB / 425.5 MB, free: 12.28 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 4.759e-06/0.2662, allocations: 0 / 425.5 MB, free: 12.28 MB / 334.1 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.0006111/0.2668, allocations: 0.4929 MB / 426 MB, free: 11.74 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.2669, allocations: 15.97 kB / 426 MB, free: 11.72 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.267, allocations: 16.84 kB / 426 MB, free: 11.71 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.2671, allocations: 126.3 kB / 426.1 MB, free: 11.56 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.2672, allocations: 384 / 426.1 MB, free: 11.56 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.2672, allocations: 8.375 kB / 426.1 MB, free: 11.55 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000331/0.2675, allocations: 283.7 kB / 426.4 MB, free: 11.26 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.2675, allocations: 192 / 426.4 MB, free: 11.26 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.2675, allocations: 7.938 kB / 426.4 MB, free: 11.25 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.2675, allocations: 0 / 426.4 MB, free: 11.25 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001656/0.2677, allocations: 143.9 kB / 426.6 MB, free: 11.11 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001914/0.2679, allocations: 169.5 kB / 426.7 MB, free: 10.9 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002069/0.2681, allocations: 181.1 kB / 426.9 MB, free: 10.71 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.2683, allocations: 149.7 kB / 427.1 MB, free: 10.55 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 9.147e-06/0.2683, allocations: 0 / 427.1 MB, free: 10.55 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005217/0.2688, allocations: 488.6 kB / 427.5 MB, free: 10.03 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=46): time 9.02e-07/0.2688, allocations: 0 / 427.5 MB, free: 10.03 MB / 334.1 MB
Notification: Performance of matching and sorting (n=46): time 0.000932/0.2697, allocations: 0.7427 MB / 428.3 MB, free: 9.27 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.2698, allocations: 160.5 kB / 428.4 MB, free: 9.082 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.2699, allocations: 105.8 kB / 428.5 MB, free: 8.969 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.27, allocations: 25.7 kB / 428.6 MB, free: 8.938 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 3.951e-05/0.27, allocations: 85.14 kB / 428.6 MB, free: 8.852 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.402e-05/0.2701, allocations: 95.2 kB / 428.7 MB, free: 8.758 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.739e-05/0.2701, allocations: 41.69 kB / 428.8 MB, free: 8.711 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001553/0.2703, allocations: 330.9 kB / 429.1 MB, free: 8.379 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.534e-05/0.2704, allocations: 80.34 kB / 429.2 MB, free: 8.301 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.2705, allocations: 110.4 kB / 429.3 MB, free: 8.188 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003715/0.2709, allocations: 413.4 kB / 429.7 MB, free: 7.754 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2709, allocations: 0 / 429.7 MB, free: 7.754 MB / 334.1 MB
Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003831/0.2712, allocations: 352.8 kB / 430 MB, free: 7.391 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 0.0001019/0.2713, allocations: 111.3 kB / 430.1 MB, free: 7.27 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.2714, allocations: 0 / 430.1 MB, free: 7.27 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.2714, allocations: 4.094 kB / 430.1 MB, free: 7.266 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.2714, allocations: 4 kB / 430.2 MB, free: 7.262 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.2714, allocations: 0 / 430.2 MB, free: 7.262 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.865e-05/0.2714, allocations: 31.78 kB / 430.2 MB, free: 7.23 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.2715, allocations: 11.98 kB / 430.2 MB, free: 7.219 MB / 334.1 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.0002807/0.2717, allocations: 287.8 kB / 430.5 MB, free: 6.918 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.329e-05/0.2718, allocations: 27.84 kB / 430.5 MB, free: 6.891 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.887e-05/0.2718, allocations: 13.66 kB / 430.5 MB, free: 6.871 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2718, allocations: 0 / 430.5 MB, free: 6.871 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2718, allocations: 0 / 430.5 MB, free: 6.871 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2718, allocations: 3.984 kB / 430.5 MB, free: 6.867 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001976/0.272, allocations: 208.8 kB / 430.7 MB, free: 6.621 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.272, allocations: 0 / 430.7 MB, free: 6.621 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.272, allocations: 4 kB / 430.7 MB, free: 6.617 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.272, allocations: 3.938 kB / 430.7 MB, free: 6.613 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/0.272, allocations: 19.98 kB / 430.7 MB, free: 6.594 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.2721, allocations: 0 / 430.7 MB, free: 6.594 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2721, allocations: 4 kB / 430.8 MB, free: 6.59 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.2735, allocations: 1.26 MB / 432 MB, free: 5.297 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.182e-05/0.2735, allocations: 19.84 kB / 432 MB, free: 5.277 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.2736, allocations: 75.91 kB / 432.1 MB, free: 5.203 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.619e-05/0.2736, allocations: 8 kB / 432.1 MB, free: 5.195 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.2737, allocations: 11.98 kB / 432.1 MB, free: 5.184 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-05/0.2737, allocations: 16 kB / 432.1 MB, free: 5.168 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 5.386e-05/0.2738, allocations: 87.2 kB / 432.2 MB, free: 5.082 MB / 334.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.2738, allocations: 0 / 432.2 MB, free: 5.082 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0003212/0.2741, allocations: 91.88 kB / 432.3 MB, free: 4.992 MB / 334.1 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.0005917/0.2747, allocations: 299.3 kB / 432.6 MB, free: 4.727 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.00112/0.2758, allocations: 1.064 MB / 433.7 MB, free: 3.637 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2758, allocations: 0 / 433.7 MB, free: 3.637 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008666/0.2767, allocations: 0.8928 MB / 434.6 MB, free: 2.719 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000198/0.2769, allocations: 23.03 kB / 434.6 MB, free: 2.699 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006432/0.2775, allocations: 392.3 kB / 435 MB, free: 2.289 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/0.2779, allocations: 0.7283 MB / 435.7 MB, free: 1.531 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 1.084e-05/0.2779, allocations: 0 / 435.7 MB, free: 1.531 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.464e-05/0.2779, allocations: 7.438 kB / 435.7 MB, free: 1.523 MB / 334.1 MB
Notification: Performance of SimCode: time 3.1e-07/0.2779, allocations: 0 / 435.7 MB, free: 1.523 MB / 334.1 MB
Notification: Performance of Templates: time 0.007065/0.285, allocations: 3.183 MB / 438.9 MB, free: 14.34 MB / 350.1 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=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 480]
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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.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: 4.50154587533325]