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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002053/0.002053, allocations: 184.4 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 51.92 kB / 370.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3689, allocations: 52.17 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002796/0.3717, allocations: 1.496 MB / 424.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.3729, allocations: 0.599 MB / 424.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.702e-05/0.373, allocations: 0 / 424.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.666e-05/0.3731, allocations: 11.81 kB / 424.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.755e-05/0.3731, allocations: 15.86 kB / 424.7 MB, free: 12.48 MB / 334.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.0005831/0.3737, allocations: 155.5 kB / 424.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001653/0.3739, allocations: 111.7 kB / 425 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.984e-05/0.3739, allocations: 5.312 kB / 425 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.564e-05/0.374, allocations: 47.84 kB / 425.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006059/0.3746, allocations: 74.81 kB / 425.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.3746, allocations: 11.94 kB / 425.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003094/0.3749, allocations: 151.7 kB / 425.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.724e-05/0.375, allocations: 35.84 kB / 425.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.928e-05/0.3751, allocations: 59.61 kB / 425.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00036/0.3754, allocations: 191.7 kB / 425.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3754, allocations: 4 kB / 425.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3754, allocations: 0 / 425.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.3755, allocations: 0 / 425.6 MB, free: 11.66 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.0007696/0.3762, allocations: 385.4 kB / 426 MB, free: 11.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.3763, allocations: 12.02 kB / 426 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.841e-05/0.3763, allocations: 38.75 kB / 426 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003184/0.3767, allocations: 44.81 kB / 426 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.3768, allocations: 146.2 kB / 426.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.3769, allocations: 15.94 kB / 426.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.3769, allocations: 4 kB / 426.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002437/0.3771, allocations: 111.3 kB / 426.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.3771, allocations: 0 / 426.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.3771, allocations: 7.984 kB / 426.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.3772, allocations: 0 / 426.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.3773, allocations: 63.89 kB / 426.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007123/0.378, allocations: 419.9 kB / 426.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.3783, allocations: 129.2 kB / 426.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.3784, allocations: 45.77 kB / 427 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.3785, allocations: 0 / 427 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002709/0.3787, allocations: 145 kB / 427.1 MB, free: 9.965 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.032e-06/0.3787, allocations: 0 / 427.1 MB, free: 9.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005109/0.3792, allocations: 237.6 kB / 427.3 MB, free: 9.727 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.525e-05/0.3793, allocations: 93.03 kB / 427.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.3795, allocations: 170.2 kB / 427.6 MB, free: 9.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.385e-05/0.3795, allocations: 53.69 kB / 427.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.496e-05/0.3796, allocations: 112.5 kB / 427.8 MB, free: 9.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.359e-05/0.3797, allocations: 51.61 kB / 427.8 MB, free: 9.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.502e-05/0.3797, allocations: 57.92 kB / 427.9 MB, free: 9.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.3799, allocations: 326.8 kB / 428.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001995/0.3801, allocations: 96.45 kB / 428.3 MB, free: 8.727 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.3803, allocations: 132.3 kB / 428.4 MB, free: 8.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003384/0.3806, allocations: 211.4 kB / 428.6 MB, free: 8.375 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.3807, allocations: 4 kB / 428.6 MB, free: 8.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005191/0.3812, allocations: 289.5 kB / 428.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.3812, allocations: 8 kB / 428.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.3812, allocations: 0 / 428.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.3812, allocations: 4 kB / 428.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.3814, allocations: 39.8 kB / 429 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.3814, allocations: 0 / 429 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.62e-05/0.3814, allocations: 27.83 kB / 429 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.3815, allocations: 4 kB / 429 MB, free: 8 MB / 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.0001587/0.3816, allocations: 153.9 kB / 429.1 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.453e-05/0.3816, allocations: 11.91 kB / 429.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.404e-05/0.3817, allocations: 13.41 kB / 429.2 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.3817, allocations: 3.938 kB / 429.2 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3817, allocations: 3.938 kB / 429.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.3817, allocations: 4 kB / 429.2 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000203/0.3819, allocations: 176.7 kB / 429.3 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3819, allocations: 0 / 429.3 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.485e-05/0.3819, allocations: 11.94 kB / 429.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.3819, allocations: 4 kB / 429.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.382, allocations: 7.984 kB / 429.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.382, allocations: 3.938 kB / 429.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.382, allocations: 0 / 429.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003451/0.3823, allocations: 218.2 kB / 429.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.976e-05/0.3823, allocations: 15.91 kB / 429.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.3824, allocations: 16 kB / 429.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.417e-05/0.3824, allocations: 7.922 kB / 429.6 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.503e-05/0.3825, allocations: 19.92 kB / 429.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-06/0.3825, allocations: 0 / 429.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.3826, allocations: 140.2 kB / 429.8 MB, free: 7.129 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3826, allocations: 0 / 429.8 MB, free: 7.129 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002796/0.3829, allocations: 43.94 kB / 429.8 MB, free: 7.086 MB / 334.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.00116/0.384, allocations: 0.9119 MB / 430.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003989/0.3844, allocations: 179.8 kB / 430.9 MB, free: 6 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3844, allocations: 0 / 430.9 MB, free: 6 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.3846, allocations: 51.97 kB / 431 MB, free: 5.949 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.3847, allocations: 15.03 kB / 431 MB, free: 5.938 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.3873, allocations: 2.095 MB / 433.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003849/0.3877, allocations: 0.7158 MB / 433.8 MB, free: 3 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.569e-05/0.3878, allocations: 16.97 kB / 433.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.754e-05/0.3879, allocations: 35.42 kB / 433.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3879, allocations: 0 / 433.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03254/0.4204, allocations: 3.845 MB / 437.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.41, allocations: 18.38 kB / 437.7 MB, free: 15.21 MB / 350.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise_fmu --startTime=0 --stopTime=2 --stepSize=0.00039208 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.943857982987538]