Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.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 trunk/package.mo", uses=false) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00144/0.00144, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001749/0.001749, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 63.23 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08237/0.08357, allocations: 50.52 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002417/0.08602, allocations: 1.498 MB / 359.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001016/0.08706, allocations: 0.5785 MB / 359.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.807e-05/0.08712, allocations: 0 / 359.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.04e-05/0.08723, allocations: 7.875 kB / 359.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.587e-05/0.08729, allocations: 19.81 kB / 359.7 MB, free: 11.91 MB / 302.1 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.000491/0.08779, allocations: 143.6 kB / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.08791, allocations: 107.7 kB / 359.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.624e-05/0.08797, allocations: 9.125 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.345e-05/0.08803, allocations: 51.77 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005019/0.08854, allocations: 77.33 kB / 360.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.786e-05/0.08857, allocations: 12 kB / 360.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002023/0.08878, allocations: 107.8 kB / 360.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.044e-05/0.08884, allocations: 31.91 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.702e-05/0.08891, allocations: 51.67 kB / 360.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.0892, allocations: 207.6 kB / 360.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.08921, allocations: 0 / 360.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.08922, allocations: 0 / 360.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.08923, allocations: 3.984 kB / 360.5 MB, free: 11.13 MB / 302.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.0005832/0.08982, allocations: 454.8 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.08986, allocations: 8.031 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.305e-05/0.08992, allocations: 38.75 kB / 360.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002994/0.09022, allocations: 40.72 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.09037, allocations: 204 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.0904, allocations: 4.375 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.107e-05/0.09043, allocations: 8.375 kB / 361.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.09064, allocations: 119.3 kB / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.09066, allocations: 0 / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.09068, allocations: 0 / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.106e-06/0.09069, allocations: 4 kB / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000173/0.09087, allocations: 63.89 kB / 361.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006054/0.09148, allocations: 452.7 kB / 361.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/0.09179, allocations: 129.2 kB / 361.9 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.0919, allocations: 53.7 kB / 362 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.09192, allocations: 3.984 kB / 362 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.09216, allocations: 137.1 kB / 362.1 MB, free: 9.242 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.645e-06/0.09218, allocations: 0 / 362.1 MB, free: 9.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004883/0.09267, allocations: 237.6 kB / 362.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.09273, allocations: 97.03 kB / 362.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.09288, allocations: 182.2 kB / 362.6 MB, free: 8.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.09293, allocations: 49.7 kB / 362.7 MB, free: 8.648 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.651e-05/0.09299, allocations: 104.5 kB / 362.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.761e-05/0.09303, allocations: 43.53 kB / 362.8 MB, free: 8.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.877e-05/0.09312, allocations: 57.92 kB / 362.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.503e-05/0.09322, allocations: 330.8 kB / 363.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.0934, allocations: 100.5 kB / 363.3 MB, free: 8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001908/0.0936, allocations: 130 kB / 363.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003346/0.09395, allocations: 218.8 kB / 363.7 MB, free: 7.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.09396, allocations: 4 kB / 363.7 MB, free: 7.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004519/0.09442, allocations: 285.3 kB / 363.9 MB, free: 7.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.09444, allocations: 8 kB / 363.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.09446, allocations: 0 / 363.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.09447, allocations: 4 kB / 363.9 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.09462, allocations: 23.98 kB / 364 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.09464, allocations: 3.938 kB / 364 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.806e-05/0.09472, allocations: 27.77 kB / 364 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.09474, allocations: 8 kB / 364 MB, free: 7.277 MB / 302.1 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,globalSeed.seed,uniformNoise2.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise1.localSeed,globalSeed.id_impure,uniformNoise2.r_raw,$PRE.uniformNoise2.r_raw,uniformNoise2.r,$PRE.uniformNoise2.r,uniformNoise2.state[4],$PRE.uniformNoise2.state[4],uniformNoise2.state[3],$PRE.uniformNoise2.state[3],uniformNoise2.state[2],$PRE.uniformNoise2.state[2],uniformNoise2.state[1],$PRE.uniformNoise2.state[1],uniformNoise1.r_raw,$PRE.uniformNoise1.r_raw,uniformNoise1.r,$PRE.uniformNoise1.r,uniformNoise1.state[4],$PRE.uniformNoise1.state[4],uniformNoise1.state[3],$PRE.uniformNoise1.state[3],uniformNoise1.state[2],$PRE.uniformNoise1.state[2],uniformNoise1.state[1],$PRE.uniformNoise1.state[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001194/0.09487, allocations: 150.9 kB / 364.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.543e-05/0.0949, allocations: 11.81 kB / 364.2 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.94e-05/0.09493, allocations: 17.39 kB / 364.2 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.09494, allocations: 0 / 364.2 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.09495, allocations: 3.938 kB / 364.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.09496, allocations: 3.938 kB / 364.2 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001754/0.09514, allocations: 209.6 kB / 364.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.09515, allocations: 3.938 kB / 364.4 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.964e-05/0.09521, allocations: 15.98 kB / 364.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.09522, allocations: 4.094 kB / 364.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.09523, allocations: 0 / 364.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.09524, allocations: 4 kB / 364.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.09525, allocations: 3.984 kB / 364.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003292/0.09558, allocations: 224.4 kB / 364.7 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.773e-05/0.09564, allocations: 88.92 kB / 364.7 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.09567, allocations: 15.98 kB / 364.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.725e-05/0.09574, allocations: 4 kB / 364.8 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.09579, allocations: 19.86 kB / 364.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.802e-06/0.0958, allocations: 0 / 364.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.239e-05/0.0959, allocations: 132.2 kB / 364.9 MB, free: 6.289 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09591, allocations: 0 / 364.9 MB, free: 6.289 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002724/0.09619, allocations: 44 kB / 364.9 MB, free: 6.246 MB / 302.1 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 (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.0009467/0.09714, allocations: 0.9096 MB / 365.9 MB, free: 5.328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003794/0.09753, allocations: 196.2 kB / 366 MB, free: 5.137 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.09754, allocations: 0 / 366 MB, free: 5.137 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.09768, allocations: 59.97 kB / 366.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001722/0.09786, allocations: 12.06 kB / 366.1 MB, free: 5.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.1, allocations: 2.092 MB / 368.2 MB, free: 2.875 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.1002, allocations: 0.708 MB / 368.9 MB, free: 2.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.591e-05/0.1003, allocations: 20.81 kB / 368.9 MB, free: 2.117 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.515e-05/0.1004, allocations: 43.41 kB / 369 MB, free: 2.074 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1004, allocations: 0 / 369 MB, free: 2.074 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1504/0.2508, allocations: 3.555 MB / 372.5 MB, free: 19.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.535/7.786, allocations: 4.5 kB / 372.5 MB, free: 19.74 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches