Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.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.0008465/0.0008465, allocations: 80.06 kB / 20.67 MB, free: 3.879 MB / 18.57 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.001191/0.001191, allocations: 149.1 kB / 23.93 MB, free: 0.6211 MB / 18.57 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 0.8745/0.8745, allocations: 173.4 MB / 200.5 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 4 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.833e-05/2.1e-05, allocations: 6.219 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001691/0.001712, allocations: 1.211 MB / 319.6 MB, free: 5.137 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007119/0.002424, allocations: 449 kB / 320.1 MB, free: 4.699 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.6e-05/0.00245, allocations: 4 kB / 320.1 MB, free: 4.695 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.19e-05/0.002482, allocations: 3.938 kB / 320.1 MB, free: 4.691 MB / 282.7 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.typeBindings: time 0.0004215/0.002904, allocations: 79.7 kB / 320.2 MB, free: 4.613 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.642e-05/0.003, allocations: 67.62 kB / 320.2 MB, free: 4.547 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.366e-05/0.003084, allocations: 47.89 kB / 320.3 MB, free: 4.5 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.498e-05/0.003119, allocations: 0 / 320.3 MB, free: 4.5 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.298e-05/0.003162, allocations: 27.92 kB / 320.3 MB, free: 4.473 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.13e-05/0.003193, allocations: 23.95 kB / 320.3 MB, free: 4.449 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.207e-05/0.003205, allocations: 4 kB / 320.3 MB, free: 4.445 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001972/0.003402, allocations: 151.6 kB / 320.5 MB, free: 4.297 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.92e-05/0.003442, allocations: 31.94 kB / 320.5 MB, free: 4.266 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.603e-05/0.003478, allocations: 35.84 kB / 320.5 MB, free: 4.23 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001922/0.00367, allocations: 191.3 kB / 320.7 MB, free: 4.043 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.003672, allocations: 0 / 320.7 MB, free: 4.043 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.003673, allocations: 0 / 320.7 MB, free: 4.043 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.516e-06/0.003677, allocations: 0 / 320.7 MB, free: 4.043 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0003961/0.004073, allocations: 488.1 kB / 321.2 MB, free: 3.523 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.004106, allocations: 8.922 kB / 321.2 MB, free: 3.516 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.542e-05/0.004171, allocations: 66.56 kB / 321.3 MB, free: 3.441 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.437e-05/0.004256, allocations: 24.84 kB / 321.3 MB, free: 3.418 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.228e-05/0.004338, allocations: 121.6 kB / 321.4 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.00435, allocations: 4.375 kB / 321.4 MB, free: 3.27 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.004361, allocations: 4.375 kB / 321.4 MB, free: 3.266 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.004634, allocations: 406.6 kB / 321.8 MB, free: 2.84 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.004641, allocations: 4.188 kB / 321.8 MB, free: 2.836 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.004652, allocations: 384 / 321.8 MB, free: 2.836 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.004657, allocations: 4.125 kB / 321.8 MB, free: 2.832 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001554/0.004813, allocations: 275.6 kB / 322.1 MB, free: 2.547 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002539/0.005067, allocations: 340.8 kB / 322.4 MB, free: 2.168 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002059/0.005273, allocations: 308.8 kB / 322.7 MB, free: 1.836 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.005434, allocations: 285.4 kB / 323 MB, free: 1.539 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.005443, allocations: 0 / 323 MB, free: 1.539 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003714/0.005814, allocations: 0.5844 MB / 323.6 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 1.523e-06/0.005816, allocations: 0 / 323.6 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007354/0.006551, allocations: 0.9937 MB / 324.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.411e-05/0.006625, allocations: 164.5 kB / 324.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.073e-05/0.006686, allocations: 101.9 kB / 324.9 MB, free: 15.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.006698, allocations: 33.7 kB / 324.9 MB, free: 15.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.86e-05/0.006727, allocations: 81.14 kB / 325 MB, free: 15.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.769e-05/0.006784, allocations: 103.1 kB / 325.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.22e-05/0.006827, allocations: 41.7 kB / 325.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.717e-05/0.006904, allocations: 330.8 kB / 325.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.007014, allocations: 203.8 kB / 325.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.007134, allocations: 232 kB / 325.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/0.007386, allocations: 484.8 kB / 326.3 MB, free: 14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.007388, allocations: 4 kB / 326.3 MB, free: 14 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003073/0.007695, allocations: 0.4998 MB / 326.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.258e-05/0.007758, allocations: 111.4 kB / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.007762, allocations: 432 / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.007775, allocations: 4 kB / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.4e-05/0.007829, allocations: 11.92 kB / 327 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.007834, allocations: 3.938 kB / 327 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.667e-05/0.007871, allocations: 23.84 kB / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.007883, allocations: 8 kB / 327 MB, free: 13.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],r1024,r128,r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.0001565/0.00804, allocations: 275.8 kB / 327.3 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.331e-05/0.008073, allocations: 31.84 kB / 327.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.767e-05/0.008091, allocations: 13.62 kB / 327.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.008092, allocations: 0 / 327.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.008096, allocations: 0 / 327.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.0081, allocations: 4 kB / 327.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006729/0.008773, allocations: 1.035 MB / 328.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.008774, allocations: 4 kB / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.637e-05/0.008791, allocations: 8.062 kB / 328.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.008793, allocations: 0 / 328.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.008813, allocations: 19.98 kB / 328.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.008815, allocations: 7.938 kB / 328.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.008816, allocations: 0 / 328.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006192/0.009436, allocations: 0.9684 MB / 329.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.482e-05/0.00945, allocations: 19.84 kB / 329.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.711e-05/0.009517, allocations: 67.94 kB / 329.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.754e-05/0.009565, allocations: 8 kB / 329.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.0096, allocations: 23.92 kB / 329.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.009616, allocations: 19.98 kB / 329.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.612e-05/0.009642, allocations: 79.28 kB / 329.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009643, allocations: 0 / 329.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002436/0.009886, allocations: 87.94 kB / 329.7 MB, free: 10.51 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition1,rImpure,iImpure,$whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33]) * Number of discrete states: 43 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.001441/0.01133, allocations: 2.128 MB / 331.8 MB, free: 8.348 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000614/0.01194, allocations: 0.8737 MB / 332.7 MB, free: 7.426 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.01194, allocations: 0 / 332.7 MB, free: 7.426 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003238/0.01227, allocations: 0.541 MB / 333.2 MB, free: 6.848 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000186/0.01245, allocations: 27.98 kB / 333.2 MB, free: 6.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/0.01473, allocations: 3.561 MB / 336.8 MB, free: 3.082 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.506e-05/0.0148, allocations: 110.9 kB / 336.9 MB, free: 2.957 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.268e-05/0.01482, allocations: 4 kB / 336.9 MB, free: 2.953 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.308e-05/0.01486, allocations: 36.48 kB / 336.9 MB, free: 2.918 MB / 298.7 MB Notification: Performance of SimCode: time 4.5e-07/0.01486, allocations: 4.062 kB / 336.9 MB, free: 2.914 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02262/0.03748, allocations: 5.592 MB / 342.5 MB, free: 13.43 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.735/6.772, allocations: 7.156 kB / 342.5 MB, free: 13.43 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,r1024,r128,r64 Variables in the result:globalSeed,iImpure,id,localSeed,r1024,r128,r64,rImpure,samplePeriod,time [Calling sys.exit(0), Time elapsed: 8.440134463831782]