Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator") translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001104, allocations: 94.28 kB / 16.3 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 188.5 kB / 17.2 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 223.2 MB / 241.1 MB, free: 14.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002769/0.0002769, allocations: 11.94 kB / 300.7 MB, free: 6.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1103, allocations: 50.42 MB / 351.1 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002127/0.1125, allocations: 1.062 MB / 352.2 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007175/0.1132, allocations: 339.8 kB / 352.5 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.698e-05/0.1133, allocations: 0 / 352.5 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.142e-05/0.1133, allocations: 3.938 kB / 352.5 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.187e-05/0.1134, allocations: 0 / 352.5 MB, free: 2.387 MB / 286.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.0004587/0.1139, allocations: 71.72 kB / 352.6 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.307e-05/0.1139, allocations: 12 kB / 352.6 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.967e-05/0.114, allocations: 4 kB / 352.6 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.802e-05/0.114, allocations: 7.922 kB / 352.6 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.169e-05/0.1141, allocations: 11.98 kB / 352.6 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.1141, allocations: 0 / 352.6 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.1143, allocations: 67.81 kB / 352.7 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.564e-05/0.1143, allocations: 0 / 352.7 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.092e-05/0.1143, allocations: 25.7 kB / 352.7 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.1145, allocations: 63.89 kB / 352.8 MB, free: 2.121 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1145, allocations: 0 / 352.8 MB, free: 2.121 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.1145, allocations: 4 kB / 352.8 MB, free: 2.117 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.1145, allocations: 0 / 352.8 MB, free: 2.117 MB / 286.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.0004348/0.115, allocations: 339.3 kB / 353.1 MB, free: 1.738 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.115, allocations: 8.031 kB / 353.1 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.921e-05/0.1151, allocations: 0 / 353.1 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.1152, allocations: 179.2 kB / 353.3 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.1153, allocations: 0 / 353.3 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.1153, allocations: 0 / 353.3 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.696e-05/0.1154, allocations: 33.69 kB / 353.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.1154, allocations: 4 kB / 353.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.1154, allocations: 4 kB / 353.4 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.1155, allocations: 3.953 kB / 353.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.283e-05/0.1155, allocations: 4 kB / 353.4 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000374/0.1159, allocations: 237 kB / 353.6 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.699e-05/0.1159, allocations: 34.5 kB / 353.6 MB, free: 1.137 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.1159, allocations: 4 kB / 353.6 MB, free: 1.133 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001177/0.1161, allocations: 55.38 kB / 353.7 MB, free: 1.066 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.1161, allocations: 0 / 353.7 MB, free: 1.066 MB / 286.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001603/0.1162, allocations: 57.58 kB / 353.7 MB, free: 1.004 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/0.1163, allocations: 51.41 kB / 353.8 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.66e-05/0.1164, allocations: 105.8 kB / 353.9 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.1164, allocations: 25.7 kB / 353.9 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.26e-05/0.1165, allocations: 84.14 kB / 354 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.1165, allocations: 11.91 kB / 354 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-06/0.1165, allocations: 0 / 354 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.1167, allocations: 318.8 kB / 354.3 MB, free: 388 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.001e-05/0.1167, allocations: 4 kB / 354.3 MB, free: 384 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.843e-05/0.1167, allocations: 21.7 kB / 354.4 MB, free: 356 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.829e-05/0.1168, allocations: 12 kB / 354.4 MB, free: 344 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1168, allocations: 0 / 354.4 MB, free: 344 kB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.226e-05/0.1169, allocations: 57.62 kB / 354.4 MB, free: 280 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.1169, allocations: 7.938 kB / 354.4 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.1169, allocations: 0 / 354.4 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.1169, allocations: 7.953 kB / 354.4 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.268e-05/0.117, allocations: 8 kB / 354.4 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.117, allocations: 0 / 354.4 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.149e-05/0.117, allocations: 11.84 kB / 354.5 MB, free: 244 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.117, allocations: 0 / 354.5 MB, free: 244 kB / 286.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,impureRandom.y,globalSeed.seed,globalSeed.id_impure) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.424e-05/0.1171, allocations: 113.8 kB / 354.6 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.885e-06/0.1171, allocations: 7.969 kB / 354.6 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.342e-05/0.1172, allocations: 7.906 kB / 354.6 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1172, allocations: 8.188 kB / 354.6 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1172, allocations: 384 / 354.6 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1172, allocations: 3.984 kB / 354.6 MB, free: 84 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000243/0.1174, allocations: 278.6 kB / 354.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.1175, allocations: 4 kB / 354.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.44e-05/0.1175, allocations: 7.984 kB / 354.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1175, allocations: 0 / 354.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.1175, allocations: 7.953 kB / 354.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1175, allocations: 0 / 354.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.1175, allocations: 0 / 354.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001133/0.1176, allocations: 147.5 kB / 355 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.311e-05/0.1177, allocations: 81.02 kB / 355.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.1177, allocations: 4 kB / 355.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.438e-05/0.1178, allocations: 3.953 kB / 355.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.565e-05/0.1178, allocations: 3.984 kB / 355.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.1178, allocations: 4 kB / 355.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.287e-05/0.1179, allocations: 87.28 kB / 355.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1179, allocations: 0 / 355.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002754/0.1182, allocations: 27.98 kB / 355.2 MB, free: 15.35 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004708/0.1186, allocations: 183.5 kB / 355.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001053/0.1188, allocations: 23.94 kB / 355.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1188, allocations: 0 / 355.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.755e-05/0.1188, allocations: 7.984 kB / 355.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.1189, allocations: 7.938 kB / 355.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002865/0.1192, allocations: 120.7 kB / 355.6 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.1196, allocations: 0.677 MB / 356.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.93e-05/0.1196, allocations: 11.94 kB / 356.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.801e-05/0.1197, allocations: 11.44 kB / 356.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1197, allocations: 0 / 356.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of Templates: time 0.003396/0.1231, allocations: 0.9134 MB / 357.2 MB, free: 13.36 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches