Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001623/0.001622, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001791/0.001792, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.585/1.585, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002842/0.002842, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2913, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence): time 0.002986/0.2943, allocations: 1.672 MB / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002241/0.2966, allocations: 1.228 MB / 411.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.625e-05/0.2967, allocations: 11.94 kB / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003501/0.2971, allocations: 31.78 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001102/0.2972, allocations: 35.77 kB / 411.7 MB, free: 14.55 MB / 334.1 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.0007583/0.298, allocations: 291.1 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002709/0.2982, allocations: 183.5 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.2984, allocations: 29.06 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001985/0.2986, allocations: 83.67 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005883/0.2992, allocations: 106.4 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.643e-05/0.2992, allocations: 12 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004621/0.2997, allocations: 271.6 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.923e-05/0.2998, allocations: 59.77 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.322e-05/0.2999, allocations: 75.56 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005431/0.3004, allocations: 326 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3005, allocations: 7.938 kB / 413.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3005, allocations: 0 / 413.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.3005, allocations: 0 / 413.2 MB, free: 13.14 MB / 334.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.001251/0.3017, allocations: 0.5567 MB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.3018, allocations: 8.031 kB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.459e-05/0.3019, allocations: 38.75 kB / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002148/0.3021, allocations: 32.78 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005006/0.3026, allocations: 265 kB / 414 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.3026, allocations: 12.36 kB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.663e-05/0.3027, allocations: 19.86 kB / 414.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002304/0.3029, allocations: 101.6 kB / 414.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.3029, allocations: 0 / 414.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.3029, allocations: 0 / 414.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.303, allocations: 4 kB / 414.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.3032, allocations: 83.92 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008991/0.3041, allocations: 444.5 kB / 414.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002857/0.3044, allocations: 122.4 kB / 414.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.3045, allocations: 56.83 kB / 414.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.3045, allocations: 7.938 kB / 414.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/0.3048, allocations: 123.4 kB / 415 MB, free: 11.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.3048, allocations: 0 / 415 MB, free: 11.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005203/0.3053, allocations: 233.6 kB / 415.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/0.3054, allocations: 55.5 kB / 415.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004155/0.3058, allocations: 251.7 kB / 415.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.971e-05/0.3059, allocations: 41.69 kB / 415.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.245e-05/0.306, allocations: 116.1 kB / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.936e-05/0.306, allocations: 47.78 kB / 415.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.802e-05/0.3061, allocations: 41.7 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3063, allocations: 338.8 kB / 416.1 MB, free: 9.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.3064, allocations: 79.95 kB / 416.2 MB, free: 9.883 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.3066, allocations: 113.5 kB / 416.3 MB, free: 9.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003073/0.3069, allocations: 177.6 kB / 416.5 MB, free: 9.586 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.307, allocations: 0 / 416.5 MB, free: 9.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004412/0.3074, allocations: 257.3 kB / 416.7 MB, free: 9.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.3074, allocations: 7.938 kB / 416.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3074, allocations: 0 / 416.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.3075, allocations: 7.984 kB / 416.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.3076, allocations: 23.98 kB / 416.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.3077, allocations: 7.938 kB / 416.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.3079, allocations: 35.89 kB / 416.8 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.3079, allocations: 8 kB / 416.8 MB, free: 9.238 MB / 334.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.0001411/0.308, allocations: 134 kB / 416.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.735e-05/0.3081, allocations: 19.84 kB / 417 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.287e-05/0.3081, allocations: 21.47 kB / 417 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3082, allocations: 7.984 kB / 417 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3082, allocations: 0 / 417 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3082, allocations: 0 / 417 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002528/0.3084, allocations: 249.5 kB / 417.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3084, allocations: 3.984 kB / 417.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.3086, allocations: 15.94 kB / 417.2 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.3086, allocations: 3.938 kB / 417.2 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.3086, allocations: 3.984 kB / 417.3 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3086, allocations: 0 / 417.3 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3086, allocations: 4 kB / 417.3 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004959/0.3091, allocations: 272.9 kB / 417.5 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.3092, allocations: 113 kB / 417.6 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.95e-05/0.3093, allocations: 11.94 kB / 417.6 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.3095, allocations: 19.91 kB / 417.7 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/0.3095, allocations: 11.98 kB / 417.7 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.3096, allocations: 4 kB / 417.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00032/0.3099, allocations: 185.5 kB / 417.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3099, allocations: 0 / 417.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003952/0.3103, allocations: 87.8 kB / 417.9 MB, free: 7.992 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.001451/0.3117, allocations: 0.9702 MB / 418.9 MB, free: 7.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004121/0.3122, allocations: 175.2 kB / 419.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/0.3122, allocations: 4.062 kB / 419.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.3123, allocations: 63.91 kB / 419.2 MB, free: 6.785 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.3126, allocations: 19.23 kB / 419.2 MB, free: 6.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003888/0.3165, allocations: 2.364 MB / 421.5 MB, free: 4.316 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.3169, allocations: 0.7241 MB / 422.3 MB, free: 3.566 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001208/0.317, allocations: 37.39 kB / 422.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.3171, allocations: 55.36 kB / 422.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3172, allocations: 0 / 422.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/0.3466, allocations: 5.087 MB / 427.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.522/8.869, allocations: 11.27 kB / 427.4 MB, free: 14.48 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/DrydenContinuousTurbulence/DrydenContinuousTurbulence.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches