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.001725/0.001725, allocations: 82.17 kB / 21.25 MB, free: 0.5469 MB / 14.72 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.00205/0.00205, allocations: 166.1 kB / 24.5 MB, free: 3.848 MB / 14.72 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 1.567/1.567, allocations: 177.1 MB / 204.7 MB, free: 8.918 MB / 190.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 65.23 kB / 325.5 MB, free: 368 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09591/0.09781, allocations: 53.37 MB / 378.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.0023/0.1001, allocations: 1.253 MB / 380.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009536/0.1011, allocations: 445 kB / 380.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.783e-05/0.1011, allocations: 4 kB / 380.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.411e-05/0.1011, allocations: 3.938 kB / 380.6 MB, free: 13.87 MB / 350.1 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.000465/0.1016, allocations: 83.7 kB / 380.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001632/0.1018, allocations: 67.75 kB / 380.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.806e-05/0.1019, allocations: 47.89 kB / 380.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.339e-05/0.1019, allocations: 0 / 380.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.518e-05/0.1019, allocations: 23.92 kB / 380.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.281e-05/0.102, allocations: 19.91 kB / 380.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.286e-05/0.102, allocations: 0 / 380.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003228/0.1023, allocations: 159.7 kB / 381 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.441e-05/0.1024, allocations: 35.91 kB / 381 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.699e-05/0.1024, allocations: 31.75 kB / 381.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000292/0.1027, allocations: 187.2 kB / 381.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1027, allocations: 0 / 381.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1027, allocations: 4 kB / 381.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1027, allocations: 0 / 381.2 MB, free: 13.22 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.0005984/0.1033, allocations: 488.8 kB / 381.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.1034, allocations: 11.98 kB / 381.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.1035, allocations: 20.84 kB / 381.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.1036, allocations: 126.2 kB / 381.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.1036, allocations: 4.375 kB / 381.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.1036, allocations: 4.375 kB / 381.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004235/0.1041, allocations: 391.2 kB / 382.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.1041, allocations: 192 / 382.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.1041, allocations: 11.94 kB / 382.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1041, allocations: 0 / 382.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002597/0.1044, allocations: 263.3 kB / 382.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001601/0.1045, allocations: 137.8 kB / 382.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003037/0.1048, allocations: 292.5 kB / 383 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002609/0.1051, allocations: 269 kB / 383.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.775e-06/0.1051, allocations: 4 kB / 383.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005855/0.1057, allocations: 0.5705 MB / 383.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 9.82e-07/0.1057, allocations: 0 / 383.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.001151/0.1068, allocations: 0.9809 MB / 384.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.1069, allocations: 160.5 kB / 384.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.943e-05/0.107, allocations: 101.8 kB / 385 MB, free: 9.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.107, allocations: 29.7 kB / 385.1 MB, free: 9.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.992e-05/0.1071, allocations: 81.14 kB / 385.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.566e-05/0.1072, allocations: 91.28 kB / 385.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.83e-05/0.1072, allocations: 41.69 kB / 385.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1074, allocations: 326.8 kB / 385.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.1076, allocations: 199.7 kB / 385.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.1078, allocations: 229.5 kB / 386 MB, free: 8.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000433/0.1082, allocations: 468.5 kB / 386.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1082, allocations: 4.094 kB / 386.5 MB, free: 7.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005136/0.1087, allocations: 0.4884 MB / 387 MB, free: 7.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.1089, allocations: 111.3 kB / 387.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1089, allocations: 7.922 kB / 387.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.1089, allocations: 3.938 kB / 387.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.1089, allocations: 4 kB / 387.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.1089, allocations: 0 / 387.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.146e-05/0.1089, allocations: 27.78 kB / 387.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.109, allocations: 8 kB / 387.1 MB, free: 6.887 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.0002701/0.1092, allocations: 275.8 kB / 387.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.347e-05/0.1093, allocations: 23.91 kB / 387.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.127e-05/0.1093, allocations: 17.59 kB / 387.4 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1093, allocations: 4 kB / 387.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.1093, allocations: 4 kB / 387.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1093, allocations: 0 / 387.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001565/0.1095, allocations: 161.1 kB / 387.6 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1095, allocations: 0 / 387.6 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.1095, allocations: 0 / 387.6 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1095, allocations: 0 / 387.6 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.043e-05/0.1095, allocations: 19.98 kB / 387.6 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1095, allocations: 3.938 kB / 387.6 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1095, allocations: 0 / 387.6 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.1106, allocations: 0.9077 MB / 388.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.808e-05/0.1106, allocations: 27.8 kB / 388.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.1107, allocations: 71.97 kB / 388.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.663e-05/0.1108, allocations: 11.94 kB / 388.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.892e-05/0.1108, allocations: 11.98 kB / 388.6 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.974e-05/0.1109, allocations: 15.98 kB / 388.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.788e-05/0.1109, allocations: 87.22 kB / 388.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1109, allocations: 0 / 388.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003525/0.1113, allocations: 87.92 kB / 388.8 MB, free: 5.066 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.0006687/0.1119, allocations: 311.1 kB / 389.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000979/0.1129, allocations: 0.868 MB / 390 MB, free: 3.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1129, allocations: 0 / 390 MB, free: 3.871 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005306/0.1134, allocations: 0.5254 MB / 390.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001931/0.1136, allocations: 20 kB / 390.5 MB, free: 3.289 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007686/0.1144, allocations: 0.5111 MB / 391.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001114/0.1145, allocations: 110.3 kB / 391.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.408e-05/0.1145, allocations: 11.92 kB / 391.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.512e-05/0.1146, allocations: 8.5 kB / 391.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.1146, allocations: 0 / 391.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of Templates: time 0.007182/0.1217, allocations: 3.12 MB / 394.3 MB, free: 15.48 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/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_trunk_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.331686296965927]