Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001181/0.001181, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009059/0.0009059, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8803/0.8803, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.364e-06/2.364e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.767e-05/3.004e-05, allocations: 4.953 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.00175/0.00178, allocations: 1.243 MB / 325.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007344/0.002515, allocations: 453.3 kB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.308e-05/0.002548, allocations: 0 / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.753e-05/0.002585, allocations: 7.922 kB / 326.2 MB, free: 14.2 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.000505/0.00309, allocations: 71.73 kB / 326.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001466/0.003237, allocations: 71.61 kB / 326.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.977e-05/0.003327, allocations: 43.91 kB / 326.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.111e-05/0.003368, allocations: 4 kB / 326.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.803e-05/0.003416, allocations: 31.89 kB / 326.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.654e-05/0.003452, allocations: 19.97 kB / 326.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.418e-05/0.003466, allocations: 0 / 326.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002394/0.003706, allocations: 159.6 kB / 326.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.044e-05/0.003756, allocations: 35.92 kB / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.293e-05/0.003799, allocations: 27.88 kB / 326.7 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002325/0.004032, allocations: 191.3 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.004035, allocations: 0 / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.004037, allocations: 4 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.004042, allocations: 0 / 326.8 MB, free: 13.55 MB / 298.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.0004665/0.004509, allocations: 476.8 kB / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.004551, allocations: 11.98 kB / 327.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.097e-05/0.004622, allocations: 58.62 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.004722, allocations: 32.75 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.00483, allocations: 121.6 kB / 327.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.004846, allocations: 4.375 kB / 327.5 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.00486, allocations: 8.375 kB / 327.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003326/0.005193, allocations: 402.7 kB / 327.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.005202, allocations: 192 / 327.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.005217, allocations: 4.375 kB / 327.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.005226, allocations: 4.125 kB / 327.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.005407, allocations: 267.6 kB / 328.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000322/0.005729, allocations: 348.8 kB / 328.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.005965, allocations: 308.8 kB / 328.9 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.006142, allocations: 281.4 kB / 329.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.12e-05/0.006153, allocations: 0 / 329.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004693/0.006623, allocations: 0.5845 MB / 329.7 MB, free: 10.42 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.072e-06/0.006624, allocations: 3.938 kB / 329.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0008213/0.007445, allocations: 0.9937 MB / 330.7 MB, free: 9.379 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.595e-05/0.007511, allocations: 160.4 kB / 330.9 MB, free: 9.191 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.604e-05/0.007577, allocations: 106 kB / 331 MB, free: 9.078 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.00759, allocations: 25.7 kB / 331 MB, free: 9.047 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.204e-05/0.007622, allocations: 85.14 kB / 331.1 MB, free: 8.961 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.818e-05/0.00769, allocations: 103.1 kB / 331.2 MB, free: 8.859 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.932e-05/0.00774, allocations: 49.72 kB / 331.2 MB, free: 8.805 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.007844, allocations: 326.8 kB / 331.5 MB, free: 8.477 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.007975, allocations: 203.8 kB / 331.7 MB, free: 8.266 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.008126, allocations: 240 kB / 332 MB, free: 8.016 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002982/0.008425, allocations: 489 kB / 332.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.008428, allocations: 0 / 332.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004348/0.008863, allocations: 0.4998 MB / 333 MB, free: 6.977 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.008964, allocations: 111.3 kB / 333.1 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.008971, allocations: 0 / 333.1 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.008991, allocations: 0 / 333.1 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.986e-05/0.009091, allocations: 7.938 kB / 333.1 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.009101, allocations: 7.969 kB / 333.1 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.793e-05/0.009149, allocations: 23.84 kB / 333.1 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.009166, allocations: 8 kB / 333.1 MB, free: 6.809 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.0002042/0.00937, allocations: 283.7 kB / 333.4 MB, free: 6.508 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.431e-05/0.009404, allocations: 27.84 kB / 333.4 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.528e-05/0.009429, allocations: 9.656 kB / 333.4 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.009432, allocations: 4 kB / 333.4 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.009439, allocations: 0 / 333.4 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.009443, allocations: 0 / 333.4 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007755/0.01022, allocations: 1.031 MB / 334.5 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.01022, allocations: 0 / 334.5 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.269e-05/0.01024, allocations: 7.984 kB / 334.5 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.01025, allocations: 0 / 334.5 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/0.01027, allocations: 20 kB / 334.5 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.01027, allocations: 0 / 334.5 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01027, allocations: 0 / 334.5 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006632/0.01093, allocations: 0.9723 MB / 335.5 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.017e-05/0.01096, allocations: 23.84 kB / 335.5 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.156e-05/0.01103, allocations: 67.94 kB / 335.6 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.011e-05/0.01108, allocations: 8 kB / 335.6 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.761e-05/0.01111, allocations: 15.92 kB / 335.6 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.503e-05/0.01114, allocations: 19.98 kB / 335.6 MB, free: 4.191 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.499e-05/0.01117, allocations: 83.28 kB / 335.7 MB, free: 4.109 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01117, allocations: 0 / 335.7 MB, free: 4.109 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002829/0.01146, allocations: 95.86 kB / 335.8 MB, free: 4.016 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.001565/0.01302, allocations: 2.134 MB / 337.9 MB, free: 1.848 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006185/0.01364, allocations: 0.8698 MB / 338.8 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.01364, allocations: 0 / 338.8 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003083/0.01395, allocations: 0.5409 MB / 339.3 MB, free: 356 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001848/0.01414, allocations: 25.78 kB / 339.3 MB, free: 336 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.01668, allocations: 3.565 MB / 342.9 MB, free: 12.59 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.47e-05/0.01678, allocations: 118.7 kB / 343 MB, free: 12.45 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.373e-05/0.01679, allocations: 0 / 343 MB, free: 12.45 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.43e-05/0.01684, allocations: 36.48 kB / 343.1 MB, free: 12.42 MB / 314.7 MB Notification: Performance of SimCode: time 1.653e-06/0.01684, allocations: 0 / 343.1 MB, free: 12.42 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01813/0.03496, allocations: 5.575 MB / 348.6 MB, free: 6.926 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.172/7.207, allocations: 3.875 kB / 348.6 MB, free: 6.926 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000396747 Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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:time,r1024,r128,r64 [Calling sys.exit(0), Time elapsed: 8.959540388546884]