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.0007369/0.0007369, allocations: 77.36 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001048/0.001785, allocations: 449.9 kB / 10.44 MB, free: 248 kB / 10.45 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.0006108/0.0006108, allocations: 144.9 kB / 11.34 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008984/0.001509, allocations: 475.6 kB / 11.8 MB, free: 2.363 MB / 13.93 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.8541/0.8541, allocations: 173.4 MB / 185.9 MB, free: 8.922 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07759/0.9317, allocations: 52.5 MB / 238.4 MB, free: 4.359 MB / 234.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.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 1.042e-06/1.042e-06, allocations: 0 / 239.7 MB, free: 3.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.238e-06/1.028e-05, allocations: 3.016 kB / 239.7 MB, free: 3.066 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001522/0.001532, allocations: 1.599 MB / 241.3 MB, free: 1.457 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.002872, allocations: 1.408 MB / 242.7 MB, free: 44 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.383e-05/0.002916, allocations: 0 / 242.7 MB, free: 44 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.076e-05/0.002957, allocations: 15.81 kB / 242.8 MB, free: 28 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.568e-05/0.003023, allocations: 27.8 kB / 242.8 MB, free: 0 / 234.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.typeClassSections: time 0.0005319/0.003554, allocations: 354.5 kB / 243.1 MB, free: 15.65 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001235/0.003678, allocations: 127.6 kB / 243.3 MB, free: 15.53 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.446e-05/0.003712, allocations: 6.344 kB / 243.3 MB, free: 15.52 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.003821, allocations: 112.3 kB / 243.4 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.004136, allocations: 84.12 kB / 243.5 MB, free: 15.34 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.224e-05/0.004158, allocations: 12 kB / 243.5 MB, free: 15.33 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004661/0.004625, allocations: 463 kB / 243.9 MB, free: 14.88 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.1e-05/0.004666, allocations: 27.88 kB / 243.9 MB, free: 14.85 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.205e-05/0.004698, allocations: 27.94 kB / 244 MB, free: 14.82 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003885/0.005086, allocations: 366.8 kB / 244.3 MB, free: 14.46 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.778e-06/0.005096, allocations: 0 / 244.3 MB, free: 14.46 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.005096, allocations: 0 / 244.3 MB, free: 14.46 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.005106, allocations: 4 kB / 244.3 MB, free: 14.46 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0005538/0.00566, allocations: 471 kB / 244.8 MB, free: 13.97 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.605e-05/0.005686, allocations: 8.031 kB / 244.8 MB, free: 13.96 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.00585, allocations: 106 kB / 244.9 MB, free: 13.84 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.005958, allocations: 163.8 kB / 245.1 MB, free: 13.65 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.005974, allocations: 12.36 kB / 245.1 MB, free: 13.64 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.727e-05/0.005992, allocations: 7.938 kB / 245.1 MB, free: 13.63 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001243/0.006116, allocations: 91.03 kB / 245.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.53e-06/0.006122, allocations: 0 / 245.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.006129, allocations: 0 / 245.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.363e-05/0.006153, allocations: 15.94 kB / 245.2 MB, free: 13.51 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.737e-05/0.00619, allocations: 33.62 kB / 245.2 MB, free: 13.48 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003114/0.006502, allocations: 386.1 kB / 245.6 MB, free: 13.07 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001077/0.00661, allocations: 167.6 kB / 245.8 MB, free: 12.88 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.662e-05/0.006636, allocations: 34.56 kB / 245.8 MB, free: 12.84 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.271e-06/0.006642, allocations: 0 / 245.8 MB, free: 12.84 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001295/0.006772, allocations: 112.6 kB / 245.9 MB, free: 12.71 MB / 250.7 MB Notification: Performance of pre-optimization done (n=17): time 7.12e-07/0.006773, allocations: 7.938 kB / 245.9 MB, free: 12.7 MB / 250.7 MB Notification: Performance of matching and sorting (n=17): time 0.0001447/0.006917, allocations: 119.2 kB / 246 MB, free: 12.57 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.00697, allocations: 118.7 kB / 246.2 MB, free: 12.43 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.353e-05/0.007064, allocations: 183.4 kB / 246.3 MB, free: 12.24 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.007091, allocations: 45.69 kB / 246.4 MB, free: 12.19 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.863e-05/0.007129, allocations: 108.5 kB / 246.5 MB, free: 12.08 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.045e-05/0.00716, allocations: 43.67 kB / 246.5 MB, free: 12.04 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.046e-05/0.00721, allocations: 61.64 kB / 246.6 MB, free: 11.97 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.964e-05/0.00728, allocations: 330.7 kB / 246.9 MB, free: 11.64 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.058e-05/0.00732, allocations: 30.81 kB / 246.9 MB, free: 11.61 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.026e-05/0.007371, allocations: 71.36 kB / 247 MB, free: 11.53 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.956e-05/0.00746, allocations: 114 kB / 247.1 MB, free: 11.4 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.007462, allocations: 0 / 247.1 MB, free: 11.4 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001288/0.007591, allocations: 136.4 kB / 247.3 MB, free: 11.26 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.007602, allocations: 7.984 kB / 247.3 MB, free: 11.25 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.007608, allocations: 4 kB / 247.3 MB, free: 11.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.007619, allocations: 8.031 kB / 247.3 MB, free: 11.24 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.007734, allocations: 51.92 kB / 247.3 MB, free: 11.19 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.007738, allocations: 4 kB / 247.3 MB, free: 11.19 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.926e-05/0.007778, allocations: 19.88 kB / 247.3 MB, free: 11.17 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.718e-06/0.007787, allocations: 4 kB / 247.3 MB, free: 11.16 MB / 250.7 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,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,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 7.695e-05/0.007864, allocations: 152.5 kB / 247.5 MB, free: 11 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.285e-05/0.007877, allocations: 8 kB / 247.5 MB, free: 11 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.252e-05/0.0079, allocations: 13.45 kB / 247.5 MB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.007902, allocations: 8 kB / 247.5 MB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.007903, allocations: 0 / 247.5 MB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.007906, allocations: 0 / 247.5 MB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.00803, allocations: 101.8 kB / 247.6 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.008032, allocations: 3.938 kB / 247.6 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.271e-05/0.008055, allocations: 16.02 kB / 247.6 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.72e-05/0.008072, allocations: 27.83 kB / 247.7 MB, free: 10.81 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.008073, allocations: 0 / 247.7 MB, free: 10.81 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.008079, allocations: 0 / 247.7 MB, free: 10.81 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.008081, allocations: 4 kB / 247.7 MB, free: 10.81 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.008082, allocations: 0 / 247.7 MB, free: 10.81 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.798e-05/0.00818, allocations: 140.4 kB / 247.8 MB, free: 10.64 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.008198, allocations: 11.98 kB / 247.8 MB, free: 10.63 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.624e-05/0.008224, allocations: 4 kB / 247.8 MB, free: 10.63 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.363e-05/0.008258, allocations: 11.98 kB / 247.8 MB, free: 10.62 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.008264, allocations: 7.984 kB / 247.8 MB, free: 10.61 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.072e-05/0.008305, allocations: 50.72 kB / 247.9 MB, free: 10.56 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008305, allocations: 0 / 247.9 MB, free: 10.56 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002067/0.008512, allocations: 119.7 kB / 248 MB, free: 10.44 MB / 250.7 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.0005187/0.00903, allocations: 378.5 kB / 248.4 MB, free: 10.12 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001289/0.009159, allocations: 100.7 kB / 248.5 MB, free: 10.02 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.009163, allocations: 0 / 248.5 MB, free: 10.02 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.957e-05/0.009212, allocations: 40.75 kB / 248.5 MB, free: 9.98 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001073/0.009319, allocations: 31.92 kB / 248.6 MB, free: 9.949 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000407/0.009726, allocations: 288.9 kB / 248.8 MB, free: 9.633 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.391e-05/0.00976, allocations: 67.84 kB / 248.9 MB, free: 9.547 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.371e-05/0.009804, allocations: 25.84 kB / 248.9 MB, free: 9.52 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.677e-05/0.009871, allocations: 67.38 kB / 249 MB, free: 9.453 MB / 250.7 MB Notification: Performance of SimCode: time 6.32e-07/0.009871, allocations: 0 / 249 MB, free: 9.453 MB / 250.7 MB Notification: Performance of Templates: time 0.005133/0.015, allocations: 4.042 MB / 253 MB, free: 5.434 MB / 250.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.377012404613197]