Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00107/0.00107, allocations: 47.03 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08779/0.08888, allocations: 49.44 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002652/0.09157, allocations: 1.478 MB / 351.6 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.09269, allocations: 0.5783 MB / 352.2 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.58e-05/0.09277, allocations: 0 / 352.2 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.909e-05/0.09288, allocations: 7.875 kB / 352.2 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.368e-05/0.09295, allocations: 19.8 kB / 352.2 MB, free: 2.234 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0006034/0.09356, allocations: 143.6 kB / 352.4 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.09371, allocations: 115.6 kB / 352.5 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.708e-05/0.09377, allocations: 9.109 kB / 352.5 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.892e-05/0.09385, allocations: 55.83 kB / 352.6 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005129/0.09437, allocations: 71 kB / 352.6 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.106e-05/0.09441, allocations: 8 kB / 352.6 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002263/0.09464, allocations: 111.8 kB / 352.7 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.246e-05/0.09471, allocations: 39.83 kB / 352.8 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.985e-05/0.09479, allocations: 51.67 kB / 352.8 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003304/0.09513, allocations: 195.7 kB / 353 MB, free: 1.449 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.09514, allocations: 8 kB / 353 MB, free: 1.441 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.09515, allocations: 0 / 353 MB, free: 1.441 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.09516, allocations: 0 / 353 MB, free: 1.441 MB / 286.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.000638/0.09581, allocations: 454.8 kB / 353.5 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.09585, allocations: 8.031 kB / 353.5 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.802e-05/0.09592, allocations: 46.67 kB / 353.5 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003285/0.09626, allocations: 40.72 kB / 353.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.09642, allocations: 192.6 kB / 353.8 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.162e-05/0.09646, allocations: 20.09 kB / 353.8 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/0.09649, allocations: 8 kB / 353.8 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002336/0.09673, allocations: 119.3 kB / 353.9 MB, free: 476 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.09675, allocations: 0 / 353.9 MB, free: 476 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.09677, allocations: 0 / 353.9 MB, free: 476 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.09678, allocations: 4 kB / 353.9 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001789/0.09696, allocations: 55.95 kB / 354 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007081/0.09768, allocations: 452.7 kB / 354.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.098, allocations: 129.2 kB / 354.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.09813, allocations: 57.78 kB / 354.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.14e-05/0.09815, allocations: 3.938 kB / 354.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.09842, allocations: 139.7 kB / 354.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.09843, allocations: 4 kB / 354.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005372/0.09898, allocations: 237.4 kB / 355 MB, free: 15.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.098e-05/0.09905, allocations: 89.09 kB / 355 MB, free: 15.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.09922, allocations: 178.1 kB / 355.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.073e-05/0.09927, allocations: 49.69 kB / 355.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.08e-05/0.09934, allocations: 112.5 kB / 355.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.051e-05/0.09939, allocations: 35.55 kB / 355.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.111e-05/0.09949, allocations: 65.92 kB / 355.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.09966, allocations: 326.8 kB / 355.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002095/0.09987, allocations: 92.41 kB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.1001, allocations: 136.3 kB / 356 MB, free: 14.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003954/0.1005, allocations: 211.5 kB / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.1005, allocations: 0 / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005014/0.1011, allocations: 289.3 kB / 356.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.1011, allocations: 7.938 kB / 356.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.689e-06/0.1011, allocations: 0 / 356.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.1011, allocations: 4 kB / 356.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.1013, allocations: 35.98 kB / 356.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.467e-06/0.1013, allocations: 3.938 kB / 356.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.187e-05/0.1014, allocations: 31.72 kB / 356.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.1014, allocations: 4 kB / 356.6 MB, free: 13.59 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.0001538/0.1016, allocations: 149.8 kB / 356.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.914e-05/0.1016, allocations: 15.81 kB / 356.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.538e-05/0.1017, allocations: 13.41 kB / 356.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1017, allocations: 4 kB / 356.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.1017, allocations: 3.938 kB / 356.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1017, allocations: 0 / 356.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.1019, allocations: 205.6 kB / 357 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1019, allocations: 0 / 357 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.801e-05/0.102, allocations: 8 kB / 357 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.102, allocations: 0 / 357 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.102, allocations: 3.984 kB / 357 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.102, allocations: 4 kB / 357 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.102, allocations: 11.81 kB / 357 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003506/0.1024, allocations: 217.7 kB / 357.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.658e-05/0.1024, allocations: 96.92 kB / 357.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.129e-05/0.1025, allocations: 4 kB / 357.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.083e-05/0.1025, allocations: 7.984 kB / 357.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.639e-05/0.1026, allocations: 15.92 kB / 357.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.1026, allocations: 8 kB / 357.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.874e-05/0.1027, allocations: 128.2 kB / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1027, allocations: 0 / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.1031, allocations: 51.98 kB / 357.5 MB, free: 12.55 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.001056/0.1041, allocations: 0.9214 MB / 358.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003896/0.1045, allocations: 195.8 kB / 358.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1045, allocations: 3.938 kB / 358.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.1047, allocations: 59.97 kB / 358.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001687/0.1049, allocations: 7.938 kB / 358.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00258/0.1074, allocations: 2.085 MB / 360.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.1078, allocations: 0.708 MB / 361.5 MB, free: 8.461 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.666e-05/0.1079, allocations: 20.81 kB / 361.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.801e-05/0.108, allocations: 43.42 kB / 361.6 MB, free: 8.398 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.108, allocations: 0 / 361.6 MB, free: 8.398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02127/0.1293, allocations: 3.566 MB / 365.1 MB, free: 4.891 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.32/7.449, allocations: 3.75 kB / 365.1 MB, free: 4.891 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches