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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009792/0.0009792, allocations: 202.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 226.5 MB / 244.7 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007458/0.0007458, allocations: 96.48 kB / 296.7 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002411/0.0002413, allocations: 8 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2187, allocations: 51.3 MB / 408.1 MB, free: 27.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence): time 0.001633/0.2204, allocations: 1.364 MB / 409.5 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.2219, allocations: 1.172 MB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.195e-05/0.222, allocations: 1.344 kB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003142/0.2223, allocations: 27.84 kB / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.086e-05/0.2224, allocations: 33.33 kB / 410.7 MB, free: 24.96 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.0004812/0.2229, allocations: 224.1 kB / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001466/0.2231, allocations: 155.6 kB / 411.1 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.966e-05/0.2232, allocations: 24.44 kB / 411.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.2233, allocations: 71.75 kB / 411.2 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003357/0.2237, allocations: 91.64 kB / 411.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/0.2237, allocations: 4 kB / 411.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000324/0.224, allocations: 291.5 kB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.453e-05/0.2241, allocations: 47.88 kB / 411.6 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.455e-05/0.2242, allocations: 85.28 kB / 411.7 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.2245, allocations: 224.9 kB / 411.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2245, allocations: 3.984 kB / 411.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2245, allocations: 0 / 411.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.2245, allocations: 0 / 411.9 MB, free: 23.77 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.0009332/0.2255, allocations: 0.5377 MB / 412.5 MB, free: 23.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2255, allocations: 8.031 kB / 412.5 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.872e-05/0.2255, allocations: 38.75 kB / 412.5 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.2257, allocations: 32.67 kB / 412.5 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00042/0.2261, allocations: 268.9 kB / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.2262, allocations: 8.359 kB / 412.8 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.912e-05/0.2262, allocations: 19.88 kB / 412.8 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.2264, allocations: 93.64 kB / 412.9 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.2264, allocations: 8 kB / 412.9 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.2264, allocations: 0 / 412.9 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.2264, allocations: 4 kB / 412.9 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001603/0.2266, allocations: 83.92 kB / 413 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006715/0.2273, allocations: 456.4 kB / 413.5 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.2275, allocations: 122.5 kB / 413.6 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.036e-05/0.2276, allocations: 60.83 kB / 413.6 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.2276, allocations: 0 / 413.6 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001731/0.2278, allocations: 123.4 kB / 413.8 MB, free: 21.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.144e-06/0.2278, allocations: 3.984 kB / 413.8 MB, free: 21.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003904/0.2282, allocations: 237.5 kB / 414 MB, free: 21.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.998e-05/0.2283, allocations: 67.27 kB / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003459/0.2286, allocations: 247.8 kB / 414.3 MB, free: 21.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.2287, allocations: 37.69 kB / 414.3 MB, free: 21.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.778e-05/0.2287, allocations: 120 kB / 414.5 MB, free: 21.01 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.29e-05/0.2287, allocations: 43.59 kB / 414.5 MB, free: 20.97 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.2288, allocations: 0 / 414.5 MB, free: 20.97 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.325e-05/0.2288, allocations: 330.8 kB / 414.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.229, allocations: 91.94 kB / 414.9 MB, free: 20.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.2291, allocations: 106.6 kB / 415 MB, free: 20.44 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002303/0.2293, allocations: 181.6 kB / 415.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2293, allocations: 0 / 415.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003321/0.2297, allocations: 257.5 kB / 415.4 MB, free: 20 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.2297, allocations: 11.94 kB / 415.5 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2297, allocations: 0 / 415.5 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.2297, allocations: 0 / 415.5 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.2299, allocations: 39.91 kB / 415.5 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.2299, allocations: 0 / 415.5 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.2301, allocations: 31.73 kB / 415.5 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.2301, allocations: 12.03 kB / 415.5 MB, free: 19.9 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.778e-05/0.2302, allocations: 137.8 kB / 415.7 MB, free: 19.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.111e-05/0.2302, allocations: 23.69 kB / 415.7 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.415e-05/0.2303, allocations: 25.53 kB / 415.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2303, allocations: 4 kB / 415.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2303, allocations: 96 / 415.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2303, allocations: 3.938 kB / 415.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/0.2305, allocations: 245.4 kB / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2305, allocations: 4 kB / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.2306, allocations: 15.98 kB / 416 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.634e-06/0.2306, allocations: 3.938 kB / 416 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.2306, allocations: 8 kB / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2306, allocations: 0 / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2306, allocations: 3.984 kB / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003694/0.231, allocations: 282.4 kB / 416.3 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.887e-05/0.2311, allocations: 104.9 kB / 416.4 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.2311, allocations: 7.938 kB / 416.4 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.2313, allocations: 23.97 kB / 416.4 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.105e-05/0.2313, allocations: 7.984 kB / 416.4 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.2313, allocations: 4 kB / 416.4 MB, free: 18.92 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002512/0.2316, allocations: 185.5 kB / 416.6 MB, free: 18.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2316, allocations: 0 / 416.6 MB, free: 18.74 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002958/0.2319, allocations: 87.98 kB / 416.7 MB, free: 18.66 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.00102/0.2329, allocations: 0.9753 MB / 417.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002804/0.2332, allocations: 175.2 kB / 417.8 MB, free: 17.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2332, allocations: 0 / 417.8 MB, free: 17.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.2334, allocations: 71.89 kB / 417.9 MB, free: 17.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/0.2336, allocations: 18.34 kB / 417.9 MB, free: 17.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.2355, allocations: 1.386 MB / 419.3 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001249/0.2356, allocations: 0.7283 MB / 420 MB, free: 15.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.536e-05/0.2357, allocations: 47.42 kB / 420.1 MB, free: 15.18 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2357, allocations: 0 / 420.1 MB, free: 15.18 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.642/3.878, allocations: 3.907 MB / 424 MB, free: 11.27 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_DrydenContinuousTurbulence.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DrydenContinuousTurbulence_res.mat","/var/lib/jenkins1/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