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.001443/0.001443, allocations: 110.9 kB / 17.68 MB, free: 5.332 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.001614/0.001614, allocations: 192 kB / 18.62 MB, free: 4.41 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.43/1.43, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 54.73 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1186, allocations: 49.44 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002605/0.1212, allocations: 1.339 MB / 352.8 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000724/0.122, allocations: 344.3 kB / 353.2 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.321e-05/0.122, allocations: 0 / 353.2 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.07e-05/0.122, allocations: 0 / 353.2 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.935e-05/0.1221, allocations: 7.938 kB / 353.2 MB, free: 1.977 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.0004879/0.1226, allocations: 87.72 kB / 353.3 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.651e-05/0.1227, allocations: 23.92 kB / 353.3 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.278e-05/0.1228, allocations: 0 / 353.3 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.789e-05/0.1228, allocations: 7.938 kB / 353.3 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.961e-05/0.1228, allocations: 11.98 kB / 353.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.1228, allocations: 3.938 kB / 353.3 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001758/0.123, allocations: 83.91 kB / 353.4 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.981e-05/0.1231, allocations: 0 / 353.4 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.314e-05/0.1231, allocations: 19.86 kB / 353.4 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001922/0.1233, allocations: 79.83 kB / 353.5 MB, free: 1.664 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.1233, allocations: 0 / 353.5 MB, free: 1.664 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.1233, allocations: 7.938 kB / 353.5 MB, free: 1.656 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1233, allocations: 0 / 353.5 MB, free: 1.656 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.0004854/0.1238, allocations: 347.5 kB / 353.8 MB, free: 1.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.1239, allocations: 8.031 kB / 353.8 MB, free: 1.262 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.987e-05/0.1239, allocations: 4.938 kB / 353.8 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001454/0.1241, allocations: 168.2 kB / 354 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.786e-05/0.1241, allocations: 384 / 354 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.1241, allocations: 4.375 kB / 354 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.1242, allocations: 37.81 kB / 354.1 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1242, allocations: 4 kB / 354.1 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/0.1243, allocations: 3.938 kB / 354.1 MB, free: 1 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.1243, allocations: 0 / 354.1 MB, free: 1 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.512e-05/0.1243, allocations: 11.94 kB / 354.1 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003531/0.1247, allocations: 240.9 kB / 354.3 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.922e-05/0.1247, allocations: 22.58 kB / 354.3 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.875e-05/0.1248, allocations: 16.91 kB / 354.3 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.906e-06/0.1248, allocations: 0 / 354.3 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001135/0.1249, allocations: 55.34 kB / 354.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1249, allocations: 0 / 354.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001775/0.1251, allocations: 57.88 kB / 354.5 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.1251, allocations: 51.41 kB / 354.5 MB, free: 472 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.738e-05/0.1252, allocations: 105.8 kB / 354.6 MB, free: 356 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1253, allocations: 29.7 kB / 354.6 MB, free: 320 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.056e-05/0.1253, allocations: 84.14 kB / 354.7 MB, free: 232 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.1253, allocations: 7.891 kB / 354.7 MB, free: 224 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.949e-05/0.1254, allocations: 25.7 kB / 354.8 MB, free: 192 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1255, allocations: 314.8 kB / 355.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.455e-05/0.1255, allocations: 11.94 kB / 355.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.932e-05/0.1256, allocations: 17.7 kB / 355.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.105e-05/0.1256, allocations: 37.7 kB / 355.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1256, allocations: 0 / 355.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.135e-05/0.1257, allocations: 61.53 kB / 355.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.1257, allocations: 4 kB / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1258, allocations: 4 kB / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.1258, allocations: 0 / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.9e-05/0.1258, allocations: 7.984 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.1258, allocations: 0 / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.794e-05/0.1259, allocations: 4.375 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.1259, allocations: 7.969 kB / 355.2 MB, free: 15.7 MB / 302.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.839e-05/0.126, allocations: 121.7 kB / 355.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.758e-06/0.126, allocations: 4 kB / 355.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.753e-05/0.126, allocations: 3.906 kB / 355.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.126, allocations: 7.938 kB / 355.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.126, allocations: 7.984 kB / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1261, allocations: 0 / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/0.1263, allocations: 278.6 kB / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1263, allocations: 4 kB / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.125e-05/0.1263, allocations: 4 kB / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.1263, allocations: 0 / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.1263, allocations: 0 / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1263, allocations: 0 / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1263, allocations: 0 / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001178/0.1265, allocations: 159.3 kB / 355.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.246e-05/0.1265, allocations: 81.11 kB / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.1265, allocations: 0 / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.694e-05/0.1266, allocations: 4 kB / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.638e-05/0.1266, allocations: 0 / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.1266, allocations: 7.938 kB / 355.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.456e-05/0.1267, allocations: 87.27 kB / 356 MB, free: 14.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1267, allocations: 0 / 356 MB, free: 14.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002512/0.127, allocations: 24 kB / 356 MB, free: 14.81 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.0003839/0.1274, allocations: 184.1 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.922e-05/0.1275, allocations: 23.92 kB / 356.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1275, allocations: 0 / 356.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.715e-05/0.1275, allocations: 8 kB / 356.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002067/0.1277, allocations: 7.938 kB / 356.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002558/0.128, allocations: 113.5 kB / 356.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.1282, allocations: 0.6768 MB / 357 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.973e-05/0.1283, allocations: 7.984 kB / 357 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.821e-05/0.1283, allocations: 11.44 kB / 357 MB, free: 13.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1283, allocations: 0 / 357 MB, free: 13.75 MB / 302.1 MB Notification: Performance of Templates: time 0.003242/0.1316, allocations: 0.949 MB / 358 MB, free: 12.8 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 -s cvode -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/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_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches