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.001478/0.001478, allocations: 114 kB / 17.06 MB, free: 6.016 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.001648/0.001648, allocations: 191 kB / 18 MB, free: 5.098 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.465/1.465, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 51.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3556, allocations: 49.43 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.003453/0.3591, allocations: 1.326 MB / 401.6 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009551/0.3601, allocations: 356.8 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.657e-05/0.3602, allocations: 1.125 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.541e-05/0.3602, allocations: 0 / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.514e-05/0.3604, allocations: 13.05 kB / 401.9 MB, free: 7.125 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.0006802/0.361, allocations: 86.62 kB / 402 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.149e-05/0.3611, allocations: 15.94 kB / 402 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.257e-05/0.3612, allocations: 0 / 402 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.103e-05/0.3613, allocations: 19.91 kB / 402 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.917e-05/0.3613, allocations: 7.938 kB / 402 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.3613, allocations: 0 / 402 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002273/0.3615, allocations: 83.91 kB / 402.1 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.049e-05/0.3616, allocations: 4 kB / 402.1 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.543e-05/0.3616, allocations: 7.938 kB / 402.1 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002528/0.3619, allocations: 86.91 kB / 402.2 MB, free: 6.836 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3619, allocations: 7.938 kB / 402.2 MB, free: 6.828 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3619, allocations: 0 / 402.2 MB, free: 6.828 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.3619, allocations: 0 / 402.2 MB, free: 6.828 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.0005152/0.3624, allocations: 347.3 kB / 402.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.3625, allocations: 12.03 kB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.158e-05/0.3626, allocations: 34.7 kB / 402.6 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.078e-05/0.3626, allocations: 0.9375 kB / 402.6 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.3628, allocations: 172.3 kB / 402.8 MB, free: 6.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.3628, allocations: 384 / 402.8 MB, free: 6.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.3629, allocations: 12.12 kB / 402.8 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.363, allocations: 41.67 kB / 402.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.363, allocations: 0 / 402.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.363, allocations: 0 / 402.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.363, allocations: 0 / 402.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.343e-05/0.3631, allocations: 15.92 kB / 402.9 MB, free: 6.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004434/0.3635, allocations: 256.9 kB / 403.1 MB, free: 5.805 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.553e-05/0.3636, allocations: 26.58 kB / 403.1 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.983e-05/0.3636, allocations: 12.92 kB / 403.1 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.3636, allocations: 0 / 403.1 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002/0.3638, allocations: 55.34 kB / 403.2 MB, free: 5.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.3639, allocations: 0 / 403.2 MB, free: 5.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002156/0.3641, allocations: 53.67 kB / 403.3 MB, free: 5.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.3641, allocations: 51.41 kB / 403.3 MB, free: 5.566 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.932e-05/0.3642, allocations: 113.8 kB / 403.4 MB, free: 5.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.3643, allocations: 29.7 kB / 403.4 MB, free: 5.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.028e-05/0.3643, allocations: 84.14 kB / 403.5 MB, free: 5.324 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.3643, allocations: 7.891 kB / 403.5 MB, free: 5.316 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.511e-05/0.3644, allocations: 17.72 kB / 403.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3645, allocations: 322.8 kB / 403.9 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.863e-05/0.3646, allocations: 4 kB / 403.9 MB, free: 4.965 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.783e-05/0.3646, allocations: 29.66 kB / 403.9 MB, free: 4.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.112e-05/0.3647, allocations: 25.7 kB / 403.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3647, allocations: 0 / 403.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001038/0.3648, allocations: 65.58 kB / 404 MB, free: 4.828 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3648, allocations: 4 kB / 404 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.3648, allocations: 0 / 404 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.3648, allocations: 0 / 404 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.496e-05/0.3649, allocations: 11.94 kB / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.3649, allocations: 0 / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.952e-05/0.365, allocations: 4.031 kB / 404 MB, free: 4.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.365, allocations: 4 kB / 404 MB, free: 4.805 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 9.908e-05/0.3651, allocations: 117.8 kB / 404.1 MB, free: 4.68 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.444e-05/0.3651, allocations: 4 kB / 404.1 MB, free: 4.676 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.833e-05/0.3651, allocations: 3.906 kB / 404.1 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3651, allocations: 0 / 404.1 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3651, allocations: 3.938 kB / 404.1 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.3652, allocations: 240 / 404.1 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002802/0.3654, allocations: 310.4 kB / 404.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.3655, allocations: 0 / 404.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.645e-05/0.3655, allocations: 4 kB / 404.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3655, allocations: 0 / 404.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.3655, allocations: 0 / 404.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3655, allocations: 0 / 404.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.3655, allocations: 3.938 kB / 404.4 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.3657, allocations: 147.5 kB / 404.6 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.997e-05/0.3657, allocations: 81.11 kB / 404.7 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.3657, allocations: 3.984 kB / 404.7 MB, free: 4.031 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.804e-05/0.3658, allocations: 4.375 kB / 404.7 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.784e-05/0.3658, allocations: 3.938 kB / 404.7 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.3658, allocations: 4 kB / 404.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.834e-05/0.3659, allocations: 83.28 kB / 404.8 MB, free: 3.938 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3659, allocations: 0 / 404.8 MB, free: 3.938 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003148/0.3662, allocations: 27.92 kB / 404.8 MB, free: 3.91 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.0008501/0.3671, allocations: 0.7743 MB / 405.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001171/0.3672, allocations: 27.98 kB / 405.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3672, allocations: 0 / 405.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.304e-05/0.3673, allocations: 11.98 kB / 405.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002118/0.3675, allocations: 11.92 kB / 405.6 MB, free: 3.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.3687, allocations: 1.215 MB / 406.8 MB, free: 1.789 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.369, allocations: 0.6883 MB / 407.5 MB, free: 1.074 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.94e-05/0.3691, allocations: 4 kB / 407.5 MB, free: 1.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.705e-05/0.3691, allocations: 15.47 kB / 407.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3691, allocations: 0 / 407.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.392, allocations: 1.928 MB / 409.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.139/8.531, allocations: 7.844 kB / 409.5 MB, free: 15.21 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