Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.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.001372/0.001372, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.001765/0.001765, allocations: 209.3 kB / 24.54 MB, free: 4.055 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.537/1.537, allocations: 230.3 MB / 258 MB, free: 8.234 MB / 206.1 MB
"
[Timeout remaining time 178]
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.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5101,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions")
translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5101,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 67.88 kB / 378.8 MB, free: 2.773 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.3724, allocations: 53.36 MB / 432.1 MB, free: 7.043 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.006618/0.379, allocations: 1.553 MB / 433.7 MB, free: 5.488 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.005491/0.3845, allocations: 1.523 MB / 435.2 MB, free: 3.953 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.3847, allocations: 0 / 435.2 MB, free: 3.953 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001669/0.3849, allocations: 15.8 kB / 435.2 MB, free: 3.938 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.3851, allocations: 27.8 kB / 435.2 MB, free: 3.91 MB / 334.1 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.typeClassSections: time 0.002373/0.3874, allocations: 398.8 kB / 435.6 MB, free: 3.52 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004807/0.3879, allocations: 135.5 kB / 435.8 MB, free: 3.387 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.3881, allocations: 5.688 kB / 435.8 MB, free: 3.375 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002244/0.3883, allocations: 71.62 kB / 435.8 MB, free: 3.305 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001458/0.3897, allocations: 77.33 kB / 435.9 MB, free: 3.234 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 8.915e-05/0.3898, allocations: 12 kB / 435.9 MB, free: 3.223 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001525/0.3913, allocations: 471 kB / 436.4 MB, free: 2.762 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.3915, allocations: 43.89 kB / 436.4 MB, free: 2.719 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001404/0.3916, allocations: 63.55 kB / 436.5 MB, free: 2.656 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001491/0.3931, allocations: 408.4 kB / 436.9 MB, free: 2.266 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.3931, allocations: 0 / 436.9 MB, free: 2.266 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.025e-05/0.3931, allocations: 7.984 kB / 436.9 MB, free: 2.258 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.454e-05/0.3931, allocations: 0 / 436.9 MB, free: 2.258 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: 17
 * Number of variables: 17
