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.00173/0.00173, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.002014/0.002014, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.516/1.516, allocations: 230.6 MB / 254.1 MB, free: 15.1 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: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 43.94 kB / 373.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1082, allocations: 53.32 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002541/0.1108, allocations: 1.245 MB / 428 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001181/0.1119, allocations: 470.3 kB / 428.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.912e-05/0.112, allocations: 0 / 428.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.422e-05/0.112, allocations: 7.938 kB / 428.5 MB, free: 2.582 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.0006174/0.1127, allocations: 75.67 kB / 428.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002337/0.1129, allocations: 63.75 kB / 428.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001302/0.113, allocations: 43.91 kB / 428.7 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.379e-05/0.1131, allocations: 3.984 kB / 428.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.342e-05/0.1131, allocations: 23.92 kB / 428.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.902e-05/0.1132, allocations: 23.91 kB / 428.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.1132, allocations: 0 / 428.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003147/0.1135, allocations: 127.8 kB / 428.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.496e-05/0.1135, allocations: 31.86 kB / 428.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.237e-05/0.1136, allocations: 59.66 kB / 428.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003458/0.114, allocations: 167.3 kB / 429.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.114, allocations: 3.938 kB / 429.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.114, allocations: 0 / 429.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.114, allocations: 0 / 429.1 MB, free: 1.969 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.0008229/0.1148, allocations: 0.5643 MB / 429.7 MB, free: 1.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.1148, allocations: 12.03 kB / 429.7 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000153/0.115, allocations: 16.84 kB / 429.7 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001879/0.1152, allocations: 192.2 kB / 429.9 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.1152, allocations: 8.375 kB / 429.9 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.277e-05/0.1152, allocations: 8.312 kB / 429.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003483/0.1156, allocations: 267.9 kB / 430.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1156, allocations: 192 / 430.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/0.1156, allocations: 11.92 kB / 430.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.1156, allocations: 0 / 430.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001855/0.1158, allocations: 139.9 kB / 430.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002324/0.116, allocations: 218 kB / 430.5 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/0.1162, allocations: 173.2 kB / 430.7 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.1164, allocations: 153.7 kB / 430.9 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.135e-05/0.1164, allocations: 0 / 430.9 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005545/0.117, allocations: 484.8 kB / 431.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=46): time 1.122e-06/0.117, allocations: 0 / 431.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=46): time 0.001045/0.118, allocations: 0.7427 MB / 432.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.1181, allocations: 156.5 kB / 432.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.1182, allocations: 105.8 kB / 432.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.1183, allocations: 25.7 kB / 432.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.484e-05/0.1183, allocations: 81.14 kB / 432.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.48e-05/0.1184, allocations: 87.28 kB / 432.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.213e-05/0.1185, allocations: 49.75 kB / 432.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.1187, allocations: 326.8 kB / 432.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.1188, allocations: 80.34 kB / 433 MB, free: 13.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.1189, allocations: 118.1 kB / 433.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003947/0.1193, allocations: 417.3 kB / 433.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1193, allocations: 0 / 433.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000425/0.1197, allocations: 348.8 kB / 433.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.1198, allocations: 115.4 kB / 433.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1198, allocations: 0 / 433.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.1199, allocations: 0 / 433.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.263e-06/0.1199, allocations: 0 / 433.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.1199, allocations: 4 kB / 433.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.73e-05/0.1199, allocations: 23.83 kB / 434 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.1199, allocations: 11.94 kB / 434 MB, free: 12.71 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],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.0002951/0.1202, allocations: 299.7 kB / 434.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.581e-05/0.1203, allocations: 27.84 kB / 434.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.72e-05/0.1203, allocations: 5.562 kB / 434.3 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.1203, allocations: 0 / 434.3 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.289e-06/0.1203, allocations: 4 kB / 434.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.1203, allocations: 3.984 kB / 434.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.1205, allocations: 229.4 kB / 434.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1205, allocations: 4 kB / 434.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.1205, allocations: 0 / 434.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.1206, allocations: 3.938 kB / 434.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-05/0.1206, allocations: 23.97 kB / 434.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1206, allocations: 0 / 434.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1206, allocations: 0 / 434.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00145/0.122, allocations: 1.252 MB / 435.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.851e-05/0.1221, allocations: 108.8 kB / 435.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.1222, allocations: 71.88 kB / 436 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.064e-05/0.1223, allocations: 12 kB / 436 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.185e-05/0.1224, allocations: 11.98 kB / 436 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.057e-05/0.1224, allocations: 19.98 kB / 436 MB, free: 10.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.872e-05/0.1224, allocations: 79.28 kB / 436.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1224, allocations: 0 / 436.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003737/0.1228, allocations: 87.92 kB / 436.2 MB, free: 10.37 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 ($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.0007168/0.1235, allocations: 312.4 kB / 436.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.1247, allocations: 1.068 MB / 437.6 MB, free: 8.992 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.1247, allocations: 0 / 437.6 MB, free: 8.992 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009696/0.1257, allocations: 0.8889 MB / 438.5 MB, free: 8.078 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002222/0.1259, allocations: 23.98 kB / 438.5 MB, free: 8.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008123/0.1267, allocations: 400.3 kB / 438.9 MB, free: 7.637 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.1271, allocations: 0.7244 MB / 439.6 MB, free: 6.883 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.228e-06/0.1272, allocations: 0 / 439.6 MB, free: 6.883 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.369e-05/0.1272, allocations: 11.44 kB / 439.6 MB, free: 6.871 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1272, allocations: 0 / 439.6 MB, free: 6.871 MB / 366.1 MB Notification: Performance of Templates: time 0.007438/0.1346, allocations: 2.998 MB / 442.6 MB, free: 3.879 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/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_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: 4.8634472489356995]