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.001919/0.001919, allocations: 99.86 kB / 20.96 MB, free: 3.461 MB / 18.57 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.002023/0.002023, allocations: 145.1 kB / 24.26 MB, free: 172 kB / 18.57 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.617/1.617, allocations: 173.4 MB / 200.8 MB, free: 9.312 MB / 186.7 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 2.184e-06/2.184e-06, allocations: 0 / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.91e-05/4.129e-05, allocations: 2.312 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.004466/0.004507, allocations: 1.536 MB / 268.9 MB, free: 5.18 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003751/0.008258, allocations: 1.391 MB / 270.2 MB, free: 3.781 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.204e-05/0.00835, allocations: 4 kB / 270.3 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001291/0.008479, allocations: 7.875 kB / 270.3 MB, free: 3.77 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001444/0.008623, allocations: 23.73 kB / 270.3 MB, free: 3.746 MB / 250.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.001588/0.01021, allocations: 406.5 kB / 270.7 MB, free: 3.348 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002775/0.01049, allocations: 135.5 kB / 270.8 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.8e-05/0.01056, allocations: 5.688 kB / 270.8 MB, free: 3.203 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/0.01072, allocations: 75.8 kB / 270.9 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000895/0.01161, allocations: 80.19 kB / 271 MB, free: 3.062 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.74e-05/0.01166, allocations: 12 kB / 271 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001149/0.01281, allocations: 438.9 kB / 271.4 MB, free: 2.621 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.927e-05/0.0129, allocations: 39.83 kB / 271.5 MB, free: 2.582 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.825e-05/0.01298, allocations: 43.84 kB / 271.5 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.01401, allocations: 454.7 kB / 271.9 MB, free: 2.094 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.01401, allocations: 0 / 271.9 MB, free: 2.094 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.01401, allocations: 0 / 271.9 MB, free: 2.094 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.01402, allocations: 0 / 271.9 MB, free: 2.094 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.001186/0.0152, allocations: 0.5378 MB / 272.5 MB, free: 1.52 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.01525, allocations: 8.922 kB / 272.5 MB, free: 1.512 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000385/0.01564, allocations: 40.78 kB / 272.5 MB, free: 1.473 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.01592, allocations: 154 kB / 272.7 MB, free: 1.293 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.01595, allocations: 8.375 kB / 272.7 MB, free: 1.285 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.323e-05/0.01598, allocations: 15.94 kB / 272.7 MB, free: 1.27 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003478/0.01633, allocations: 108.6 kB / 272.8 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.01634, allocations: 0 / 272.8 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.01635, allocations: 0 / 272.8 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.01636, allocations: 4 kB / 272.8 MB, free: 1.141 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002515/0.01661, allocations: 39.97 kB / 272.8 MB, free: 1.102 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.01781, allocations: 0.63 MB / 273.5 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004694/0.01828, allocations: 149.2 kB / 273.6 MB, free: 248 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.01845, allocations: 51.11 kB / 273.7 MB, free: 184 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.01847, allocations: 4 kB / 273.7 MB, free: 180 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003768/0.01885, allocations: 148.1 kB / 273.8 MB, free: 4 kB / 250.7 MB Notification: Performance of pre-optimization done (n=17): time 4.489e-06/0.01885, allocations: 3.984 kB / 273.8 MB, free: 0 / 250.7 MB Notification: Performance of matching and sorting (n=17): time 0.0008137/0.01967, allocations: 197.5 kB / 274 MB, free: 15.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.01981, allocations: 122.9 kB / 274.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004041/0.02021, allocations: 274.6 kB / 274.4 MB, free: 15.37 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.39e-05/0.02029, allocations: 45.7 kB / 274.5 MB, free: 15.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.02045, allocations: 155.4 kB / 274.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.475e-05/0.02054, allocations: 51.67 kB / 274.7 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/0.02071, allocations: 75.34 kB / 274.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000392/0.0211, allocations: 0.5196 MB / 275.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/0.02132, allocations: 47.97 kB / 275.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002935/0.02162, allocations: 110.6 kB / 275.4 MB, free: 14.33 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004707/0.02209, allocations: 163.1 kB / 275.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.02209, allocations: 0 / 275.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006943/0.02279, allocations: 229.3 kB / 275.8 MB, free: 13.92 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.02281, allocations: 8 kB / 275.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.02282, allocations: 4 kB / 275.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.02284, allocations: 3.938 kB / 275.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/0.02314, allocations: 51.91 kB / 275.9 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.02315, allocations: 8.094 kB / 275.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.02328, allocations: 19.83 kB / 275.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.225e-05/0.02331, allocations: 11.98 kB / 275.9 MB, free: 13.81 MB / 266.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,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.0002506/0.02356, allocations: 188.5 kB / 276.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.263e-05/0.02362, allocations: 23.86 kB / 276.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.166e-05/0.02368, allocations: 13.47 kB / 276.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.02368, allocations: 3.984 kB / 276.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.02369, allocations: 4 kB / 276.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.0237, allocations: 4 kB / 276.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003079/0.024, allocations: 164.5 kB / 276.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.02401, allocations: 4 kB / 276.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.869e-05/0.02408, allocations: 4 kB / 276.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.02408, allocations: 4 kB / 276.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.0241, allocations: 4 kB / 276.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.02411, allocations: 3.984 kB / 276.3 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.02411, allocations: 4 kB / 276.3 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005789/0.02469, allocations: 221.6 kB / 276.5 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.381e-05/0.02475, allocations: 23.84 kB / 276.5 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.983e-05/0.0248, allocations: 12 kB / 276.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.83e-05/0.02488, allocations: 7.984 kB / 276.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.02499, allocations: 15.98 kB / 276.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.02501, allocations: 0 / 276.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002568/0.02526, allocations: 193 kB / 276.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.02526, allocations: 4 kB / 276.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007663/0.02603, allocations: 127.6 kB / 276.9 MB, free: 12.73 MB / 266.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.001378/0.02741, allocations: 356.2 kB / 277.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005588/0.02797, allocations: 143.6 kB / 277.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.02797, allocations: 0 / 277.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001939/0.02816, allocations: 59.59 kB / 277.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/0.02848, allocations: 15.98 kB / 277.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007788/0.02926, allocations: 288 kB / 277.7 MB, free: 11.87 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001607/0.02942, allocations: 107 kB / 277.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.866e-05/0.02951, allocations: 21.61 kB / 277.9 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.438e-05/0.02957, allocations: 16.5 kB / 277.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.02957, allocations: 0 / 277.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of Templates: time 0.01229/0.04186, allocations: 3.662 MB / 281.5 MB, free: 8.07 MB / 266.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 -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","/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.840609528007917]