Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001529/0.001529, allocations: 196.7 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 226.6 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007175/0.0007177, allocations: 97.94 kB / 296.8 MB, free: 6.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002413/0.0002413, allocations: 8 kB / 356.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2472, allocations: 51.3 MB / 408 MB, free: 27.76 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001227/0.2485, allocations: 1.082 MB / 409.1 MB, free: 26.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005953/0.2491, allocations: 331.2 kB / 409.4 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.879e-05/0.2491, allocations: 3.938 kB / 409.5 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.885e-05/0.2492, allocations: 1.344 kB / 409.5 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.079e-05/0.2492, allocations: 7.922 kB / 409.5 MB, free: 26.34 MB / 298.7 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.000484/0.2497, allocations: 71.8 kB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.402e-05/0.2498, allocations: 16.47 kB / 409.5 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.828e-05/0.2498, allocations: 3.984 kB / 409.6 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.74e-05/0.2499, allocations: 6 kB / 409.6 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.761e-05/0.2499, allocations: 7.922 kB / 409.6 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.418e-05/0.2499, allocations: 4 kB / 409.6 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.2501, allocations: 79.91 kB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.357e-05/0.2501, allocations: 3.938 kB / 409.7 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.973e-05/0.2502, allocations: 35.3 kB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001203/0.2503, allocations: 55.84 kB / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.2503, allocations: 0 / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2503, allocations: 0 / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.2504, allocations: 5.188 kB / 409.7 MB, free: 26.05 MB / 298.7 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.000346/0.2507, allocations: 339.5 kB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.2508, allocations: 8.656 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.2508, allocations: 8.875 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.972e-05/0.2509, allocations: 161.4 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.2509, allocations: 384 / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.2509, allocations: 5.156 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.167e-05/0.251, allocations: 38.25 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.251, allocations: 3.375 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.2511, allocations: 7.875 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.2511, allocations: 0 / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.109e-05/0.2511, allocations: 4 kB / 410.3 MB, free: 25.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003251/0.2514, allocations: 249.9 kB / 410.6 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.391e-05/0.2515, allocations: 20.45 kB / 410.6 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.223e-05/0.2515, allocations: 20.84 kB / 410.6 MB, free: 25.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-06/0.2515, allocations: 0 / 410.6 MB, free: 25.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001176/0.2517, allocations: 59.31 kB / 410.7 MB, free: 24.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.2517, allocations: 0 / 410.7 MB, free: 24.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001653/0.2518, allocations: 57.62 kB / 410.7 MB, free: 24.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.2519, allocations: 51.41 kB / 410.8 MB, free: 24.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.789e-05/0.2519, allocations: 105.8 kB / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.265e-06/0.252, allocations: 25.7 kB / 410.9 MB, free: 24.72 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.621e-05/0.252, allocations: 84.14 kB / 411 MB, free: 24.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.409e-05/0.252, allocations: 7.906 kB / 411 MB, free: 24.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-06/0.252, allocations: 0 / 411 MB, free: 24.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.988e-05/0.2521, allocations: 322.8 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.828e-05/0.2521, allocations: 7.938 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.178e-05/0.2521, allocations: 21.7 kB / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.603e-05/0.2522, allocations: 29.66 kB / 411.3 MB, free: 24.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.2522, allocations: 0 / 411.3 MB, free: 24.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.057e-05/0.2522, allocations: 61.81 kB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.2523, allocations: 4 kB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2523, allocations: 3.938 kB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.2523, allocations: 4.031 kB / 411.4 MB, free: 24.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.819e-05/0.2524, allocations: 8 kB / 411.4 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.2524, allocations: 0 / 411.4 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.007e-05/0.2524, allocations: 12.2 kB / 411.4 MB, free: 24.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.2524, allocations: 7.938 kB / 411.4 MB, free: 24.12 MB / 298.7 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 5.5e-05/0.2525, allocations: 113.8 kB / 411.6 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.735e-06/0.2525, allocations: 8.031 kB / 411.6 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.062e-05/0.2525, allocations: 3.906 kB / 411.6 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.2525, allocations: 0 / 411.6 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.2525, allocations: 4 kB / 411.6 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2525, allocations: 0 / 411.6 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.2527, allocations: 294.5 kB / 411.9 MB, free: 23.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2527, allocations: 0 / 411.9 MB, free: 23.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.083e-05/0.2527, allocations: 0 / 411.9 MB, free: 23.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.2527, allocations: 4 kB / 411.9 MB, free: 23.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.2527, allocations: 4 kB / 411.9 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.2527, allocations: 0 / 411.9 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2528, allocations: 0 / 411.9 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.833e-05/0.2528, allocations: 147.5 kB / 412 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.792e-05/0.2529, allocations: 81.02 kB / 412.1 MB, free: 23.37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.2529, allocations: 3.984 kB / 412.1 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.645e-05/0.2529, allocations: 0 / 412.1 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.029e-05/0.253, allocations: 7.938 kB / 412.1 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.253, allocations: 4 kB / 412.1 MB, free: 23.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.451e-05/0.253, allocations: 83.28 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.253, allocations: 0 / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002936/0.2533, allocations: 27.98 kB / 412.2 MB, free: 23.24 MB / 298.7 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.0003476/0.2537, allocations: 189.8 kB / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.618e-05/0.2538, allocations: 19.98 kB / 412.4 MB, free: 23.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2538, allocations: 0 / 412.4 MB, free: 23.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.512e-05/0.2538, allocations: 11.94 kB / 412.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001829/0.254, allocations: 3.938 kB / 412.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002385/0.2542, allocations: 142.5 kB / 412.6 MB, free: 22.86 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001033/0.2543, allocations: 0.6809 MB / 413.3 MB, free: 22.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.313e-05/0.2544, allocations: 7.438 kB / 413.3 MB, free: 22.15 MB / 298.7 MB Notification: Performance of SimCode: time 3.6e-07/0.2544, allocations: 0 / 413.3 MB, free: 22.15 MB / 298.7 MB Notification: Performance of Templates: time 0.002317/0.2567, allocations: 1.144 MB / 414.4 MB, free: 21 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches