Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.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.UniformNoise,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009574/0.0009576, allocations: 191.7 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.5 MB / 244.7 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007845/0.0007846, allocations: 104.4 kB / 296.7 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002286/0.0002288, allocations: 8 kB / 356.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2375, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.001275/0.2388, allocations: 1.222 MB / 409.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008041/0.2396, allocations: 0.5577 MB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.462e-05/0.2397, allocations: 4 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.468e-05/0.2398, allocations: 5.375 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.771e-05/0.2398, allocations: 15.84 kB / 409.9 MB, free: 25.87 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.0004133/0.2402, allocations: 111.8 kB / 410 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.743e-05/0.2403, allocations: 106.8 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.061e-05/0.2404, allocations: 12.86 kB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.353e-05/0.2405, allocations: 43.83 kB / 410.2 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003978/0.2409, allocations: 69.72 kB / 410.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.2409, allocations: 4 kB / 410.3 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001575/0.2411, allocations: 95.84 kB / 410.4 MB, free: 25.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.247e-05/0.2411, allocations: 27.91 kB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.641e-05/0.2412, allocations: 77.92 kB / 410.5 MB, free: 25.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.2413, allocations: 127.8 kB / 410.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2414, allocations: 5.109 kB / 410.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2414, allocations: 0 / 410.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.2414, allocations: 7.938 kB / 410.6 MB, free: 25.19 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.0005041/0.2419, allocations: 434 kB / 411 MB, free: 24.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2419, allocations: 8.781 kB / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.287e-05/0.242, allocations: 38.75 kB / 411.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002611/0.2423, allocations: 45.77 kB / 411.1 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.2424, allocations: 196.8 kB / 411.3 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.2424, allocations: 4.375 kB / 411.3 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.2424, allocations: 8.938 kB / 411.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001974/0.2426, allocations: 131.5 kB / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.2427, allocations: 0 / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.2427, allocations: 0 / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/0.2427, allocations: 0 / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001569/0.2429, allocations: 70.17 kB / 411.5 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005436/0.2434, allocations: 464.8 kB / 412 MB, free: 23.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002674/0.2437, allocations: 137.2 kB / 412.1 MB, free: 23.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.79e-05/0.2438, allocations: 61.75 kB / 412.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.2438, allocations: 0 / 412.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002115/0.244, allocations: 152.8 kB / 412.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.112e-06/0.2441, allocations: 0 / 412.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.000443/0.2445, allocations: 245.6 kB / 412.6 MB, free: 23.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.2446, allocations: 97.03 kB / 412.7 MB, free: 22.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.2447, allocations: 179.3 kB / 412.8 MB, free: 22.74 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.2447, allocations: 45.69 kB / 412.9 MB, free: 22.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.459e-05/0.2448, allocations: 104.5 kB / 413 MB, free: 22.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.956e-05/0.2448, allocations: 43.53 kB / 413 MB, free: 22.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.024e-05/0.2448, allocations: 4 kB / 413 MB, free: 22.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.825e-05/0.2449, allocations: 338.8 kB / 413.4 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.245, allocations: 96.47 kB / 413.4 MB, free: 22.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.2452, allocations: 132.4 kB / 413.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002725/0.2455, allocations: 219.4 kB / 413.8 MB, free: 21.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2455, allocations: 0 / 413.8 MB, free: 21.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003797/0.2459, allocations: 297.3 kB / 414.1 MB, free: 21.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.2459, allocations: 18.58 kB / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2459, allocations: 0 / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.2459, allocations: 0 / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.2461, allocations: 31.98 kB / 414.1 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.2461, allocations: 3.938 kB / 414.1 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.264e-05/0.2462, allocations: 23.75 kB / 414.2 MB, free: 21.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.2462, allocations: 20 kB / 414.2 MB, free: 21.35 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,$PRE.uniformNoise1.state[1],uniformNoise1.state[1],$PRE.uniformNoise1.state[2],uniformNoise1.state[2],$PRE.uniformNoise1.state[3],uniformNoise1.state[3],$PRE.uniformNoise1.state[4],uniformNoise1.state[4],$PRE.uniformNoise1.r,uniformNoise1.r,$PRE.uniformNoise1.r_raw,uniformNoise1.r_raw,$PRE.uniformNoise2.state[1],uniformNoise2.state[1],$PRE.uniformNoise2.state[2],uniformNoise2.state[2],$PRE.uniformNoise2.state[3],uniformNoise2.state[3],$PRE.uniformNoise2.state[4],uniformNoise2.state[4],$PRE.uniformNoise2.r,uniformNoise2.r,$PRE.uniformNoise2.r_raw,uniformNoise2.r_raw,globalSeed.id_impure,uniformNoise1.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise2.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 2 * 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 0.0001069/0.2463, allocations: 141.9 kB / 414.3 MB, free: 21.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.925e-05/0.2463, allocations: 15.89 kB / 414.3 MB, free: 21.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.773e-05/0.2464, allocations: 13.41 kB / 414.3 MB, free: 21.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.2464, allocations: 4 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.2464, allocations: 0 / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2464, allocations: 7.875 kB / 414.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001419/0.2465, allocations: 221.4 kB / 414.6 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2465, allocations: 0 / 414.6 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.344e-05/0.2466, allocations: 8 kB / 414.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.2466, allocations: 0 / 414.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.2466, allocations: 0 / 414.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.2466, allocations: 4 kB / 414.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2466, allocations: 3.984 kB / 414.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003022/0.2469, allocations: 221.7 kB / 414.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.888e-05/0.247, allocations: 92.94 kB / 414.9 MB, free: 20.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.247, allocations: 12 kB / 414.9 MB, free: 20.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.589e-05/0.2471, allocations: 7.984 kB / 414.9 MB, free: 20.51 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.348e-05/0.2471, allocations: 23.86 kB / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-06/0.2471, allocations: 4 kB / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.387e-05/0.2472, allocations: 123.2 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.2472, allocations: 3.938 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002498/0.2475, allocations: 59.83 kB / 415.1 MB, free: 20.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw,$whenCondition1,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw) * Number of discrete states: 8 (uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008522/0.2483, allocations: 0.9135 MB / 416 MB, free: 19.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003285/0.2487, allocations: 195.8 kB / 416.2 MB, free: 19.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2487, allocations: 4.125 kB / 416.2 MB, free: 19.19 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.2488, allocations: 63.97 kB / 416.3 MB, free: 19.13 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001655/0.249, allocations: 13.97 kB / 416.3 MB, free: 19.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.2502, allocations: 1.083 MB / 417.4 MB, free: 17.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.2504, allocations: 0.7121 MB / 418.1 MB, free: 17.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.055e-05/0.2504, allocations: 43.42 kB / 418.1 MB, free: 17.19 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2505, allocations: 0 / 418.1 MB, free: 17.19 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.099/3.349, allocations: 2.699 MB / 420.8 MB, free: 14.49 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoise_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,uniformNoise2_y Variables in the result:globalSeed.enableNoise,globalSeed.fixedSeed,globalSeed.id_impure,globalSeed.seed,globalSeed.useAutomaticSeed,time,uniformNoise1.actualGlobalSeed,uniformNoise1.enableNoise,uniformNoise1.fixedLocalSeed,uniformNoise1.generateNoise,uniformNoise1.localSeed,uniformNoise1.r,uniformNoise1.r_raw,uniformNoise1.samplePeriod,uniformNoise1.startTime,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.useAutomaticLocalSeed,uniformNoise1.useGlobalSeed,uniformNoise1.y,uniformNoise1.y_max,uniformNoise1.y_min,uniformNoise1.y_off,uniformNoise2.actualGlobalSeed,uniformNoise2.enableNoise,uniformNoise2.fixedLocalSeed,uniformNoise2.generateNoise,uniformNoise2.localSeed,uniformNoise2.r,uniformNoise2.r_raw,uniformNoise2.samplePeriod,uniformNoise2.startTime,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.useAutomaticLocalSeed,uniformNoise2.useGlobalSeed,uniformNoise2.y,uniformNoise2.y_max,uniformNoise2.y_min,uniformNoise2.y_off,uniformNoise2_y