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.001368/0.001368, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001742/0.001742, allocations: 214.2 kB / 23.74 MB, free: 4.656 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.545/1.545, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.00182/0.00182, allocations: 51.92 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3149, allocations: 53.36 MB / 431.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.004564/0.3195, allocations: 1.502 MB / 432.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.3214, allocations: 0.604 MB / 433.2 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.3215, allocations: 8 kB / 433.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.3217, allocations: 7.875 kB / 433.3 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.3218, allocations: 15.8 kB / 433.3 MB, free: 4.73 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.0012/0.323, allocations: 151.6 kB / 433.4 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004366/0.3235, allocations: 111.7 kB / 433.5 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.3236, allocations: 5.312 kB / 433.5 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.3237, allocations: 43.84 kB / 433.6 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009726/0.3247, allocations: 81.89 kB / 433.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.609e-05/0.3248, allocations: 11.94 kB / 433.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004467/0.3252, allocations: 151.8 kB / 433.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.3253, allocations: 35.84 kB / 433.9 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.3255, allocations: 51.67 kB / 433.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005517/0.3261, allocations: 191.7 kB / 434.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.3261, allocations: 0 / 434.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3261, allocations: 0 / 434.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.322e-05/0.3261, allocations: 4 kB / 434.1 MB, free: 3.918 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.0008779/0.327, allocations: 385.4 kB / 434.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.327, allocations: 11.97 kB / 434.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.633e-05/0.3271, allocations: 50.73 kB / 434.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003727/0.3275, allocations: 40.81 kB / 434.6 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002066/0.3277, allocations: 143.1 kB / 434.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.3277, allocations: 384 / 434.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.18e-05/0.3277, allocations: 16.36 kB / 434.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002684/0.328, allocations: 115.2 kB / 434.8 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.328, allocations: 0 / 434.8 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.328, allocations: 4 kB / 434.8 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.328, allocations: 7.984 kB / 434.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.3282, allocations: 55.91 kB / 434.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007442/0.329, allocations: 419.9 kB / 435.3 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003352/0.3293, allocations: 121.2 kB / 435.4 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.3294, allocations: 53.75 kB / 435.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.3294, allocations: 4 kB / 435.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002972/0.3297, allocations: 141 kB / 435.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.362e-06/0.3297, allocations: 0 / 435.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005998/0.3303, allocations: 241.5 kB / 435.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.127e-05/0.3304, allocations: 93.09 kB / 436 MB, free: 1.867 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.3306, allocations: 174.2 kB / 436.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.979e-05/0.3307, allocations: 49.69 kB / 436.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.036e-05/0.3308, allocations: 108.5 kB / 436.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.916e-05/0.3308, allocations: 43.62 kB / 436.3 MB, free: 1.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.3309, allocations: 57.92 kB / 436.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.3311, allocations: 334.8 kB / 436.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.3313, allocations: 96.45 kB / 436.8 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.3315, allocations: 128.4 kB / 436.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003641/0.3319, allocations: 211.4 kB / 437.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3319, allocations: 0 / 437.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005263/0.3324, allocations: 293.4 kB / 437.4 MB, free: 348 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.3324, allocations: 8 kB / 437.4 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.3324, allocations: 0 / 437.4 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/0.3325, allocations: 4 kB / 437.4 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.3326, allocations: 31.92 kB / 437.5 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.3326, allocations: 0 / 437.5 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.225e-05/0.3327, allocations: 27.81 kB / 437.5 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.3327, allocations: 4 kB / 437.5 MB, free: 272 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.0001845/0.3329, allocations: 158.1 kB / 437.6 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.972e-05/0.3329, allocations: 15.91 kB / 437.7 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.731e-05/0.333, allocations: 13.41 kB / 437.7 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.333, allocations: 3.938 kB / 437.7 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.333, allocations: 0 / 437.7 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.333, allocations: 7.875 kB / 437.7 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002518/0.3332, allocations: 180.6 kB / 437.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3333, allocations: 4 kB / 437.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.513e-05/0.3333, allocations: 8 kB / 437.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3333, allocations: 0 / 437.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.3333, allocations: 7.984 kB / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3333, allocations: 4 kB / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3333, allocations: 480 / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000388/0.3337, allocations: 232.3 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.54e-05/0.3337, allocations: 15.91 kB / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.897e-05/0.3338, allocations: 4 kB / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.564e-05/0.3338, allocations: 7.984 kB / 438.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.587e-05/0.3339, allocations: 15.92 kB / 438.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.3339, allocations: 4 kB / 438.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001249/0.334, allocations: 128.2 kB / 438.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.334, allocations: 0 / 438.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003325/0.3344, allocations: 51.92 kB / 438.3 MB, free: 15.35 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.001224/0.3356, allocations: 0.9071 MB / 439.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000397/0.336, allocations: 179.8 kB / 439.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.336, allocations: 4 kB / 439.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001314/0.3361, allocations: 56.03 kB / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001623/0.3363, allocations: 15.06 kB / 439.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002708/0.339, allocations: 2.092 MB / 441.6 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007134/0.3397, allocations: 0.7195 MB / 442.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.091e-05/0.3398, allocations: 17.03 kB / 442.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.768e-05/0.3399, allocations: 39.42 kB / 442.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3399, allocations: 0 / 442.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03424/0.3741, allocations: 3.854 MB / 446.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.82, allocations: 6.891 kB / 446.2 MB, free: 7.477 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_Noise_UniformNoise_fmu --startTime=0 --stopTime=2 --stepSize=0.00039208 --timeout=50 --tolerance=1e-06 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.mat","/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.412377698812634]