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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 112.6 kB / 17.06 MB, free: 5.992 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.001432/0.001432, allocations: 193.4 kB / 18 MB, free: 5.074 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.544/1.544, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3531, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002888/0.356, allocations: 1.319 MB / 401.6 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009024/0.357, allocations: 357.2 kB / 401.9 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.174e-05/0.357, allocations: 3.938 kB / 401.9 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.972e-05/0.357, allocations: 4 kB / 401.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.651e-05/0.3571, allocations: 9.234 kB / 401.9 MB, free: 7.094 MB / 318.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.0005572/0.3577, allocations: 87.19 kB / 402 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.389e-05/0.3578, allocations: 12 kB / 402 MB, free: 7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.777e-05/0.3578, allocations: 3.984 kB / 402 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.259e-05/0.3579, allocations: 11.94 kB / 402 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.044e-05/0.3579, allocations: 7.938 kB / 402 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.324e-05/0.3579, allocations: 7.922 kB / 402.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.3581, allocations: 79.92 kB / 402.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.913e-05/0.3582, allocations: 7.984 kB / 402.1 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.084e-05/0.3582, allocations: 11.94 kB / 402.2 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000207/0.3584, allocations: 86.91 kB / 402.2 MB, free: 6.789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3584, allocations: 0 / 402.2 MB, free: 6.789 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.3584, allocations: 0 / 402.2 MB, free: 6.789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.3584, allocations: 0 / 402.2 MB, free: 6.789 MB / 318.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.0005245/0.359, allocations: 347.3 kB / 402.6 MB, free: 6.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.359, allocations: 8.031 kB / 402.6 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.369e-05/0.3591, allocations: 42.64 kB / 402.6 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.008e-05/0.3591, allocations: 4.938 kB / 402.6 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001674/0.3593, allocations: 164.4 kB / 402.8 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.3593, allocations: 12.36 kB / 402.8 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/0.3594, allocations: 12.06 kB / 402.8 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.3595, allocations: 33.69 kB / 402.8 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.3595, allocations: 0 / 402.8 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.3595, allocations: 4 kB / 402.9 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.3595, allocations: 0 / 402.9 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.553e-05/0.3595, allocations: 8 kB / 402.9 MB, free: 6.066 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004452/0.36, allocations: 264.7 kB / 403.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.675e-05/0.3601, allocations: 26.58 kB / 403.1 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.81e-05/0.3601, allocations: 12.92 kB / 403.2 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.994e-06/0.3601, allocations: 0 / 403.2 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001625/0.3603, allocations: 59.33 kB / 403.2 MB, free: 5.637 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.3603, allocations: 0 / 403.2 MB, free: 5.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001917/0.3605, allocations: 49.69 kB / 403.3 MB, free: 5.582 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.651e-05/0.3606, allocations: 55.41 kB / 403.3 MB, free: 5.516 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.824e-05/0.3607, allocations: 105.8 kB / 403.4 MB, free: 5.402 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.3607, allocations: 29.7 kB / 403.4 MB, free: 5.367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.007e-05/0.3608, allocations: 84.14 kB / 403.5 MB, free: 5.281 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.474e-05/0.3608, allocations: 7.891 kB / 403.5 MB, free: 5.273 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.044e-05/0.3608, allocations: 21.7 kB / 403.6 MB, free: 5.246 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.361, allocations: 318.8 kB / 403.9 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.447e-05/0.361, allocations: 4 kB / 403.9 MB, free: 4.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.788e-05/0.3611, allocations: 29.7 kB / 403.9 MB, free: 4.887 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.935e-05/0.3611, allocations: 25.66 kB / 403.9 MB, free: 4.855 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3611, allocations: 0 / 403.9 MB, free: 4.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001019/0.3612, allocations: 61.58 kB / 404 MB, free: 4.789 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.3612, allocations: 8 kB / 404 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3613, allocations: 0 / 404 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.3613, allocations: 0 / 404 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.082e-05/0.3614, allocations: 16.02 kB / 404 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3614, allocations: 0 / 404 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.867e-05/0.3614, allocations: 3.938 kB / 404 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.3614, allocations: 4 kB / 404 MB, free: 4.758 MB / 318.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.643e-05/0.3615, allocations: 113.8 kB / 404.1 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.127e-05/0.3615, allocations: 4 kB / 404.1 MB, free: 4.633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.73e-05/0.3615, allocations: 3.906 kB / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3616, allocations: 240 / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3616, allocations: 384 / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.3616, allocations: 7.984 kB / 404.1 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002777/0.3619, allocations: 298.5 kB / 404.4 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3619, allocations: 4 kB / 404.4 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.303e-05/0.3619, allocations: 0 / 404.4 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.3619, allocations: 4 kB / 404.4 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.241e-06/0.3619, allocations: 0 / 404.4 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3619, allocations: 0 / 404.4 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3619, allocations: 7.875 kB / 404.5 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001419/0.3621, allocations: 155.5 kB / 404.6 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.296e-05/0.3621, allocations: 77.11 kB / 404.7 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.3621, allocations: 0 / 404.7 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.312e-05/0.3622, allocations: 0 / 404.7 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.8e-05/0.3622, allocations: 7.938 kB / 404.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.3622, allocations: 0 / 404.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.974e-05/0.3623, allocations: 87.27 kB / 404.8 MB, free: 3.895 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3623, allocations: 0 / 404.8 MB, free: 3.895 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002792/0.3626, allocations: 23.94 kB / 404.8 MB, free: 3.871 MB / 318.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.0008325/0.3634, allocations: 0.7844 MB / 405.6 MB, free: 3.094 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001149/0.3635, allocations: 23.94 kB / 405.6 MB, free: 3.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3636, allocations: 0 / 405.6 MB, free: 3.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.736e-05/0.3636, allocations: 11.98 kB / 405.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002043/0.3638, allocations: 7.938 kB / 405.6 MB, free: 3.051 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.365, allocations: 1.215 MB / 406.8 MB, free: 1.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.3653, allocations: 0.6844 MB / 407.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.935e-05/0.3654, allocations: 8 kB / 407.5 MB, free: 1.031 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.906e-05/0.3654, allocations: 15.42 kB / 407.5 MB, free: 1.016 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3654, allocations: 0 / 407.5 MB, free: 1.016 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02521/0.3906, allocations: 1.915 MB / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.479/8.87, allocations: 19.91 kB / 409.5 MB, free: 15.16 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.csv","/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