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.001143/0.001143, allocations: 110.1 kB / 17.06 MB, free: 6.016 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.00124/0.00124, allocations: 191 kB / 18 MB, free: 5.102 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.354/1.354, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3277, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.00326/0.331, allocations: 1.463 MB / 401.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.3323, allocations: 0.5862 MB / 402.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.078e-05/0.3324, allocations: 0 / 402.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.3325, allocations: 7.875 kB / 402.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.252e-05/0.3327, allocations: 23.8 kB / 402.3 MB, free: 6.719 MB / 318.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.0006522/0.3333, allocations: 143.6 kB / 402.5 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001656/0.3335, allocations: 115.6 kB / 402.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.015e-05/0.3335, allocations: 13.09 kB / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.62e-05/0.3336, allocations: 47.84 kB / 402.6 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005558/0.3342, allocations: 85.39 kB / 402.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.565e-05/0.3342, allocations: 8 kB / 402.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002116/0.3344, allocations: 111.8 kB / 402.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.188e-05/0.3345, allocations: 31.86 kB / 402.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.048e-05/0.3346, allocations: 55.66 kB / 402.9 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003182/0.3349, allocations: 198.4 kB / 403.1 MB, free: 5.934 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3349, allocations: 3.938 kB / 403.1 MB, free: 5.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3349, allocations: 0 / 403.1 MB, free: 5.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.3349, allocations: 0 / 403.1 MB, free: 5.93 MB / 318.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.0007131/0.3357, allocations: 466.5 kB / 403.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3357, allocations: 12.03 kB / 403.6 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.195e-05/0.3358, allocations: 34.75 kB / 403.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003246/0.3361, allocations: 40.81 kB / 403.7 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.3363, allocations: 208.1 kB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.3363, allocations: 7.938 kB / 403.9 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.484e-05/0.3363, allocations: 8 kB / 403.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002313/0.3366, allocations: 119.3 kB / 404 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.3366, allocations: 0 / 404 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.3366, allocations: 4 kB / 404 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.3366, allocations: 0 / 404 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001712/0.3368, allocations: 55.95 kB / 404 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006974/0.3375, allocations: 456.7 kB / 404.5 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002935/0.3378, allocations: 121.2 kB / 404.6 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.3379, allocations: 65.77 kB / 404.7 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.338, allocations: 0 / 404.7 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002494/0.3382, allocations: 137.1 kB / 404.8 MB, free: 4.027 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.132e-06/0.3382, allocations: 0 / 404.8 MB, free: 4.027 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005275/0.3388, allocations: 241.5 kB / 405 MB, free: 3.785 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.577e-05/0.3388, allocations: 97.08 kB / 405.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.339, allocations: 182.2 kB / 405.3 MB, free: 3.484 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.042e-05/0.3391, allocations: 41.69 kB / 405.4 MB, free: 3.438 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.854e-05/0.3392, allocations: 112.5 kB / 405.5 MB, free: 3.324 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.946e-05/0.3392, allocations: 39.64 kB / 405.5 MB, free: 3.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.241e-05/0.3393, allocations: 61.91 kB / 405.6 MB, free: 3.215 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3394, allocations: 334.8 kB / 405.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001782/0.3396, allocations: 100.4 kB / 406 MB, free: 2.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.3398, allocations: 128.4 kB / 406.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003358/0.3402, allocations: 207.5 kB / 406.3 MB, free: 2.434 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3402, allocations: 0 / 406.3 MB, free: 2.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004814/0.3407, allocations: 293.4 kB / 406.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.3407, allocations: 4 kB / 406.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3407, allocations: 0 / 406.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.3407, allocations: 4 kB / 406.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.3409, allocations: 35.84 kB / 406.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.3409, allocations: 0 / 406.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.052e-05/0.341, allocations: 27.91 kB / 406.7 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.341, allocations: 4 kB / 406.7 MB, free: 2.066 MB / 318.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.000154/0.3412, allocations: 149.8 kB / 406.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.646e-05/0.3412, allocations: 15.91 kB / 406.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.705e-05/0.3413, allocations: 17.39 kB / 406.9 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.3413, allocations: 3.938 kB / 406.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.3413, allocations: 0 / 406.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3413, allocations: 8 kB / 406.9 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002048/0.3415, allocations: 197.6 kB / 407.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.3415, allocations: 0 / 407.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.807e-05/0.3416, allocations: 11.98 kB / 407.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3416, allocations: 3.938 kB / 407.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.3416, allocations: 8 kB / 407.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.3416, allocations: 7.875 kB / 407.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3416, allocations: 0 / 407.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003615/0.342, allocations: 225.8 kB / 407.3 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.826e-05/0.3421, allocations: 89.02 kB / 407.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/0.3421, allocations: 7.984 kB / 407.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.673e-05/0.3422, allocations: 11.94 kB / 407.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.149e-05/0.3422, allocations: 11.98 kB / 407.4 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.3423, allocations: 7.984 kB / 407.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001163/0.3424, allocations: 136.2 kB / 407.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3424, allocations: 0 / 407.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003059/0.3427, allocations: 43.94 kB / 407.6 MB, free: 1.023 MB / 318.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.001191/0.3439, allocations: 0.9266 MB / 408.5 MB, free: 100 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004274/0.3443, allocations: 187.9 kB / 408.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3444, allocations: 0 / 408.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.3445, allocations: 60 kB / 408.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001912/0.3447, allocations: 16.02 kB / 408.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002518/0.3472, allocations: 2.113 MB / 410.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.3476, allocations: 0.708 MB / 411.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.8e-05/0.3476, allocations: 12.88 kB / 411.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.769e-05/0.3477, allocations: 47.41 kB / 411.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3477, allocations: 0 / 411.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02216/0.3699, allocations: 3.614 MB / 415.3 MB, free: 9.305 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.82/8.19, allocations: 1.281 kB / 415.3 MB, free: 9.305 MB / 334.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