Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Hw.x_scaled.1.|Hw.x_scaled.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence") translateModel(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Hw.x_scaled.1.|Hw.x_scaled.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001018, allocations: 196.7 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 226.5 MB / 244.7 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007684/0.0007685, allocations: 94.52 kB / 296.7 MB, free: 6.711 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002666/0.0002666, allocations: 8 kB / 356.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2276, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence): time 0.001426/0.2291, allocations: 1.36 MB / 409.4 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.2306, allocations: 1.171 MB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.305e-05/0.2307, allocations: 0.8438 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002974/0.2311, allocations: 19.86 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.759e-05/0.2312, allocations: 34.92 kB / 410.6 MB, free: 25.11 MB / 298.7 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.0005519/0.2317, allocations: 227.5 kB / 410.8 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001533/0.2319, allocations: 155.5 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.414e-05/0.232, allocations: 18.23 kB / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.2322, allocations: 80.73 kB / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004093/0.2326, allocations: 91.64 kB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.96e-05/0.2326, allocations: 8 kB / 411.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003751/0.233, allocations: 286.7 kB / 411.5 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.747e-05/0.2331, allocations: 43.89 kB / 411.5 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.787e-05/0.2331, allocations: 89.28 kB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002562/0.2334, allocations: 224.6 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2334, allocations: 0 / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2334, allocations: 3 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.2334, allocations: 3.938 kB / 411.8 MB, free: 23.9 MB / 298.7 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.0009495/0.2344, allocations: 0.5415 MB / 412.4 MB, free: 23.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.2344, allocations: 8.031 kB / 412.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/0.2346, allocations: 28.73 kB / 412.4 MB, free: 23.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.235, allocations: 264.9 kB / 412.7 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.235, allocations: 12.31 kB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.911e-05/0.235, allocations: 16.12 kB / 412.7 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.2352, allocations: 106.5 kB / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2352, allocations: 0 / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.2353, allocations: 0 / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.2353, allocations: 4 kB / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001572/0.2354, allocations: 79.94 kB / 412.9 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006748/0.2361, allocations: 456.5 kB / 413.3 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002078/0.2363, allocations: 134.5 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.132e-05/0.2364, allocations: 64.58 kB / 413.5 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/0.2365, allocations: 0 / 413.5 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/0.2366, allocations: 115.4 kB / 413.6 MB, free: 21.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.2367, allocations: 0 / 413.6 MB, free: 21.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003905/0.237, allocations: 237.4 kB / 413.9 MB, free: 21.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.2371, allocations: 63.41 kB / 413.9 MB, free: 21.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003352/0.2374, allocations: 251.7 kB / 414.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.2375, allocations: 33.7 kB / 414.2 MB, free: 21.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.022e-05/0.2375, allocations: 120 kB / 414.3 MB, free: 21.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.31e-05/0.2376, allocations: 47.58 kB / 414.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/0.2376, allocations: 4 kB / 414.4 MB, free: 21.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.228e-05/0.2376, allocations: 334.8 kB / 414.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.2378, allocations: 87.89 kB / 414.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.2379, allocations: 111.2 kB / 414.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000233/0.2381, allocations: 185.8 kB / 415.1 MB, free: 20.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2382, allocations: 0 / 415.1 MB, free: 20.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003336/0.2385, allocations: 253.3 kB / 415.3 MB, free: 20.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.2385, allocations: 4 kB / 415.3 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.2385, allocations: 7.922 kB / 415.3 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.2386, allocations: 8.031 kB / 415.3 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.2387, allocations: 31.92 kB / 415.4 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.2387, allocations: 0 / 415.4 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001717/0.2389, allocations: 35.81 kB / 415.4 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.2389, allocations: 7.938 kB / 415.4 MB, free: 20.08 MB / 298.7 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,$PRE.whiteNoise.state[1],whiteNoise.state[1],$PRE.whiteNoise.state[2],whiteNoise.state[2],$PRE.whiteNoise.state[3],whiteNoise.state[3],$PRE.whiteNoise.state[4],whiteNoise.state[4],$PRE.whiteNoise.r,whiteNoise.r,$PRE.whiteNoise.r_raw,whiteNoise.r_raw,whiteNoise.localSeed,whiteNoise.actualGlobalSeed,globalSeed.seed,globalSeed.id_impure) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.963e-05/0.239, allocations: 138 kB / 415.6 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.136e-05/0.2391, allocations: 19.81 kB / 415.6 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.375e-05/0.2391, allocations: 25.45 kB / 415.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2391, allocations: 0 / 415.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.2391, allocations: 4 kB / 415.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.2391, allocations: 0 / 415.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.2393, allocations: 237.5 kB / 415.8 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2393, allocations: 0 / 415.8 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.2394, allocations: 27.88 kB / 415.9 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.2394, allocations: 3.984 kB / 415.9 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.2395, allocations: 3.938 kB / 415.9 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.113e-06/0.2395, allocations: 8 kB / 415.9 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2395, allocations: 0 / 415.9 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003744/0.2399, allocations: 272.8 kB / 416.1 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.563e-05/0.2399, allocations: 108.9 kB / 416.2 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.1e-05/0.24, allocations: 11.94 kB / 416.3 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.2401, allocations: 24.03 kB / 416.3 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.89e-05/0.2402, allocations: 7.984 kB / 416.3 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.2402, allocations: 8 kB / 416.3 MB, free: 19.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002409/0.2404, allocations: 185.5 kB / 416.5 MB, free: 18.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2404, allocations: 0 / 416.5 MB, free: 18.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003249/0.2408, allocations: 83.98 kB / 416.6 MB, free: 18.84 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005268/0.2413, allocations: 254.8 kB / 416.8 MB, free: 18.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002938/0.2416, allocations: 186.8 kB / 417 MB, free: 18.44 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2416, allocations: 0 / 417 MB, free: 18.44 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.2417, allocations: 71.84 kB / 417.1 MB, free: 18.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.242, allocations: 22.16 kB / 417.1 MB, free: 18.35 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005363/0.2425, allocations: 424.3 kB / 417.5 MB, free: 17.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000128/0.2427, allocations: 0.7283 MB / 418.2 MB, free: 17.15 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.889e-05/0.2427, allocations: 19.44 kB / 418.2 MB, free: 17.13 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2427, allocations: 0 / 418.2 MB, free: 17.13 MB / 298.7 MB Notification: Performance of Templates: time 0.004434/0.2472, allocations: 3.502 MB / 421.7 MB, free: 13.63 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/DrydenContinuousTurbulence/DrydenContinuousTurbulence.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches