Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.Noise.UniformNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 111.1 kB / 20.44 MB, free: 1.336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 211.6 kB / 23.73 MB, free: 4.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.537/1.537, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 47.92 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3261, allocations: 53.37 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.00303/0.3291, allocations: 1.48 MB / 432.6 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.3305, allocations: 0.5806 MB / 433.1 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.187e-05/0.3305, allocations: 0 / 433.1 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000115/0.3306, allocations: 11.81 kB / 433.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.504e-05/0.3307, allocations: 15.86 kB / 433.2 MB, free: 4.574 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0006313/0.3313, allocations: 151.5 kB / 433.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.3315, allocations: 115.7 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.381e-05/0.3316, allocations: 5.312 kB / 433.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.885e-05/0.3316, allocations: 51.78 kB / 433.5 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000665/0.3323, allocations: 85.16 kB / 433.6 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.854e-05/0.3323, allocations: 12 kB / 433.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003081/0.3327, allocations: 147.7 kB / 433.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.46e-05/0.3327, allocations: 31.91 kB / 433.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.137e-05/0.3328, allocations: 43.73 kB / 433.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003529/0.3331, allocations: 193.1 kB / 434 MB, free: 3.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3331, allocations: 0 / 434 MB, free: 3.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3331, allocations: 0 / 434 MB, free: 3.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.3332, allocations: 8 kB / 434 MB, free: 3.75 MB / 334.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.0006964/0.3338, allocations: 385.4 kB / 434.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.3339, allocations: 8.031 kB / 434.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.367e-05/0.334, allocations: 42.73 kB / 434.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002996/0.3343, allocations: 40.81 kB / 434.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.3344, allocations: 139.1 kB / 434.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.578e-05/0.3345, allocations: 12.36 kB / 434.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.3345, allocations: 4.375 kB / 434.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.3347, allocations: 123.2 kB / 434.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.3347, allocations: 0 / 434.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.3347, allocations: 0 / 434.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.3347, allocations: 0 / 434.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.3349, allocations: 63.88 kB / 434.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006998/0.3356, allocations: 407.9 kB / 435.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/0.3359, allocations: 121.2 kB / 435.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.336, allocations: 53.75 kB / 435.4 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.3361, allocations: 0 / 435.4 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/0.3363, allocations: 137 kB / 435.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.363e-06/0.3363, allocations: 3.938 kB / 435.5 MB, free: 2.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005402/0.3369, allocations: 241.6 kB / 435.7 MB, free: 1.836 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.815e-05/0.337, allocations: 97.03 kB / 435.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.3371, allocations: 170.3 kB / 436 MB, free: 1.547 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.423e-05/0.3372, allocations: 49.62 kB / 436 MB, free: 1.492 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.978e-05/0.3373, allocations: 104.6 kB / 436.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.25e-05/0.3373, allocations: 51.61 kB / 436.2 MB, free: 1.336 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.988e-05/0.3374, allocations: 53.92 kB / 436.3 MB, free: 1.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.3376, allocations: 334.8 kB / 436.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.3377, allocations: 92.47 kB / 436.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/0.3379, allocations: 128.4 kB / 436.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003655/0.3383, allocations: 219.3 kB / 437 MB, free: 500 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3383, allocations: 0 / 437 MB, free: 500 kB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004894/0.3388, allocations: 297.4 kB / 437.3 MB, free: 196 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.3388, allocations: 4 kB / 437.3 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3388, allocations: 0 / 437.3 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.3388, allocations: 8.062 kB / 437.3 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/0.339, allocations: 23.98 kB / 437.3 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.339, allocations: 3.938 kB / 437.3 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.562e-05/0.3391, allocations: 23.83 kB / 437.4 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.029e-05/0.3391, allocations: 7.984 kB / 437.4 MB, free: 124 kB / 334.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.0001796/0.3393, allocations: 149.9 kB / 437.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.742e-05/0.3393, allocations: 11.91 kB / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.3393, allocations: 13.41 kB / 437.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.3393, allocations: 4 kB / 437.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3393, allocations: 0 / 437.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3393, allocations: 7.938 kB / 437.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001995/0.3395, allocations: 172.6 kB / 437.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3395, allocations: 7.922 kB / 437.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.257e-05/0.3396, allocations: 8 kB / 437.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3396, allocations: 0 / 437.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.3396, allocations: 4 kB / 437.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3396, allocations: 0 / 437.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.3396, allocations: 3.984 kB / 437.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003655/0.34, allocations: 225 kB / 438 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.33e-05/0.34, allocations: 19.89 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.021e-05/0.34, allocations: 8 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.142e-05/0.3401, allocations: 3.984 kB / 438 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.106e-05/0.3402, allocations: 23.86 kB / 438 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.3402, allocations: 8 kB / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001113/0.3403, allocations: 124.2 kB / 438.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3403, allocations: 0 / 438.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.3406, allocations: 51.92 kB / 438.2 MB, free: 15.22 MB / 350.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.00123/0.3418, allocations: 0.9149 MB / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004247/0.3422, allocations: 179.8 kB / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.3422, allocations: 4 kB / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.3424, allocations: 47.97 kB / 439.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001752/0.3425, allocations: 11.94 kB / 439.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.3451, allocations: 2.099 MB / 441.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.699e-05/0.3452, allocations: 98.27 kB / 441.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.953e-05/0.3452, allocations: 16.97 kB / 441.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.749e-05/0.3453, allocations: 35.42 kB / 441.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3453, allocations: 4 kB / 441.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0321/0.3774, allocations: 4.288 MB / 445.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.55, allocations: 12.67 kB / 445.9 MB, free: 7.547 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.Noise.UniformNoise.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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.00039208 Modelica_4_1_0_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.197048249974614]