Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator") translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001663/0.001663, allocations: 109.8 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002255/0.002255, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.564/2.564, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002057/0.002057, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4401/0.4422, allocations: 50.54 MB / 409.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.004003/0.4462, allocations: 1.341 MB / 411.3 MB, free: 232 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.4476, allocations: 349.4 kB / 411.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.823e-05/0.4477, allocations: 0 / 411.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.361e-05/0.4478, allocations: 3.938 kB / 411.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.342e-05/0.4479, allocations: 3.938 kB / 411.6 MB, free: 15.88 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.0007632/0.4487, allocations: 87.72 kB / 411.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.815e-05/0.4488, allocations: 15.98 kB / 411.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.204e-05/0.4489, allocations: 3.938 kB / 411.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.853e-05/0.4489, allocations: 7.938 kB / 411.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.845e-05/0.449, allocations: 15.91 kB / 411.7 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.449, allocations: 8 kB / 411.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002856/0.4493, allocations: 83.86 kB / 411.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.199e-05/0.4493, allocations: 7.984 kB / 411.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.597e-05/0.4494, allocations: 3.938 kB / 411.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002752/0.4497, allocations: 87.81 kB / 411.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.4497, allocations: 4 kB / 411.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4497, allocations: 0 / 411.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.4497, allocations: 0 / 411.9 MB, free: 15.56 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005447/0.4503, allocations: 343.5 kB / 412.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.4504, allocations: 12.03 kB / 412.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.787e-05/0.4504, allocations: 4.938 kB / 412.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001635/0.4506, allocations: 168 kB / 412.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.4507, allocations: 384 / 412.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.4507, allocations: 4.375 kB / 412.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001339/0.4508, allocations: 42.19 kB / 412.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.4509, allocations: 192 / 412.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.4509, allocations: 3.938 kB / 412.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.4509, allocations: 0 / 412.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.662e-05/0.451, allocations: 4 kB / 412.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004655/0.4514, allocations: 245 kB / 412.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.441e-05/0.4516, allocations: 26.52 kB / 412.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.373e-05/0.4516, allocations: 24.84 kB / 412.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.977e-06/0.4517, allocations: 0 / 412.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000225/0.4519, allocations: 51.41 kB / 412.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 2.314e-06/0.4519, allocations: 0 / 412.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002759/0.4522, allocations: 61.53 kB / 412.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.184e-05/0.4523, allocations: 55.41 kB / 413 MB, free: 14.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.4524, allocations: 105.8 kB / 413.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.4525, allocations: 25.7 kB / 413.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.918e-05/0.4526, allocations: 84.14 kB / 413.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.368e-05/0.4526, allocations: 3.906 kB / 413.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-05/0.4527, allocations: 21.7 kB / 413.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.4529, allocations: 318.8 kB / 413.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.252e-05/0.4529, allocations: 8 kB / 413.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.419e-05/0.453, allocations: 21.7 kB / 413.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.768e-05/0.4531, allocations: 29.66 kB / 413.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4531, allocations: 0 / 413.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001771/0.4533, allocations: 57.81 kB / 413.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.4534, allocations: 8.031 kB / 413.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.4534, allocations: 3.938 kB / 413.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.548e-05/0.4534, allocations: 8.031 kB / 413.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.4535, allocations: 11.92 kB / 413.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.4535, allocations: 0 / 413.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.051e-05/0.4536, allocations: 11.84 kB / 413.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.4536, allocations: 0 / 413.7 MB, free: 13.59 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,globalSeed.id_impure,globalSeed.seed,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * 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.0001323/0.4538, allocations: 121.7 kB / 413.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.4538, allocations: 0 / 413.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.995e-05/0.4539, allocations: 7.906 kB / 413.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.4539, allocations: 4 kB / 413.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.4539, allocations: 0 / 413.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.4539, allocations: 3.984 kB / 413.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004016/0.4543, allocations: 282.5 kB / 414.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.4543, allocations: 0 / 414.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.515e-05/0.4544, allocations: 4 kB / 414.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.4544, allocations: 0 / 414.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.4544, allocations: 0 / 414.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4544, allocations: 384 / 414.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.4544, allocations: 4 kB / 414.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002065/0.4546, allocations: 151.5 kB / 414.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.304e-05/0.4547, allocations: 81.02 kB / 414.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.698e-05/0.4548, allocations: 8 kB / 414.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.543e-05/0.4549, allocations: 0 / 414.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.544e-05/0.4549, allocations: 0 / 414.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.4549, allocations: 0 / 414.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.615e-05/0.455, allocations: 95.2 kB / 414.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.455, allocations: 4 kB / 414.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000544/0.4556, allocations: 24 kB / 414.4 MB, free: 12.7 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006314/0.4562, allocations: 183.9 kB / 414.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001585/0.4564, allocations: 23.98 kB / 414.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.4564, allocations: 3.938 kB / 414.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.59e-05/0.4565, allocations: 11.94 kB / 414.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.4569, allocations: 4 kB / 414.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004128/0.4573, allocations: 128.7 kB / 414.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.4577, allocations: 0.6768 MB / 415.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.661e-05/0.4578, allocations: 7.5 kB / 415.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4578, allocations: 4 kB / 415.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of Templates: time 0.004367/0.4622, allocations: 1.167 MB / 416.6 MB, free: 10.45 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches