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.001697/0.001697, allocations: 109.1 kB / 21.19 MB, free: 0.75 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.002166/0.002166, allocations: 213.2 kB / 24.49 MB, free: 4.129 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.474/1.474, allocations: 230.5 MB / 258.2 MB, free: 7.984 MB / 206.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.001937/0.001937, allocations: 60.09 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2668, allocations: 53.4 MB / 432.4 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002718/0.2695, allocations: 1.246 MB / 433.7 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.2706, allocations: 481.2 kB / 434.1 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.233e-05/0.2707, allocations: 0 / 434.1 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.028e-05/0.2707, allocations: 3.938 kB / 434.2 MB, free: 5.012 MB / 334.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.0005421/0.2713, allocations: 83.7 kB / 434.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001594/0.2714, allocations: 63.81 kB / 434.3 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001212/0.2715, allocations: 47.84 kB / 434.3 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.862e-05/0.2716, allocations: 7.984 kB / 434.4 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.604e-05/0.2716, allocations: 15.98 kB / 434.4 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.477e-05/0.2717, allocations: 19.91 kB / 434.4 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.2717, allocations: 7.938 kB / 434.4 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003269/0.272, allocations: 159.7 kB / 434.6 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.306e-05/0.2721, allocations: 27.92 kB / 434.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.864e-05/0.2722, allocations: 51.67 kB / 434.6 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002926/0.2725, allocations: 180.5 kB / 434.8 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.2725, allocations: 0 / 434.8 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2725, allocations: 4 kB / 434.8 MB, free: 4.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.2725, allocations: 0 / 434.8 MB, free: 4.359 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.0007075/0.2732, allocations: 0.4929 MB / 435.3 MB, free: 3.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.2732, allocations: 8.031 kB / 435.3 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.2734, allocations: 20.84 kB / 435.3 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.2736, allocations: 130.3 kB / 435.5 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.2736, allocations: 4.375 kB / 435.5 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/0.2736, allocations: 4.375 kB / 435.5 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003564/0.2739, allocations: 271.8 kB / 435.7 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.274, allocations: 4.125 kB / 435.7 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.274, allocations: 7.938 kB / 435.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.274, allocations: 0 / 435.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001732/0.2741, allocations: 147.9 kB / 435.9 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002272/0.2744, allocations: 173.2 kB / 436.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.2746, allocations: 181.1 kB / 436.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.2748, allocations: 157.7 kB / 436.4 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.54e-06/0.2748, allocations: 0 / 436.4 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005663/0.2753, allocations: 472.9 kB / 436.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.002e-06/0.2753, allocations: 3.938 kB / 436.9 MB, free: 2.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.0009562/0.2763, allocations: 0.7478 MB / 437.6 MB, free: 1.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.2764, allocations: 160.4 kB / 437.8 MB, free: 1.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.2765, allocations: 101.8 kB / 437.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.2766, allocations: 33.64 kB / 437.9 MB, free: 1.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.491e-05/0.2766, allocations: 81.14 kB / 438 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.889e-05/0.2767, allocations: 91.22 kB / 438.1 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.735e-05/0.2767, allocations: 41.69 kB / 438.1 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.2769, allocations: 334.9 kB / 438.4 MB, free: 472 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.277, allocations: 80.34 kB / 438.5 MB, free: 392 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.2771, allocations: 110.2 kB / 438.6 MB, free: 276 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/0.2775, allocations: 412.4 kB / 439 MB, free: 15.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2775, allocations: 3.938 kB / 439 MB, free: 15.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004076/0.2779, allocations: 356.8 kB / 439.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.2781, allocations: 113.8 kB / 439.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2781, allocations: 0 / 439.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.2781, allocations: 4.094 kB / 439.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.2781, allocations: 0 / 439.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.2781, allocations: 0 / 439.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.995e-05/0.2781, allocations: 23.84 kB / 439.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/0.2782, allocations: 8 kB / 439.5 MB, free: 15.3 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.0003249/0.2785, allocations: 303.6 kB / 439.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.796e-05/0.2785, allocations: 31.84 kB / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.776e-05/0.2786, allocations: 5.656 kB / 439.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2786, allocations: 0 / 439.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.2786, allocations: 0 / 439.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.2786, allocations: 4 kB / 439.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002238/0.2788, allocations: 204.5 kB / 440 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2788, allocations: 0 / 440 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.775e-06/0.2788, allocations: 8 kB / 440.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.2788, allocations: 3.938 kB / 440.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.107e-05/0.2788, allocations: 19.98 kB / 440.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2788, allocations: 0 / 440.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2788, allocations: 0 / 440.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.2802, allocations: 1.244 MB / 441.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.605e-05/0.2803, allocations: 27.8 kB / 441.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.2804, allocations: 71.91 kB / 441.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.881e-05/0.2804, allocations: 12 kB / 441.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.08e-05/0.2805, allocations: 15.92 kB / 441.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.2805, allocations: 23.94 kB / 441.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.767e-05/0.2806, allocations: 79.27 kB / 441.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2806, allocations: 4 kB / 441.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003523/0.2809, allocations: 87.88 kB / 441.6 MB, free: 13.08 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.0006604/0.2816, allocations: 299.8 kB / 441.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.2827, allocations: 1.06 MB / 443 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2827, allocations: 0 / 443 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000849/0.2836, allocations: 0.9005 MB / 443.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.2838, allocations: 22.75 kB / 443.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006921/0.2845, allocations: 426 kB / 444.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.2848, allocations: 0.7206 MB / 445.1 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.629e-05/0.2849, allocations: 11.44 kB / 445.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2849, allocations: 0 / 445.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of Templates: time 0.005664/0.2905, allocations: 2.863 MB / 447.9 MB, free: 6.703 MB / 350.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 -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: 7.661325637018308]