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.001423/0.001424, allocations: 119.5 kB / 18.41 MB, free: 4.555 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.001444/0.001445, allocations: 192.3 kB / 21.35 MB, free: 1.621 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.449/1.449, allocations: 222.9 MB / 247 MB, free: 4.219 MB / 190.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: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 47.92 kB / 358.7 MB, free: 8.336 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09975/0.1014, allocations: 49.44 MB / 408.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.00237/0.1038, allocations: 1.216 MB / 409.3 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009796/0.1048, allocations: 472.4 kB / 409.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.003e-05/0.1048, allocations: 4 kB / 409.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.457e-05/0.1049, allocations: 3.938 kB / 409.8 MB, free: 5.156 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.typeBindings: time 0.000483/0.1054, allocations: 75.67 kB / 409.9 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001465/0.1055, allocations: 59.77 kB / 409.9 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001097/0.1056, allocations: 47.95 kB / 410 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.682e-05/0.1057, allocations: 7.984 kB / 410 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.879e-05/0.1057, allocations: 23.86 kB / 410 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.632e-05/0.1058, allocations: 15.92 kB / 410 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.1058, allocations: 0 / 410 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002376/0.106, allocations: 123.8 kB / 410.1 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.971e-05/0.1061, allocations: 35.91 kB / 410.2 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.647e-05/0.1062, allocations: 47.69 kB / 410.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002719/0.1065, allocations: 179.2 kB / 410.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1065, allocations: 0 / 410.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1065, allocations: 0 / 410.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.1065, allocations: 0 / 410.4 MB, free: 4.551 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006804/0.1072, allocations: 0.572 MB / 411 MB, free: 3.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.1072, allocations: 8.031 kB / 411 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.1074, allocations: 24.84 kB / 411 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.1075, allocations: 180.2 kB / 411.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.1075, allocations: 8.359 kB / 411.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.1076, allocations: 4.375 kB / 411.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003194/0.1079, allocations: 271.8 kB / 411.5 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.1079, allocations: 192 / 411.5 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.1079, allocations: 11.92 kB / 411.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.1079, allocations: 0 / 411.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001614/0.1081, allocations: 143.9 kB / 411.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002089/0.1083, allocations: 202.4 kB / 411.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004184/0.1087, allocations: 497.1 kB / 412.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003748/0.1091, allocations: 469.7 kB / 412.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.1091, allocations: 0 / 412.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005017/0.1097, allocations: 480.8 kB / 413.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.152e-06/0.1097, allocations: 0 / 413.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008875/0.1106, allocations: 0.7232 MB / 413.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.1107, allocations: 156.5 kB / 414.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.739e-05/0.1108, allocations: 105.8 kB / 414.2 MB, free: 464 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.1108, allocations: 29.7 kB / 414.2 MB, free: 428 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.791e-05/0.1109, allocations: 89.14 kB / 414.3 MB, free: 332 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.963e-05/0.111, allocations: 91.28 kB / 414.4 MB, free: 240 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.978e-05/0.111, allocations: 45.62 kB / 414.4 MB, free: 188 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.1112, allocations: 326.8 kB / 414.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.231e-05/0.1113, allocations: 84.34 kB / 414.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.1114, allocations: 106.2 kB / 414.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003591/0.1118, allocations: 421.3 kB / 415.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1118, allocations: 8.031 kB / 415.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003725/0.1122, allocations: 344.9 kB / 415.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001065/0.1123, allocations: 115.3 kB / 415.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.1123, allocations: 0 / 415.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.1123, allocations: 0 / 415.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.955e-06/0.1123, allocations: 3.938 kB / 415.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.1123, allocations: 0 / 415.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.533e-05/0.1124, allocations: 23.84 kB / 415.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.011e-05/0.1124, allocations: 8 kB / 415.9 MB, free: 14.7 MB / 350.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],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 (2): * Single equations (assignments): 0 * 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.000274/0.1127, allocations: 295.8 kB / 416.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.185e-05/0.1128, allocations: 31.84 kB / 416.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.041e-05/0.1128, allocations: 5.562 kB / 416.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.1128, allocations: 0 / 416.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1128, allocations: 4 kB / 416.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1128, allocations: 4 kB / 416.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002018/0.113, allocations: 237.3 kB / 416.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.113, allocations: 0 / 416.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.113, allocations: 0 / 416.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.113, allocations: 7.938 kB / 416.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.267e-05/0.1131, allocations: 15.98 kB / 416.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1131, allocations: 4 kB / 416.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1131, allocations: 0 / 416.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.1143, allocations: 1.224 MB / 417.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.189e-05/0.1144, allocations: 97.22 kB / 417.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.1145, allocations: 71.88 kB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.089e-05/0.1146, allocations: 8 kB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.1146, allocations: 15.97 kB / 417.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.843e-05/0.1147, allocations: 19.98 kB / 417.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.584e-05/0.1147, allocations: 79.28 kB / 418 MB, free: 12.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1147, allocations: 0 / 418 MB, free: 12.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003432/0.1151, allocations: 95.95 kB / 418 MB, free: 12.38 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: 46 ($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],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * 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.0006113/0.1157, allocations: 308.4 kB / 418.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001812/0.1175, allocations: 2.131 MB / 420.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.1175, allocations: 4 kB / 420.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001717/0.1193, allocations: 2.178 MB / 422.7 MB, free: 7.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001992/0.1195, allocations: 20.25 kB / 422.7 MB, free: 7.719 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006495/0.1201, allocations: 421.7 kB / 423.1 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.1205, allocations: 0.7282 MB / 423.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.49e-05/0.1205, allocations: 7.438 kB / 423.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1205, allocations: 0 / 423.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of Templates: time 0.005433/0.126, allocations: 2.868 MB / 426.7 MB, free: 3.641 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] Reference file matches [Calling sys.exit(0), Time elapsed: 7.88670422998257]