Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.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.DrydenContinuousTurbulence,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence",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.001236/0.001236, allocations: 114.2 kB / 17.07 MB, free: 5.945 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.001339/0.001339, allocations: 198.9 kB / 18.01 MB, free: 5.023 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.433/1.433, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 51.91 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.372, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence): time 0.003164/0.3753, allocations: 1.634 MB / 401.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002199/0.3775, allocations: 1.198 MB / 403.1 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.3777, allocations: 8 kB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003846/0.378, allocations: 31.78 kB / 403.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.3782, allocations: 39.77 kB / 403.2 MB, free: 5.875 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.0007912/0.379, allocations: 287.1 kB / 403.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002523/0.3793, allocations: 175.6 kB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.3794, allocations: 29.08 kB / 403.6 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000163/0.3796, allocations: 87.67 kB / 403.7 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006589/0.3802, allocations: 109.1 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.397e-05/0.3803, allocations: 12 kB / 403.8 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004394/0.3807, allocations: 263.6 kB / 404.1 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.907e-05/0.3809, allocations: 55.81 kB / 404.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.531e-05/0.3809, allocations: 71.58 kB / 404.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005196/0.3815, allocations: 322 kB / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3815, allocations: 7.938 kB / 404.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3815, allocations: 0 / 404.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.3815, allocations: 0 / 404.5 MB, free: 4.492 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001234/0.3827, allocations: 0.5644 MB / 405.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.3828, allocations: 8.031 kB / 405.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.199e-05/0.3829, allocations: 34.75 kB / 405.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002254/0.3831, allocations: 28.83 kB / 405.2 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004877/0.3836, allocations: 284.4 kB / 405.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.3836, allocations: 8 kB / 405.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.358e-05/0.3837, allocations: 4 kB / 405.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002425/0.3839, allocations: 105.6 kB / 405.6 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.3839, allocations: 0 / 405.6 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.3839, allocations: 4 kB / 405.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.384, allocations: 0 / 405.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.3842, allocations: 83.88 kB / 405.7 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008331/0.385, allocations: 460.4 kB / 406.1 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002637/0.3853, allocations: 122.5 kB / 406.2 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.3854, allocations: 60.81 kB / 406.3 MB, free: 2.582 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.3854, allocations: 0 / 406.3 MB, free: 2.582 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002208/0.3857, allocations: 127.3 kB / 406.4 MB, free: 2.445 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.3857, allocations: 0 / 406.4 MB, free: 2.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004926/0.3862, allocations: 217.5 kB / 406.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.3862, allocations: 67.33 kB / 406.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000391/0.3866, allocations: 244.8 kB / 406.9 MB, free: 1.902 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.747e-05/0.3867, allocations: 37.7 kB / 407 MB, free: 1.859 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.934e-05/0.3868, allocations: 120 kB / 407.1 MB, free: 1.738 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.795e-05/0.3868, allocations: 47.78 kB / 407.1 MB, free: 1.691 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.68e-05/0.3869, allocations: 41.7 kB / 407.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.387, allocations: 334.8 kB / 407.5 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.3872, allocations: 79.94 kB / 407.6 MB, free: 1.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.3873, allocations: 105.7 kB / 407.7 MB, free: 1.121 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.3876, allocations: 185.8 kB / 407.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3877, allocations: 0 / 407.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004278/0.3881, allocations: 253.3 kB / 408.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.3881, allocations: 4 kB / 408.1 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3881, allocations: 0 / 408.1 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.3881, allocations: 4 kB / 408.1 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.3883, allocations: 35.91 kB / 408.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.3884, allocations: 7.984 kB / 408.2 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001962/0.3886, allocations: 31.91 kB / 408.2 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.3886, allocations: 11.98 kB / 408.2 MB, free: 0.5859 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: 17 ($whenCondition1,globalSeed.id_impure,globalSeed.seed,whiteNoise.actualGlobalSeed,whiteNoise.localSeed,whiteNoise.r_raw,$PRE.whiteNoise.r_raw,whiteNoise.r,$PRE.whiteNoise.r,whiteNoise.state[4],$PRE.whiteNoise.state[4],whiteNoise.state[3],$PRE.whiteNoise.state[3],whiteNoise.state[2],$PRE.whiteNoise.state[2],whiteNoise.state[1],$PRE.whiteNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 1 * 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 0.0001394/0.3887, allocations: 141.8 kB / 408.3 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.518e-05/0.3888, allocations: 19.8 kB / 408.4 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.981e-05/0.3888, allocations: 21.53 kB / 408.4 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.3888, allocations: 7.938 kB / 408.4 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3889, allocations: 4 kB / 408.4 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.3889, allocations: 7.984 kB / 408.4 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002285/0.3891, allocations: 237.5 kB / 408.6 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3891, allocations: 0 / 408.6 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.3892, allocations: 15.98 kB / 408.6 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3893, allocations: 96 / 408.6 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.3893, allocations: 11.92 kB / 408.7 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3893, allocations: 4 kB / 408.7 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3893, allocations: 0 / 408.7 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005003/0.3898, allocations: 286.9 kB / 408.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.3899, allocations: 108.9 kB / 409 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.39, allocations: 4 kB / 409 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.3901, allocations: 19.97 kB / 409.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.131e-05/0.3902, allocations: 7.984 kB / 409.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.597e-06/0.3902, allocations: 4 kB / 409.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000317/0.3905, allocations: 192.5 kB / 409.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3906, allocations: 0 / 409.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003865/0.3909, allocations: 83.8 kB / 409.3 MB, free: 15.33 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Hw.x_scaled[1],Hw.x_scaled[2]) * Number of discrete variables: 7 ($whenCondition1,whiteNoise.state[1],whiteNoise.state[2],whiteNoise.state[3],whiteNoise.state[4],whiteNoise.r,whiteNoise.r_raw) * Number of discrete states: 4 (whiteNoise.state[1],whiteNoise.state[2],whiteNoise.state[3],whiteNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001246/0.3922, allocations: 0.964 MB / 410.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003743/0.3926, allocations: 172.8 kB / 410.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.3926, allocations: 4.062 kB / 410.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000129/0.3927, allocations: 67.89 kB / 410.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002423/0.393, allocations: 20 kB / 410.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003248/0.3962, allocations: 2.368 MB / 412.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.3965, allocations: 0.728 MB / 413.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.3967, allocations: 37.39 kB / 413.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.3968, allocations: 47.42 kB / 413.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3968, allocations: 0 / 413.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02541/0.4222, allocations: 5.062 MB / 418.8 MB, free: 5.867 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.736/9.158, allocations: 7.469 kB / 418.8 MB, free: 5.867 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/DrydenContinuousTurbulence/DrydenContinuousTurbulence.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches