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.001836/0.001836, allocations: 115.9 kB / 20.43 MB, free: 1.449 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.00216/0.00216, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.001602/0.001602, allocations: 55.89 kB / 378.3 MB, free: 2.578 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.273, allocations: 53.36 MB / 431.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002354/0.2754, allocations: 1.243 MB / 432.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.2764, allocations: 481.4 kB / 433.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.403e-05/0.2764, allocations: 3.938 kB / 433.3 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.367e-05/0.2765, allocations: 0 / 433.3 MB, free: 5.164 MB / 334.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.0004921/0.277, allocations: 75.72 kB / 433.4 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001562/0.2771, allocations: 71.73 kB / 433.5 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001047/0.2772, allocations: 47.84 kB / 433.5 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.823e-05/0.2773, allocations: 4 kB / 433.5 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.09e-05/0.2773, allocations: 19.97 kB / 433.6 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.42e-05/0.2774, allocations: 23.91 kB / 433.6 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.2774, allocations: 3.938 kB / 433.6 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003327/0.2777, allocations: 155.7 kB / 433.7 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.39e-05/0.2778, allocations: 31.92 kB / 433.8 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.951e-05/0.2778, allocations: 55.66 kB / 433.8 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002834/0.2781, allocations: 176.5 kB / 434 MB, free: 4.516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.2781, allocations: 0 / 434 MB, free: 4.516 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2781, allocations: 0 / 434 MB, free: 4.516 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.2781, allocations: 0 / 434 MB, free: 4.516 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.0006212/0.2787, allocations: 0.4929 MB / 434.5 MB, free: 3.977 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.2788, allocations: 12.03 kB / 434.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.2789, allocations: 16.84 kB / 434.5 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.279, allocations: 138.2 kB / 434.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.2791, allocations: 384 / 434.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.2791, allocations: 4.375 kB / 434.7 MB, free: 3.785 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003287/0.2794, allocations: 275.8 kB / 434.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.2794, allocations: 192 / 434.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.2794, allocations: 7.938 kB / 434.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2794, allocations: 4 kB / 434.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.2796, allocations: 147.9 kB / 435.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001943/0.2798, allocations: 169.2 kB / 435.2 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/0.28, allocations: 177.2 kB / 435.4 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.2802, allocations: 153.7 kB / 435.6 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.971e-06/0.2802, allocations: 4 kB / 435.6 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005536/0.2807, allocations: 488.5 kB / 436 MB, free: 2.262 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.012e-06/0.2807, allocations: 0 / 436 MB, free: 2.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.000943/0.2817, allocations: 0.735 MB / 436.8 MB, free: 1.508 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.2818, allocations: 160.5 kB / 436.9 MB, free: 1.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.208e-05/0.2819, allocations: 109.8 kB / 437 MB, free: 1.203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.2819, allocations: 25.7 kB / 437.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.188e-05/0.2819, allocations: 85.14 kB / 437.2 MB, free: 1.086 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.131e-05/0.282, allocations: 91.22 kB / 437.2 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.845e-05/0.2821, allocations: 41.69 kB / 437.3 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2822, allocations: 326.8 kB / 437.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.121e-05/0.2823, allocations: 80.34 kB / 437.7 MB, free: 0.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.2825, allocations: 114.4 kB / 437.8 MB, free: 436 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004102/0.2829, allocations: 421.3 kB / 438.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2829, allocations: 3.938 kB / 438.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004048/0.2833, allocations: 348.8 kB / 438.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001102/0.2834, allocations: 111.3 kB / 438.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2834, allocations: 0 / 438.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.2834, allocations: 4 kB / 438.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.2834, allocations: 0 / 438.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.2834, allocations: 0 / 438.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.725e-05/0.2835, allocations: 19.84 kB / 438.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.2835, allocations: 20.08 kB / 438.7 MB, free: 15.46 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.0003399/0.2838, allocations: 291.7 kB / 439 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.012e-05/0.2839, allocations: 31.84 kB / 439 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.746e-05/0.2839, allocations: 9.656 kB / 439 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.2839, allocations: 4 kB / 439 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2839, allocations: 0 / 439 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2839, allocations: 3.984 kB / 439 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000307/0.2842, allocations: 208.5 kB / 439.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2842, allocations: 0 / 439.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.22e-07/0.2842, allocations: 0 / 439.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.2842, allocations: 3.938 kB / 439.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.264e-05/0.2843, allocations: 19.98 kB / 439.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2843, allocations: 0 / 439.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.2843, allocations: 8 kB / 439.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.2857, allocations: 1.244 MB / 440.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.506e-05/0.2857, allocations: 23.8 kB / 440.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.2858, allocations: 71.88 kB / 440.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.518e-05/0.2859, allocations: 8 kB / 440.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.409e-05/0.2859, allocations: 11.98 kB / 440.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.761e-05/0.2859, allocations: 23.97 kB / 440.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.798e-05/0.286, allocations: 83.59 kB / 440.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.286, allocations: 0 / 440.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003513/0.2863, allocations: 91.88 kB / 440.8 MB, free: 13.23 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.0006791/0.287, allocations: 304.4 kB / 441.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.2883, allocations: 1.065 MB / 442.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.2883, allocations: 8.125 kB / 442.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009566/0.2892, allocations: 0.8927 MB / 443.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.2895, allocations: 20 kB / 443.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007025/0.2902, allocations: 396 kB / 443.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004832/0.2906, allocations: 0.7325 MB / 444.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.267e-06/0.2906, allocations: 0 / 444.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.614e-05/0.2907, allocations: 7.438 kB / 444.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2907, allocations: 0 / 444.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of Templates: time 0.007244/0.2979, allocations: 3.195 MB / 447.4 MB, free: 6.562 MB / 350.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.565770595800132]