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.001862/0.001862, allocations: 112.4 kB / 16.51 MB, free: 6.707 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.001828/0.001829, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.382/1.382, allocations: 222.9 MB / 241.1 MB, free: 15.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001133, allocations: 47.17 kB / 299.9 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.1009, allocations: 49.44 MB / 349.4 MB, free: 4.883 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002914/0.1039, allocations: 1.404 MB / 350.8 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009096/0.1048, allocations: 372.3 kB / 351.2 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.684e-05/0.1049, allocations: 0 / 351.2 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.128e-05/0.105, allocations: 0 / 351.2 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.403e-05/0.105, allocations: 3.938 kB / 351.2 MB, free: 3.09 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.0005736/0.1056, allocations: 59.88 kB / 351.2 MB, free: 3.031 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.935e-05/0.1057, allocations: 27.84 kB / 351.2 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.137e-05/0.1058, allocations: 8 kB / 351.3 MB, free: 2.996 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.563e-05/0.1058, allocations: 0 / 351.3 MB, free: 2.996 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.629e-05/0.1058, allocations: 7.938 kB / 351.3 MB, free: 2.988 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.1058, allocations: 4 kB / 351.3 MB, free: 2.984 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001996/0.1061, allocations: 79.91 kB / 351.3 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.49e-05/0.1061, allocations: 8 kB / 351.4 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.653e-05/0.1061, allocations: 7.922 kB / 351.4 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001908/0.1063, allocations: 83.83 kB / 351.4 MB, free: 2.809 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.1063, allocations: 3.938 kB / 351.4 MB, free: 2.805 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1064, allocations: 0 / 351.4 MB, free: 2.805 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.1064, allocations: 0 / 351.4 MB, free: 2.805 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.0004201/0.1068, allocations: 351.5 kB / 351.8 MB, free: 2.414 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.1068, allocations: 19.91 kB / 351.8 MB, free: 2.395 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.695e-05/0.1069, allocations: 0.9375 kB / 351.8 MB, free: 2.395 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.107, allocations: 172.5 kB / 352 MB, free: 2.188 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.107, allocations: 384 / 352 MB, free: 2.188 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.107, allocations: 384 / 352 MB, free: 2.188 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.1071, allocations: 37.81 kB / 352 MB, free: 2.145 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.1072, allocations: 0 / 352 MB, free: 2.145 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.176e-06/0.1072, allocations: 0 / 352 MB, free: 2.145 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1072, allocations: 4 kB / 352 MB, free: 2.141 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.243e-05/0.1072, allocations: 4 kB / 352 MB, free: 2.137 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003577/0.1076, allocations: 248.8 kB / 352.3 MB, free: 1.844 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.024e-05/0.1076, allocations: 30.56 kB / 352.3 MB, free: 1.805 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.5e-05/0.1077, allocations: 12.91 kB / 352.3 MB, free: 1.789 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.945e-06/0.1077, allocations: 0 / 352.3 MB, free: 1.789 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001545/0.1078, allocations: 55.41 kB / 352.4 MB, free: 1.723 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 2.905e-06/0.1079, allocations: 0 / 352.4 MB, free: 1.723 MB / 286.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001776/0.108, allocations: 61.61 kB / 352.4 MB, free: 1.656 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.1081, allocations: 51.41 kB / 352.5 MB, free: 1.594 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.768e-05/0.1082, allocations: 101.9 kB / 352.6 MB, free: 1.484 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.1082, allocations: 25.7 kB / 352.6 MB, free: 1.453 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.184e-05/0.1082, allocations: 92.12 kB / 352.7 MB, free: 1.359 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.598e-05/0.1083, allocations: 7.891 kB / 352.7 MB, free: 1.352 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.974e-05/0.1083, allocations: 21.72 kB / 352.7 MB, free: 1.324 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.1084, allocations: 322.8 kB / 353 MB, free: 1 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.567e-05/0.1084, allocations: 8 kB / 353 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.156e-05/0.1085, allocations: 17.72 kB / 353.1 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.152e-05/0.1085, allocations: 33.64 kB / 353.1 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1086, allocations: 384 / 353.1 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001044/0.1087, allocations: 65.53 kB / 353.2 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.1087, allocations: 8.031 kB / 353.2 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1087, allocations: 3.938 kB / 353.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.1087, allocations: 0 / 353.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.884e-05/0.1088, allocations: 12 kB / 353.2 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.1088, allocations: 3.984 kB / 353.2 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.774e-05/0.1088, allocations: 0 / 353.2 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.1088, allocations: 4 kB / 353.2 MB, free: 0.8281 MB / 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,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 8.177e-05/0.1089, allocations: 109.8 kB / 353.3 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.1089, allocations: 11.98 kB / 353.3 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.701e-05/0.109, allocations: 11.84 kB / 353.3 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.109, allocations: 0 / 353.3 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.109, allocations: 0 / 353.3 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.109, allocations: 0 / 353.3 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002305/0.1092, allocations: 286.5 kB / 353.6 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1093, allocations: 0 / 353.6 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.373e-05/0.1093, allocations: 0 / 353.6 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.1093, allocations: 4 kB / 353.6 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.1093, allocations: 3.984 kB / 353.6 MB, free: 344 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.1093, allocations: 4 kB / 353.6 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1093, allocations: 0 / 353.6 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/0.1095, allocations: 159.4 kB / 353.8 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.411e-05/0.1095, allocations: 77.44 kB / 353.8 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.1095, allocations: 0 / 353.8 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.239e-05/0.1096, allocations: 0 / 353.8 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.242e-05/0.1096, allocations: 11.97 kB / 353.8 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.1096, allocations: 3.938 kB / 353.9 MB, free: 52 kB / 286.1 MB Notification: Performance of sorting global known variables: time 5.424e-05/0.1097, allocations: 87.28 kB / 353.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1097, allocations: 0 / 353.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.11, allocations: 27.98 kB / 354 MB, free: 15.94 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 (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.0004058/0.1104, allocations: 185.2 kB / 354.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.262e-05/0.1105, allocations: 16 kB / 354.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/0.1105, allocations: 4 kB / 354.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.977e-05/0.1106, allocations: 11.92 kB / 354.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002079/0.1108, allocations: 4 kB / 354.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002725/0.111, allocations: 111.3 kB / 354.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/0.1113, allocations: 0.6812 MB / 355 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.471e-05/0.1113, allocations: 4 kB / 355 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.261e-05/0.1114, allocations: 11.44 kB / 355 MB, free: 14.88 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1114, allocations: 0 / 355 MB, free: 14.88 MB / 302.1 MB Notification: Performance of Templates: time 0.003497/0.1149, allocations: 0.9406 MB / 355.9 MB, free: 13.94 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches