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.001167/0.001167, allocations: 197.2 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008005/0.0008006, allocations: 95 kB / 296.4 MB, free: 7.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003419, allocations: 8 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.211/0.2114, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001023/0.2125, allocations: 1.078 MB / 408.6 MB, free: 26.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004998/0.213, allocations: 335.2 kB / 408.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.292e-05/0.213, allocations: 0 / 408.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.126e-05/0.2131, allocations: 1.344 kB / 408.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.671e-05/0.2131, allocations: 7.922 kB / 408.9 MB, free: 26.43 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.0003365/0.2135, allocations: 71.8 kB / 409 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.817e-05/0.2135, allocations: 12.47 kB / 409 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.022e-05/0.2136, allocations: 9.984 kB / 409 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.943e-05/0.2136, allocations: 7.984 kB / 409 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.956e-05/0.2136, allocations: 7.938 kB / 409 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.927e-06/0.2136, allocations: 0 / 409 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001275/0.2137, allocations: 71.92 kB / 409.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.252e-05/0.2138, allocations: 15.92 kB / 409.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.039e-05/0.2138, allocations: 26.77 kB / 409.1 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.607e-05/0.2139, allocations: 59.84 kB / 409.2 MB, free: 26.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2139, allocations: 1.719 kB / 409.2 MB, free: 26.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2139, allocations: 0 / 409.2 MB, free: 26.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.2139, allocations: 0 / 409.2 MB, free: 26.14 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.0002413/0.2142, allocations: 335.3 kB / 409.5 MB, free: 25.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.89e-05/0.2142, allocations: 12.66 kB / 409.5 MB, free: 25.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.692e-05/0.2142, allocations: 0 / 409.5 MB, free: 25.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.39e-05/0.2143, allocations: 164.1 kB / 409.7 MB, free: 25.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.2143, allocations: 8 kB / 409.7 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.296e-06/0.2143, allocations: 0.6562 kB / 409.7 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.736e-05/0.2144, allocations: 42.08 kB / 409.7 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.2144, allocations: 4.438 kB / 409.7 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-06/0.2144, allocations: 0 / 409.7 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.2145, allocations: 0.75 kB / 409.7 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.772e-05/0.2145, allocations: 4 kB / 409.7 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002368/0.2147, allocations: 249.2 kB / 410 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.954e-05/0.2148, allocations: 26.53 kB / 410 MB, free: 25.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.783e-05/0.2148, allocations: 16.86 kB / 410 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.905e-06/0.2148, allocations: 3.406 kB / 410 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.966e-05/0.2149, allocations: 55.39 kB / 410.1 MB, free: 25.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.2149, allocations: 0 / 410.1 MB, free: 25.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.000127/0.215, allocations: 53.59 kB / 410.1 MB, free: 25.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.345e-05/0.2151, allocations: 51.41 kB / 410.2 MB, free: 24.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.708e-05/0.2151, allocations: 113.8 kB / 410.3 MB, free: 24.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.321e-06/0.2151, allocations: 27.45 kB / 410.3 MB, free: 24.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.856e-05/0.2152, allocations: 84.12 kB / 410.4 MB, free: 24.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.12e-05/0.2152, allocations: 11.91 kB / 410.4 MB, free: 24.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.2152, allocations: 0 / 410.4 MB, free: 24.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.567e-05/0.2152, allocations: 318.8 kB / 410.7 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.792e-05/0.2152, allocations: 8 kB / 410.7 MB, free: 24.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.85e-05/0.2153, allocations: 13.72 kB / 410.8 MB, free: 24.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.149e-05/0.2153, allocations: 12 kB / 410.8 MB, free: 24.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.2153, allocations: 3.938 kB / 410.8 MB, free: 24.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.735e-05/0.2154, allocations: 61.58 kB / 410.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.2154, allocations: 4 kB / 410.8 MB, free: 24.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.247e-06/0.2154, allocations: 3.984 kB / 410.8 MB, free: 24.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.268e-06/0.2154, allocations: 8.031 kB / 410.8 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.007e-05/0.2155, allocations: 4 kB / 410.8 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.2155, allocations: 3.984 kB / 410.9 MB, free: 24.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.739e-05/0.2155, allocations: 11.88 kB / 410.9 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.2155, allocations: 0 / 410.9 MB, free: 24.25 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 4.339e-05/0.2156, allocations: 113.8 kB / 411 MB, free: 24.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.466e-06/0.2156, allocations: 7.859 kB / 411 MB, free: 24.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.841e-05/0.2156, allocations: 8.125 kB / 411 MB, free: 24.1 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.2156, allocations: 3.984 kB / 411 MB, free: 24.1 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2156, allocations: 8 kB / 411 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-06/0.2156, allocations: 0 / 411 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/0.2158, allocations: 282.5 kB / 411.3 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2158, allocations: 0 / 411.3 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.267e-05/0.2158, allocations: 4 kB / 411.3 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2158, allocations: 0 / 411.3 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.2158, allocations: 4 kB / 411.3 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.2158, allocations: 0 / 411.3 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2158, allocations: 3.984 kB / 411.3 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.543e-05/0.2159, allocations: 151.4 kB / 411.4 MB, free: 23.58 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.403e-05/0.2159, allocations: 81.02 kB / 411.5 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.01e-05/0.2159, allocations: 384 / 411.5 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.129e-05/0.216, allocations: 4 kB / 411.5 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.06e-05/0.216, allocations: 4 kB / 411.5 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.216, allocations: 7.984 kB / 411.5 MB, free: 23.47 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.931e-05/0.216, allocations: 79.28 kB / 411.6 MB, free: 23.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.216, allocations: 4 kB / 411.6 MB, free: 23.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002413/0.2163, allocations: 28 kB / 411.6 MB, free: 23.36 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.0002921/0.2166, allocations: 171 kB / 411.8 MB, free: 23.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.12e-05/0.2167, allocations: 23.98 kB / 411.8 MB, free: 23.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2167, allocations: 3.938 kB / 411.8 MB, free: 23.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.24e-05/0.2167, allocations: 15.94 kB / 411.9 MB, free: 23.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001795/0.2169, allocations: 3.984 kB / 411.9 MB, free: 23.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000183/0.2171, allocations: 134.4 kB / 412 MB, free: 23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.632e-05/0.2172, allocations: 0.6809 MB / 412.7 MB, free: 22.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.154e-05/0.2172, allocations: 11.5 kB / 412.7 MB, free: 22.28 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2172, allocations: 0 / 412.7 MB, free: 22.28 MB / 298.7 MB Notification: Performance of Templates: time 0.002048/0.2192, allocations: 1.148 MB / 413.8 MB, free: 21.13 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