Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.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.001446/0.001446, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001307/0.001307, allocations: 145.1 kB / 24.54 MB, free: 32 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.005/1.005, allocations: 173.3 MB / 201.1 MB, free: 9.324 MB / 186.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.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5101,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise") translateModel(Modelica.Blocks.Examples.Noise.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5101,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.917e-05/3.053e-05, allocations: 6.25 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.001973/0.002004, allocations: 1.504 MB / 269.5 MB, free: 4.906 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009851/0.002989, allocations: 0.5962 MB / 270.1 MB, free: 4.309 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.742e-05/0.003036, allocations: 0 / 270.1 MB, free: 4.309 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.003146, allocations: 11.86 kB / 270.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.631e-05/0.003212, allocations: 11.88 kB / 270.1 MB, free: 4.285 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.0005572/0.00377, allocations: 167.3 kB / 270.3 MB, free: 4.121 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000128/0.003898, allocations: 111.7 kB / 270.4 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.442e-05/0.003942, allocations: 9.297 kB / 270.4 MB, free: 4 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.117e-05/0.004013, allocations: 63.81 kB / 270.5 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004587/0.004472, allocations: 81.45 kB / 270.5 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.004499, allocations: 8 kB / 270.5 MB, free: 3.867 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002218/0.004721, allocations: 143.7 kB / 270.7 MB, free: 3.727 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.965e-05/0.00477, allocations: 35.83 kB / 270.7 MB, free: 3.691 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.568e-05/0.004816, allocations: 35.91 kB / 270.8 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002845/0.0051, allocations: 179.4 kB / 270.9 MB, free: 3.48 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.005104, allocations: 4 kB / 270.9 MB, free: 3.477 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.103e-06/0.005105, allocations: 3.938 kB / 270.9 MB, free: 3.473 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.005109, allocations: 0 / 270.9 MB, free: 3.473 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004983/0.005607, allocations: 475.7 kB / 271.4 MB, free: 2.973 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.005645, allocations: 16.92 kB / 271.4 MB, free: 2.957 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002292/0.005874, allocations: 44.75 kB / 271.5 MB, free: 2.914 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.006001, allocations: 161.1 kB / 271.6 MB, free: 2.727 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.006025, allocations: 4.375 kB / 271.6 MB, free: 2.723 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.006048, allocations: 4.375 kB / 271.6 MB, free: 2.719 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.006216, allocations: 96.89 kB / 271.7 MB, free: 2.609 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.006226, allocations: 0 / 271.7 MB, free: 2.609 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.006238, allocations: 0 / 271.7 MB, free: 2.609 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.006245, allocations: 0 / 271.7 MB, free: 2.609 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.812e-05/0.006293, allocations: 19.97 kB / 271.7 MB, free: 2.59 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004499/0.006743, allocations: 359.2 kB / 272.1 MB, free: 2.199 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001237/0.006867, allocations: 86.17 kB / 272.2 MB, free: 2.09 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.427e-05/0.006901, allocations: 27.36 kB / 272.2 MB, free: 2.055 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.704e-06/0.006909, allocations: 0 / 272.2 MB, free: 2.055 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001487/0.007058, allocations: 127.2 kB / 272.3 MB, free: 1.91 MB / 250.7 MB Notification: Performance of pre-optimization done (n=16): time 1.262e-06/0.007059, allocations: 0 / 272.3 MB, free: 1.91 MB / 250.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002568/0.007316, allocations: 153.6 kB / 272.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.007366, allocations: 93.11 kB / 272.6 MB, free: 1.645 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.007499, allocations: 221.9 kB / 272.8 MB, free: 1.41 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.007527, allocations: 45.7 kB / 272.8 MB, free: 1.359 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.74e-05/0.007594, allocations: 155.3 kB / 273 MB, free: 1.203 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.263e-05/0.007627, allocations: 39.73 kB / 273 MB, free: 1.164 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.86e-05/0.007695, allocations: 67.52 kB / 273.1 MB, free: 1.086 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.007822, allocations: 0.5079 MB / 273.6 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.701e-05/0.007889, allocations: 36.42 kB / 273.6 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.589e-05/0.007975, allocations: 84 kB / 273.7 MB, free: 444 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/0.008104, allocations: 115.5 kB / 273.8 MB, free: 312 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.008108, allocations: 4 kB / 273.8 MB, free: 308 kB / 250.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0002066/0.008315, allocations: 181.5 kB / 274 MB, free: 120 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.008328, allocations: 7.938 kB / 274 MB, free: 112 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.008336, allocations: 0 / 274 MB, free: 112 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.008353, allocations: 4 kB / 274 MB, free: 108 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.008476, allocations: 39.97 kB / 274.1 MB, free: 68 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.034e-06/0.008483, allocations: 4 kB / 274.1 MB, free: 64 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.772e-05/0.008521, allocations: 19.83 kB / 274.1 MB, free: 44 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.008533, allocations: 8.062 kB / 274.1 MB, free: 36 kB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,globalSeed.seed,uniformNoise2.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise1.localSeed,globalSeed.id_impure,uniformNoise1.r_raw,$PRE.uniformNoise1.r_raw,uniformNoise1.r,$PRE.uniformNoise1.r,uniformNoise1.state[4],$PRE.uniformNoise1.state[4],uniformNoise1.state[3],$PRE.uniformNoise1.state[3],uniformNoise1.state[2],$PRE.uniformNoise1.state[2],uniformNoise1.state[1],$PRE.uniformNoise1.state[1],uniformNoise2.r_raw,$PRE.uniformNoise2.r_raw,uniformNoise2.r,$PRE.uniformNoise2.r,uniformNoise2.state[4],$PRE.uniformNoise2.state[4],uniformNoise2.state[3],$PRE.uniformNoise2.state[3],uniformNoise2.state[2],$PRE.uniformNoise2.state[2],uniformNoise2.state[1],$PRE.uniformNoise2.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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.0001135/0.008647, allocations: 192.4 kB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.978e-05/0.008667, allocations: 15.91 kB / 274.3 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.634e-05/0.008693, allocations: 9.469 kB / 274.3 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.008698, allocations: 4 kB / 274.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.008702, allocations: 0 / 274.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.008708, allocations: 8.062 kB / 274.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001125/0.008821, allocations: 160.4 kB / 274.5 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.008822, allocations: 0 / 274.5 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.462e-05/0.008846, allocations: 15.92 kB / 274.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.008849, allocations: 0 / 274.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.008859, allocations: 4 kB / 274.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.00886, allocations: 0 / 274.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.008861, allocations: 0 / 274.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001822/0.009043, allocations: 180.4 kB / 274.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.903e-05/0.009062, allocations: 15.84 kB / 274.7 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.009086, allocations: 12 kB / 274.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.483e-05/0.00911, allocations: 3.984 kB / 274.7 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.637e-05/0.009157, allocations: 7.984 kB / 274.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.009165, allocations: 12 kB / 274.7 MB, free: 15.33 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.379e-05/0.009238, allocations: 168.1 kB / 274.9 MB, free: 15.17 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.009239, allocations: 0 / 274.9 MB, free: 15.17 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002/0.009439, allocations: 47.92 kB / 274.9 MB, free: 15.12 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw,$whenCondition1,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw) * Number of discrete states: 8 (uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * 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.0004223/0.009861, allocations: 220 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001955/0.01006, allocations: 103.6 kB / 275.2 MB, free: 14.83 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01006, allocations: 3.938 kB / 275.2 MB, free: 14.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.657e-05/0.0101, allocations: 35.61 kB / 275.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001772/0.01028, allocations: 23.86 kB / 275.3 MB, free: 14.76 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00036/0.01064, allocations: 238.1 kB / 275.5 MB, free: 14.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.025e-05/0.01068, allocations: 71.33 kB / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.29e-05/0.01072, allocations: 16.97 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.01076, allocations: 12.5 kB / 275.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.01076, allocations: 0 / 275.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of Templates: time 0.004304/0.01506, allocations: 2.23 MB / 277.9 MB, free: 12.16 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0268683680333197]