Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence,fileNamePrefix="Modelica_4_1_0-beta_om_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.001319/0.001319, allocations: 118.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.484/1.484, allocations: 227.7 MB / 247.2 MB, free: 10.25 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 67.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2904, allocations: 50.54 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence): time 0.003345/0.2938, allocations: 1.662 MB / 410.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.296, allocations: 1.242 MB / 412 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.481e-05/0.2961, allocations: 4 kB / 412 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003285/0.2965, allocations: 31.78 kB / 412 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.2966, allocations: 35.77 kB / 412.1 MB, free: 14.4 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.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.0007849/0.2974, allocations: 299 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002423/0.2976, allocations: 175.6 kB / 412.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.2977, allocations: 29.05 kB / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001825/0.2979, allocations: 83.67 kB / 412.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005665/0.2985, allocations: 106.3 kB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.637e-05/0.2985, allocations: 12 kB / 412.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004548/0.299, allocations: 275.5 kB / 413 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.297e-05/0.2991, allocations: 59.81 kB / 413.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.605e-05/0.2992, allocations: 67.58 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005111/0.2997, allocations: 334 kB / 413.5 MB, free: 13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.2997, allocations: 4 kB / 413.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2997, allocations: 0 / 413.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.2998, allocations: 0 / 413.5 MB, free: 12.99 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.001167/0.3009, allocations: 0.5567 MB / 414 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.301, allocations: 8.031 kB / 414 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.424e-05/0.301, allocations: 38.75 kB / 414.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001987/0.3012, allocations: 36.78 kB / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004746/0.3017, allocations: 276.9 kB / 414.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.3017, allocations: 384 / 414.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.952e-05/0.3018, allocations: 15.94 kB / 414.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.302, allocations: 105.6 kB / 414.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.302, allocations: 0 / 414.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.302, allocations: 7.938 kB / 414.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3021, allocations: 0 / 414.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002188/0.3023, allocations: 75.94 kB / 414.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008352/0.3031, allocations: 456.5 kB / 415 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002646/0.3034, allocations: 114.5 kB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.3035, allocations: 64.77 kB / 415.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.3035, allocations: 0 / 415.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002192/0.3038, allocations: 123.4 kB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.3038, allocations: 0 / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005004/0.3043, allocations: 233.6 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.3044, allocations: 55.41 kB / 415.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004272/0.3048, allocations: 247.7 kB / 415.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/0.3048, allocations: 41.69 kB / 415.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.764e-05/0.3049, allocations: 120.1 kB / 416 MB, free: 10.24 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.774e-05/0.305, allocations: 47.78 kB / 416 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.936e-05/0.3051, allocations: 41.7 kB / 416.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.3052, allocations: 338.8 kB / 416.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.3054, allocations: 79.95 kB / 416.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.3056, allocations: 105.7 kB / 416.6 MB, free: 9.621 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003121/0.3059, allocations: 182.5 kB / 416.8 MB, free: 9.438 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3059, allocations: 0 / 416.8 MB, free: 9.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004717/0.3064, allocations: 261.3 kB / 417 MB, free: 9.176 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.3064, allocations: 7.938 kB / 417 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3064, allocations: 0 / 417 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.3065, allocations: 4 kB / 417 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.3066, allocations: 27.92 kB / 417.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.3067, allocations: 4 kB / 417.1 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00019/0.3069, allocations: 35.89 kB / 417.1 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.3069, allocations: 4 kB / 417.1 MB, free: 9.094 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.0001396/0.307, allocations: 133.8 kB / 417.2 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.395e-05/0.3071, allocations: 27.77 kB / 417.3 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.391e-05/0.3071, allocations: 21.52 kB / 417.3 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.3071, allocations: 4 kB / 417.3 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.3072, allocations: 3.938 kB / 417.3 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3072, allocations: 4 kB / 417.3 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002644/0.3074, allocations: 249.4 kB / 417.5 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3074, allocations: 96 / 417.5 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.3076, allocations: 19.92 kB / 417.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.3076, allocations: 3.938 kB / 417.6 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.3076, allocations: 0 / 417.6 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.3076, allocations: 8 kB / 417.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3076, allocations: 0 / 417.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004993/0.3081, allocations: 280.5 kB / 417.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.938e-05/0.3082, allocations: 109 kB / 418 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.832e-05/0.3083, allocations: 11.94 kB / 418 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.3085, allocations: 15.97 kB / 418 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.3085, allocations: 7.984 kB / 418 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.3085, allocations: 8 kB / 418 MB, free: 8.105 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003248/0.3089, allocations: 185.5 kB / 418.2 MB, free: 7.926 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3089, allocations: 4 kB / 418.2 MB, free: 7.922 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000365/0.3092, allocations: 87.8 kB / 418.3 MB, free: 7.836 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.00131/0.3106, allocations: 0.9583 MB / 419.2 MB, free: 6.875 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003751/0.311, allocations: 167.8 kB / 419.4 MB, free: 6.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.311, allocations: 8 kB / 419.4 MB, free: 6.703 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.3111, allocations: 67.91 kB / 419.5 MB, free: 6.637 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.3113, allocations: 11.98 kB / 419.5 MB, free: 6.625 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003478/0.3148, allocations: 2.367 MB / 421.8 MB, free: 4.172 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003752/0.3152, allocations: 0.7279 MB / 422.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001049/0.3153, allocations: 37.39 kB / 422.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.553e-05/0.3154, allocations: 47.42 kB / 422.7 MB, free: 3.336 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3154, allocations: 0 / 422.7 MB, free: 3.336 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02895/0.3444, allocations: 5.123 MB / 427.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.526/8.87, allocations: 7.75 kB / 427.8 MB, free: 14.36 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe 2>&1)