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.001159/0.001159, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 67.52 kB / 306.9 MB, free: 1.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09902/0.1003, allocations: 50.53 MB / 357.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.003151/0.1035, allocations: 1.424 MB / 358.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009147/0.1044, allocations: 368.5 kB / 359.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.648e-05/0.1045, allocations: 3.938 kB / 359.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.391e-05/0.1046, allocations: 0 / 359.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.115e-05/0.1047, allocations: 0 / 359.2 MB, free: 12.75 MB / 302.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.0005021/0.1052, allocations: 71.86 kB / 359.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.067e-05/0.1053, allocations: 15.92 kB / 359.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.736e-05/0.1053, allocations: 8 kB / 359.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.387e-05/0.1054, allocations: 7.938 kB / 359.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.8e-05/0.1054, allocations: 11.91 kB / 359.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.119e-05/0.1054, allocations: 0 / 359.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001918/0.1056, allocations: 87.86 kB / 359.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.587e-05/0.1056, allocations: 0 / 359.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.984e-05/0.1057, allocations: 7.922 kB / 359.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001458/0.1058, allocations: 59.91 kB / 359.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1058, allocations: 0 / 359.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1058, allocations: 0 / 359.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.1058, allocations: 0 / 359.5 MB, free: 12.48 MB / 302.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.000534/0.1064, allocations: 353.7 kB / 359.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1064, allocations: 8.031 kB / 359.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.167e-05/0.1065, allocations: 0.9375 kB / 359.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.1066, allocations: 180.5 kB / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.1067, allocations: 384 / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.1067, allocations: 384 / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.85e-05/0.1068, allocations: 38.19 kB / 360 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1068, allocations: 192 / 360 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.1068, allocations: 11.88 kB / 360.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.1068, allocations: 4 kB / 360.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.559e-05/0.1069, allocations: 4 kB / 360.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000355/0.1072, allocations: 237 kB / 360.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.156e-05/0.1073, allocations: 26.58 kB / 360.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.798e-05/0.1073, allocations: 12.86 kB / 360.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.1073, allocations: 7.938 kB / 360.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001375/0.1075, allocations: 55.39 kB / 360.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.1075, allocations: 0 / 360.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001809/0.1077, allocations: 57.86 kB / 360.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.1077, allocations: 51.41 kB / 360.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.735e-05/0.1078, allocations: 105.8 kB / 360.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.1078, allocations: 25.7 kB / 360.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.814e-05/0.1079, allocations: 92.06 kB / 360.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.97e-05/0.1079, allocations: 11.91 kB / 360.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.776e-05/0.108, allocations: 25.64 kB / 360.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1081, allocations: 310.8 kB / 361.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.221e-05/0.1081, allocations: 4 kB / 361.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.263e-05/0.1082, allocations: 25.7 kB / 361.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.31e-05/0.1082, allocations: 25.72 kB / 361.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1082, allocations: 4 kB / 361.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001011/0.1083, allocations: 65.47 kB / 361.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.1083, allocations: 4 kB / 361.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.1084, allocations: 0 / 361.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.1084, allocations: 0 / 361.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.485e-05/0.1084, allocations: 8 kB / 361.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.1085, allocations: 3.984 kB / 361.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.294e-05/0.1085, allocations: 4 kB / 361.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-06/0.1085, allocations: 4.375 kB / 361.2 MB, free: 10.51 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.363e-05/0.1086, allocations: 121.7 kB / 361.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.259e-05/0.1086, allocations: 4 kB / 361.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.98e-05/0.1087, allocations: 7.906 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.1087, allocations: 0 / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.1087, allocations: 4 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1087, allocations: 0 / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002702/0.109, allocations: 286.6 kB / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.109, allocations: 0 / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.479e-05/0.109, allocations: 0 / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.109, allocations: 11.94 kB / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-06/0.109, allocations: 0 / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.109, allocations: 0 / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.109, allocations: 0 / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000128/0.1092, allocations: 163.4 kB / 361.8 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.59e-05/0.1092, allocations: 81.09 kB / 361.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.1092, allocations: 0 / 361.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.073e-05/0.1093, allocations: 0 / 361.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.682e-05/0.1093, allocations: 8 kB / 361.9 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.1093, allocations: 3.938 kB / 361.9 MB, free: 9.727 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.34e-05/0.1094, allocations: 87.27 kB / 362 MB, free: 9.641 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1094, allocations: 0 / 362 MB, free: 9.641 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002711/0.1096, allocations: 24 kB / 362 MB, free: 9.617 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.0004041/0.11, allocations: 184.8 kB / 362.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.232e-05/0.1102, allocations: 23.92 kB / 362.2 MB, free: 9.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1102, allocations: 0 / 362.2 MB, free: 9.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.824e-05/0.1102, allocations: 8 kB / 362.2 MB, free: 9.422 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.1104, allocations: 7.625 kB / 362.2 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002952/0.1107, allocations: 137.1 kB / 362.3 MB, free: 9.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/0.111, allocations: 0.677 MB / 363 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.794e-05/0.111, allocations: 15.38 kB / 363 MB, free: 8.531 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.111, allocations: 0 / 363 MB, free: 8.531 MB / 302.1 MB Notification: Performance of Templates: time 0.002811/0.1138, allocations: 1.144 MB / 364.2 MB, free: 7.387 MB / 302.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