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.001366/0.001366, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.6 MB / 244.3 MB, free: 8.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007984/0.0007983, allocations: 100 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002161/0.0002161, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2669, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence): time 0.001347/0.2683, allocations: 1.356 MB / 408.8 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00143/0.2697, allocations: 1.166 MB / 410 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.673e-05/0.2698, allocations: 4 kB / 410 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002669/0.2701, allocations: 31.84 kB / 410 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.954e-05/0.2702, allocations: 32.95 kB / 410.1 MB, free: 25.25 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.0005559/0.2708, allocations: 234.5 kB / 410.3 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001512/0.2709, allocations: 147.6 kB / 410.5 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.198e-05/0.271, allocations: 21.09 kB / 410.5 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.2712, allocations: 78.64 kB / 410.5 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.2714, allocations: 95.64 kB / 410.6 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.977e-05/0.2714, allocations: 8 kB / 410.7 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000355/0.2718, allocations: 283.5 kB / 410.9 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.93e-05/0.2719, allocations: 51.81 kB / 411 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.714e-05/0.2719, allocations: 45.64 kB / 411 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.2722, allocations: 228.6 kB / 411.2 MB, free: 24.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.2722, allocations: 0 / 411.2 MB, free: 24.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2722, allocations: 0 / 411.2 MB, free: 24.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.2722, allocations: 0 / 411.2 MB, free: 24.09 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.0009554/0.2731, allocations: 0.5375 MB / 411.8 MB, free: 23.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.96e-05/0.2732, allocations: 8.031 kB / 411.8 MB, free: 23.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.2734, allocations: 31.8 kB / 411.8 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003592/0.2737, allocations: 271.6 kB / 412.1 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.2738, allocations: 8 kB / 412.1 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.439e-05/0.2738, allocations: 8 kB / 412.1 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/0.274, allocations: 109.6 kB / 412.2 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.274, allocations: 0 / 412.2 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.274, allocations: 0 / 412.2 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.274, allocations: 4 kB / 412.2 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001652/0.2742, allocations: 75.94 kB / 412.3 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006742/0.2749, allocations: 460.4 kB / 412.7 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002267/0.2751, allocations: 126.5 kB / 412.9 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.002e-05/0.2752, allocations: 60.83 kB / 412.9 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.2752, allocations: 4 kB / 412.9 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001741/0.2754, allocations: 123.5 kB / 413 MB, free: 22.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.924e-06/0.2754, allocations: 4 kB / 413 MB, free: 22.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003967/0.2758, allocations: 236.8 kB / 413.3 MB, free: 21.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.2759, allocations: 59.39 kB / 413.3 MB, free: 21.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/0.2762, allocations: 259.6 kB / 413.6 MB, free: 21.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.2762, allocations: 37.7 kB / 413.6 MB, free: 21.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.642e-05/0.2763, allocations: 116.1 kB / 413.7 MB, free: 21.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.2763, allocations: 39.59 kB / 413.8 MB, free: 21.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.678e-06/0.2763, allocations: 4 kB / 413.8 MB, free: 21.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.724e-05/0.2764, allocations: 330.8 kB / 414.1 MB, free: 21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.2765, allocations: 83.95 kB / 414.2 MB, free: 20.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.2766, allocations: 111.2 kB / 414.3 MB, free: 20.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.2768, allocations: 100.1 kB / 414.4 MB, free: 20.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.2768, allocations: 0 / 414.4 MB, free: 20.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003353/0.2771, allocations: 258.1 kB / 414.6 MB, free: 20.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.2772, allocations: 8 kB / 414.7 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.2772, allocations: 0 / 414.7 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.2772, allocations: 0 / 414.7 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.2774, allocations: 40 kB / 414.7 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.2774, allocations: 0 / 414.7 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.2776, allocations: 27.83 kB / 414.7 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.2776, allocations: 8 kB / 414.7 MB, free: 20.37 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.873e-05/0.2777, allocations: 145.7 kB / 414.9 MB, free: 20.22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.13e-05/0.2777, allocations: 11.81 kB / 414.9 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.065e-05/0.2778, allocations: 25.62 kB / 414.9 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.2778, allocations: 7.938 kB / 414.9 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.2778, allocations: 0 / 414.9 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2778, allocations: 0 / 414.9 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.2779, allocations: 249.3 kB / 415.2 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.2779, allocations: 3.953 kB / 415.2 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.2781, allocations: 19.92 kB / 415.2 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2781, allocations: 0 / 415.2 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.2781, allocations: 11.98 kB / 415.2 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2781, allocations: 0 / 415.2 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2781, allocations: 7.984 kB / 415.2 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000363/0.2785, allocations: 273.7 kB / 415.5 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.983e-05/0.2785, allocations: 108.9 kB / 415.6 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.918e-05/0.2786, allocations: 4 kB / 415.6 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.2788, allocations: 32.03 kB / 415.6 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.2788, allocations: 11.92 kB / 415.6 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.2788, allocations: 4 kB / 415.6 MB, free: 19.38 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002523/0.2791, allocations: 181.5 kB / 415.8 MB, free: 19.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2791, allocations: 0 / 415.8 MB, free: 19.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002771/0.2794, allocations: 83.98 kB / 415.9 MB, free: 19.12 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.0004818/0.2799, allocations: 256.9 kB / 416.1 MB, free: 18.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000293/0.2802, allocations: 179.6 kB / 416.3 MB, free: 18.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.2802, allocations: 4 kB / 416.3 MB, free: 18.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.2803, allocations: 63.91 kB / 416.4 MB, free: 18.65 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001931/0.2805, allocations: 26.34 kB / 416.4 MB, free: 18.62 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005059/0.281, allocations: 416.2 kB / 416.8 MB, free: 18.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.2811, allocations: 0.7322 MB / 417.5 MB, free: 17.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.489e-05/0.2812, allocations: 19.42 kB / 417.6 MB, free: 17.41 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2812, allocations: 0 / 417.6 MB, free: 17.41 MB / 298.7 MB Notification: Performance of Templates: time 0.004385/0.2856, allocations: 3.506 MB / 421.1 MB, free: 13.9 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