Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.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.001295/0.001295, allocations: 118.9 kB / 17.79 MB, free: 5.285 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.001454/0.001454, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.479/1.479, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 55.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1027, allocations: 53.32 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002597/0.1053, allocations: 1.242 MB / 427.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.1063, allocations: 470.3 kB / 428 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.329e-05/0.1064, allocations: 0 / 428 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.047e-05/0.1064, allocations: 3.938 kB / 428 MB, free: 3.078 MB / 350.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.typeBindings: time 0.0005072/0.1069, allocations: 75.73 kB / 428.1 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001498/0.1071, allocations: 59.8 kB / 428.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001136/0.1072, allocations: 43.91 kB / 428.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.661e-05/0.1072, allocations: 4 kB / 428.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.879e-05/0.1073, allocations: 23.91 kB / 428.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.177e-05/0.1073, allocations: 19.92 kB / 428.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.632e-05/0.1073, allocations: 8 kB / 428.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002653/0.1076, allocations: 127.8 kB / 428.4 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.082e-05/0.1077, allocations: 31.86 kB / 428.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.95e-05/0.1077, allocations: 51.66 kB / 428.5 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002777/0.108, allocations: 179.2 kB / 428.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.108, allocations: 4 kB / 428.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.108, allocations: 0 / 428.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.108, allocations: 0 / 428.6 MB, free: 2.461 MB / 350.1 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.0006764/0.1087, allocations: 0.5604 MB / 429.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.1087, allocations: 8.031 kB / 429.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.96e-05/0.1088, allocations: 66.67 kB / 429.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.1089, allocations: 16.84 kB / 429.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.1091, allocations: 184.2 kB / 429.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.1091, allocations: 4.375 kB / 429.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.127e-05/0.1091, allocations: 8.375 kB / 429.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003395/0.1095, allocations: 286.8 kB / 429.8 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.1095, allocations: 3.938 kB / 429.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.1095, allocations: 4 kB / 429.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1095, allocations: 7.938 kB / 429.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001643/0.1097, allocations: 144.3 kB / 429.9 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003794/0.11, allocations: 385.6 kB / 430.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/0.1103, allocations: 189.5 kB / 430.5 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001971/0.1105, allocations: 166 kB / 430.6 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.1105, allocations: 7.938 kB / 430.6 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006234/0.1111, allocations: 486.8 kB / 431.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 1.382e-06/0.1111, allocations: 0 / 431.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.00108/0.1122, allocations: 0.7619 MB / 431.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.1123, allocations: 156.5 kB / 432 MB, free: 14.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.1124, allocations: 105.9 kB / 432.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.1124, allocations: 29.7 kB / 432.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.873e-05/0.1125, allocations: 81.14 kB / 432.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.722e-05/0.1126, allocations: 103.1 kB / 432.3 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.436e-05/0.1127, allocations: 45.69 kB / 432.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1128, allocations: 326.8 kB / 432.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.1129, allocations: 88.34 kB / 432.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.113, allocations: 124.3 kB / 432.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.1134, allocations: 431.8 kB / 433.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.1134, allocations: 3.938 kB / 433.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004104/0.1138, allocations: 368.2 kB / 433.7 MB, free: 13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.1139, allocations: 111.3 kB / 433.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1139, allocations: 0 / 433.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.1139, allocations: 0 / 433.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.086e-05/0.114, allocations: 7.984 kB / 433.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.114, allocations: 4 kB / 433.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.87e-05/0.1141, allocations: 23.78 kB / 433.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.1141, allocations: 12.03 kB / 433.9 MB, free: 12.84 MB / 366.1 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],$outputAlias_r1024,$outputAlias_r128,$outputAlias_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.0002896/0.1144, allocations: 295.7 kB / 434.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.476e-05/0.1145, allocations: 27.91 kB / 434.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.711e-05/0.1145, allocations: 17.55 kB / 434.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.1145, allocations: 0 / 434.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1145, allocations: 0 / 434.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1145, allocations: 0 / 434.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.116, allocations: 1.46 MB / 435.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.116, allocations: 0 / 435.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.753e-05/0.116, allocations: 4.062 kB / 435.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.116, allocations: 8 kB / 435.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.639e-05/0.116, allocations: 23.98 kB / 435.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.116, allocations: 0 / 435.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.116, allocations: 3.938 kB / 435.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.1174, allocations: 1.342 MB / 437 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.782e-05/0.1175, allocations: 92.95 kB / 437.1 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.1176, allocations: 67.94 kB / 437.2 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.029e-05/0.1177, allocations: 12 kB / 437.2 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.866e-05/0.1177, allocations: 19.97 kB / 437.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.994e-05/0.1178, allocations: 16 kB / 437.2 MB, free: 9.324 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.285e-05/0.1178, allocations: 91.61 kB / 437.3 MB, free: 9.234 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1178, allocations: 0 / 437.3 MB, free: 9.234 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004045/0.1182, allocations: 91.88 kB / 437.4 MB, free: 9.145 MB / 366.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: 46 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_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: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_r64,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.002679/0.1209, allocations: 2.35 MB / 439.8 MB, free: 6.785 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001191/0.1221, allocations: 1.074 MB / 440.8 MB, free: 5.688 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.1221, allocations: 0 / 440.8 MB, free: 5.688 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000847/0.1229, allocations: 0.8928 MB / 441.7 MB, free: 4.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.1232, allocations: 24 kB / 441.8 MB, free: 4.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003712/0.1269, allocations: 3.324 MB / 445.1 MB, free: 1.309 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.1273, allocations: 0.7317 MB / 445.8 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.945e-05/0.1273, allocations: 4 kB / 445.8 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.236e-05/0.1274, allocations: 35.42 kB / 445.8 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1274, allocations: 0 / 445.8 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2146/0.342, allocations: 4.763 MB / 450.6 MB, free: 25.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.125/8.467, allocations: 8.781 kB / 450.6 MB, free: 25.12 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.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: 11.06486337899696]