Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.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.001761/0.001761, allocations: 112 kB / 20.43 MB, free: 1.449 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.001752/0.001752, allocations: 187.8 kB / 23.72 MB, free: 4.68 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.565/1.565, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5101,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001698, allocations: 47.92 kB / 370.9 MB, free: 9.355 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3072, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002974/0.3102, allocations: 1.551 MB / 424.7 MB, free: 13.13 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002762/0.3129, allocations: 1.464 MB / 426.1 MB, free: 11.66 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 5.989e-05/0.313, allocations: 0 / 426.1 MB, free: 11.66 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001019/0.3131, allocations: 15.81 kB / 426.1 MB, free: 11.65 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 8.779e-05/0.3132, allocations: 23.8 kB / 426.2 MB, free: 11.62 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.typeClassSections: time 0.001165/0.3144, allocations: 394.8 kB / 426.6 MB, free: 11.24 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001874/0.3145, allocations: 135.5 kB / 426.7 MB, free: 11.11 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 4.973e-05/0.3146, allocations: 5.688 kB / 426.7 MB, free: 11.09 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 8.194e-05/0.3147, allocations: 59.77 kB / 426.8 MB, free: 11.04 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0005886/0.3153, allocations: 81.75 kB / 426.8 MB, free: 10.96 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.3153, allocations: 8 kB / 426.8 MB, free: 10.95 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0007505/0.316, allocations: 467.1 kB / 427.3 MB, free: 10.5 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 6.22e-05/0.3161, allocations: 39.78 kB / 427.3 MB, free: 10.46 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 8.009e-05/0.3162, allocations: 63.59 kB / 427.4 MB, free: 10.39 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0006846/0.3169, allocations: 396 kB / 427.8 MB, free: 10.02 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3169, allocations: 4 kB / 427.8 MB, free: 10.01 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.104e-06/0.3169, allocations: 0 / 427.8 MB, free: 10.01 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.258e-05/0.3169, allocations: 0 / 427.8 MB, free: 10.01 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.000921/0.3178, allocations: 464.7 kB / 428.2 MB, free: 9.527 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.3178, allocations: 8.031 kB / 428.2 MB, free: 9.52 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002415/0.3181, allocations: 32.78 kB / 428.3 MB, free: 9.488 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001961/0.3183, allocations: 147.8 kB / 428.4 MB, free: 9.316 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.3183, allocations: 8 kB / 428.4 MB, free: 9.309 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.3183, allocations: 11.98 kB / 428.4 MB, free: 9.297 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003165/0.3187, allocations: 135.6 kB / 428.6 MB, free: 9.152 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3187, allocations: 0 / 428.6 MB, free: 9.152 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.3187, allocations: 0 / 428.6 MB, free: 9.152 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.3187, allocations: 0 / 428.6 MB, free: 9.152 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.3189, allocations: 67.94 kB / 428.6 MB, free: 9.086 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000895/0.3198, allocations: 0.5194 MB / 429.2 MB, free: 8.516 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003853/0.3202, allocations: 147.7 kB / 429.3 MB, free: 8.344 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/0.3203, allocations: 54.61 kB / 429.4 MB, free: 8.281 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.3204, allocations: 8 kB / 429.4 MB, free: 8.273 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003374/0.3207, allocations: 149.8 kB / 429.5 MB, free: 8.105 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=17): time 1.323e-06/0.3207, allocations: 4 kB / 429.5 MB, free: 8.102 MB / 334.1 MB
Notification: Performance of matching and sorting (n=17): time 0.0006638/0.3214, allocations: 253.5 kB / 429.8 MB, free: 7.848 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.3215, allocations: 130.7 kB / 429.9 MB, free: 7.695 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.3217, allocations: 191.2 kB / 430.1 MB, free: 7.5 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.001e-05/0.3217, allocations: 53.81 kB / 430.1 MB, free: 7.441 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.854e-05/0.3218, allocations: 108.5 kB / 430.2 MB, free: 7.332 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.228e-05/0.3219, allocations: 47.67 kB / 430.3 MB, free: 7.285 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.058e-05/0.322, allocations: 57.69 kB / 430.3 MB, free: 7.223 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.000156/0.3221, allocations: 326.8 kB / 430.7 MB, free: 6.895 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.3223, allocations: 99.94 kB / 430.8 MB, free: 6.797 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002522/0.3226, allocations: 148.2 kB / 430.9 MB, free: 6.641 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004344/0.323, allocations: 224.2 kB / 431.1 MB, free: 6.41 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.323, allocations: 0 / 431.1 MB, free: 6.41 MB / 334.1 MB
Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005817/0.3236, allocations: 309.4 kB / 431.4 MB, free: 6.102 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.3236, allocations: 4 kB / 431.4 MB, free: 6.098 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3236, allocations: 0 / 431.4 MB, free: 6.098 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.3237, allocations: 7.938 kB / 431.4 MB, free: 6.09 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.3238, allocations: 31.91 kB / 431.5 MB, free: 6.059 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.3238, allocations: 4 kB / 431.5 MB, free: 6.055 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.953e-05/0.3239, allocations: 19.89 kB / 431.5 MB, free: 6.035 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.3239, allocations: 8.094 kB / 431.5 MB, free: 6.027 MB / 334.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.0001602/0.3241, allocations: 153.7 kB / 431.6 MB, free: 5.867 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.431e-05/0.3241, allocations: 23.83 kB / 431.7 MB, free: 5.844 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.439e-05/0.3242, allocations: 9.406 kB / 431.7 MB, free: 5.832 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3242, allocations: 7.938 kB / 431.7 MB, free: 5.824 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3242, allocations: 0 / 431.7 MB, free: 5.824 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3242, allocations: 3.938 kB / 431.7 MB, free: 5.82 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/0.3244, allocations: 192.6 kB / 431.9 MB, free: 5.59 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.3244, allocations: 4 kB / 431.9 MB, free: 5.586 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.587e-05/0.3245, allocations: 11.98 kB / 431.9 MB, free: 5.574 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3245, allocations: 96 / 431.9 MB, free: 5.574 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.3245, allocations: 11.92 kB / 431.9 MB, free: 5.562 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.3245, allocations: 3.938 kB / 431.9 MB, free: 5.559 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3245, allocations: 0 / 431.9 MB, free: 5.559 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004524/0.325, allocations: 243 kB / 432.1 MB, free: 5.297 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.827e-05/0.325, allocations: 15.84 kB / 432.2 MB, free: 5.281 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.93e-05/0.3251, allocations: 15.98 kB / 432.2 MB, free: 5.266 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.651e-05/0.3251, allocations: 7.938 kB / 432.2 MB, free: 5.258 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.901e-05/0.3252, allocations: 19.91 kB / 432.2 MB, free: 5.238 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.3252, allocations: 4 kB / 432.2 MB, free: 5.234 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0001384/0.3253, allocations: 149.1 kB / 432.4 MB, free: 5.09 MB / 334.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3253, allocations: 0 / 432.4 MB, free: 5.09 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0004575/0.3258, allocations: 119.6 kB / 432.5 MB, free: 4.973 MB / 334.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.0008006/0.3266, allocations: 334.3 kB / 432.8 MB, free: 4.668 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0004709/0.3271, allocations: 179.8 kB / 433 MB, free: 4.492 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3271, allocations: 3.938 kB / 433 MB, free: 4.488 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.3272, allocations: 60.22 kB / 433 MB, free: 4.43 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001859/0.3274, allocations: 15.98 kB / 433.1 MB, free: 4.414 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005353/0.328, allocations: 280.8 kB / 433.3 MB, free: 4.109 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.3283, allocations: 0.7162 MB / 434 MB, free: 3.367 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 7.114e-05/0.3284, allocations: 25.41 kB / 434.1 MB, free: 3.34 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.579e-05/0.3285, allocations: 19.44 kB / 434.1 MB, free: 3.324 MB / 334.1 MB
Notification: Performance of SimCode: time 3e-07/0.3285, allocations: 0 / 434.1 MB, free: 3.324 MB / 334.1 MB
Notification: Performance of Templates: time 0.008116/0.3366, allocations: 3.549 MB / 437.6 MB, free: 15.78 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 4.904549970291555]