Notification: Performance of Generate backend data structure: time 0.00162/0.3948, allocations: 448.8 kB / 437.3 MB, free: 1.789 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 6.7e-05/0.3948, allocations: 8.031 kB / 437.3 MB, free: 1.781 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000421/0.3953, allocations: 28.83 kB / 437.4 MB, free: 1.754 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/0.3956, allocations: 163 kB / 437.5 MB, free: 1.566 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.342e-05/0.3956, allocations: 12.36 kB / 437.5 MB, free: 1.555 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.983e-05/0.3957, allocations: 4.375 kB / 437.5 MB, free: 1.551 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004398/0.3961, allocations: 132.5 kB / 437.7 MB, free: 1.406 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3961, allocations: 0 / 437.7 MB, free: 1.406 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.3961, allocations: 0 / 437.7 MB, free: 1.406 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.3962, allocations: 4 kB / 437.7 MB, free: 1.402 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003571/0.3965, allocations: 63.89 kB / 437.7 MB, free: 1.34 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.3978, allocations: 0.5273 MB / 438.3 MB, free: 0.7617 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005822/0.3983, allocations: 143.7 kB / 438.4 MB, free: 0.5938 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001829/0.3985, allocations: 62.61 kB / 438.5 MB, free: 0.5234 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.3985, allocations: 0 / 438.5 MB, free: 0.5234 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003658/0.3989, allocations: 156.5 kB / 438.6 MB, free: 360 kB / 334.1 MB
Notification: Performance of pre-optimization done (n=17): time 2.554e-06/0.3989, allocations: 0 / 438.6 MB, free: 360 kB / 334.1 MB
Notification: Performance of matching and sorting (n=17): time 0.0007876/0.3997, allocations: 249.8 kB / 438.9 MB, free: 104 kB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001841/0.3999, allocations: 127 kB / 439 MB, free: 15.95 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003676/0.4003, allocations: 191.2 kB / 439.2 MB, free: 15.76 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.245e-05/0.4003, allocations: 45.69 kB / 439.2 MB, free: 15.71 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.4005, allocations: 108.6 kB / 439.3 MB, free: 15.6 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.006e-05/0.4005, allocations: 43.69 kB / 439.4 MB, free: 15.55 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.4007, allocations: 57.67 kB / 439.4 MB, free: 15.49 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002764/0.401, allocations: 338.7 kB / 439.8 MB, free: 15.15 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002768/0.4012, allocations: 103.9 kB / 439.9 MB, free: 15.05 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000307/0.4015, allocations: 140 kB / 440 MB, free: 14.9 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004962/0.402, allocations: 224.2 kB / 440.2 MB, free: 14.67 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.402, allocations: 0 / 440.2 MB, free: 14.67 MB / 350.1 MB
Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008324/0.4029, allocations: 301.4 kB / 440.5 MB, free: 14.37 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.4029, allocations: 4 kB / 440.5 MB, free: 14.37 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.206e-05/0.4029, allocations: 7.984 kB / 440.5 MB, free: 14.36 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.881e-05/0.403, allocations: 0 / 440.5 MB, free: 14.36 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.4032, allocations: 40 kB / 440.6 MB, free: 14.32 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.4032, allocations: 0 / 440.6 MB, free: 14.32 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/0.4033, allocations: 23.84 kB / 440.6 MB, free: 14.3 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-05/0.4034, allocations: 11.98 kB / 440.6 MB, free: 14.29 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 4
 * Number of states: 0 ()
 * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,globalSeed.seed,truncatedNormalNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,uniformNoise.actualGlobalSeed,uniformNoise.localSeed,globalSeed.id_impure,uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1],truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (29):
 * Single equations (assignments): 27
 * Array equations: 2
 * 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.000246/0.4036, allocations: 149.7 kB / 440.7 MB, free: 14.13 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.036e-05/0.4037, allocations: 19.89 kB / 440.8 MB, free: 14.11 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.653e-05/0.4037, allocations: 17.41 kB / 440.8 MB, free: 14.09 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.4038, allocations: 4 kB / 440.8 MB, free: 14.09 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.4038, allocations: 0 / 440.8 MB, free: 14.09 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.4038, allocations: 4 kB / 440.8 MB, free: 14.08 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000407/0.4042, allocations: 188.5 kB / 441 MB, free: 13.86 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.4042, allocations: 0 / 441 MB, free: 13.86 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.033e-05/0.4042, allocations: 11.98 kB / 441 MB, free: 13.84 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 8.285e-06/0.4043, allocations: 4 kB / 441 MB, free: 13.84 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.4043, allocations: 4 kB / 441 MB, free: 13.84 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.4043, allocations: 0 / 441 MB, free: 13.84 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.961e-05/0.4043, allocations: 8.078 kB / 441 MB, free: 13.83 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005664/0.4049, allocations: 250.4 kB / 441.2 MB, free: 13.56 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.366e-05/0.4049, allocations: 15.91 kB / 441.3 MB, free: 13.54 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.899e-05/0.405, allocations: 11.98 kB / 441.3 MB, free: 13.53 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.699e-05/0.4051, allocations: 8 kB / 441.3 MB, free: 13.52 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.459e-05/0.4052, allocations: 19.97 kB / 441.3 MB, free: 13.5 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.4052, allocations: 7.938 kB / 441.3 MB, free: 13.5 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002001/0.4054, allocations: 145.1 kB / 441.4 MB, free: 13.36 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1.1e-07/0.4054, allocations: 4 kB / 441.4 MB, free: 13.35 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0007102/0.4061, allocations: 119.6 kB / 441.6 MB, free: 13.23 MB / 350.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 15 ($whenCondition2,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n)
 * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4])
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (9):
 * Single equations (assignments): 5
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 4
 * 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.001417/0.4075, allocations: 341 kB / 441.9 MB, free: 12.91 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006406/0.4081, allocations: 184.5 kB / 442.1 MB, free: 12.73 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4082, allocations: 0 / 442.1 MB, free: 12.73 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002055/0.4084, allocations: 55.91 kB / 442.1 MB, free: 12.68 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.4086, allocations: 11.98 kB / 442.1 MB, free: 12.67 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008942/0.4095, allocations: 276.9 kB / 442.4 MB, free: 12.37 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006695/0.4102, allocations: 0.728 MB / 443.1 MB, free: 11.61 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001073/0.4103, allocations: 25.39 kB / 443.2 MB, free: 11.59 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.755e-05/0.4103, allocations: 15.44 kB / 443.2 MB, free: 11.57 MB / 350.1 MB
Notification: Performance of SimCode: time 1.193e-06/0.4103, allocations: 0 / 443.2 MB, free: 11.57 MB / 350.1 MB
Notification: Performance of Templates: time 0.01248/0.4228, allocations: 3.637 MB / 446.8 MB, free: 7.949 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.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.029369296506047]