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.001799/0.001799, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001852/0.001852, allocations: 209.6 kB / 23.73 MB, free: 4.523 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.503/1.503, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.001625/0.001625, allocations: 47.92 kB / 378.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2603, allocations: 53.35 MB / 431.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002337/0.2627, allocations: 1.246 MB / 432.8 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.2637, allocations: 454.3 kB / 433.3 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.422e-05/0.2637, allocations: 0 / 433.3 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.637e-05/0.2637, allocations: 3.938 kB / 433.3 MB, free: 5.027 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.0005437/0.2643, allocations: 79.72 kB / 433.3 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000168/0.2645, allocations: 71.73 kB / 433.4 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.2646, allocations: 35.97 kB / 433.4 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.411e-05/0.2646, allocations: 8 kB / 433.4 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.024e-05/0.2647, allocations: 27.84 kB / 433.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.719e-05/0.2647, allocations: 23.91 kB / 433.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.139e-05/0.2647, allocations: 0 / 433.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003258/0.2651, allocations: 155.7 kB / 433.7 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.514e-05/0.2651, allocations: 39.89 kB / 433.7 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.583e-05/0.2652, allocations: 31.75 kB / 433.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.2654, allocations: 185.5 kB / 433.9 MB, free: 4.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2655, allocations: 0 / 433.9 MB, free: 4.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2655, allocations: 0 / 433.9 MB, free: 4.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.2655, allocations: 4 kB / 433.9 MB, free: 4.383 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.0006491/0.2661, allocations: 492.7 kB / 434.4 MB, free: 3.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.2662, allocations: 8.031 kB / 434.4 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.2663, allocations: 20.84 kB / 434.4 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.2664, allocations: 118.4 kB / 434.5 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.2664, allocations: 4.375 kB / 434.5 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.936e-05/0.2665, allocations: 4.375 kB / 434.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004394/0.2669, allocations: 399.1 kB / 434.9 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.148e-06/0.2669, allocations: 192 / 434.9 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.2669, allocations: 7.938 kB / 434.9 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.2669, allocations: 4 kB / 434.9 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002591/0.2672, allocations: 263.3 kB / 435.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001704/0.2673, allocations: 137.8 kB / 435.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003139/0.2677, allocations: 292.5 kB / 435.6 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.2679, allocations: 273 kB / 435.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.228e-06/0.2679, allocations: 0 / 435.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005805/0.2685, allocations: 0.5703 MB / 436.5 MB, free: 1.586 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 9.42e-07/0.2685, allocations: 0 / 436.5 MB, free: 1.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.001121/0.2696, allocations: 0.9876 MB / 437.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.2697, allocations: 156.6 kB / 437.6 MB, free: 380 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.879e-05/0.2698, allocations: 105.8 kB / 437.7 MB, free: 264 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.2698, allocations: 29.7 kB / 437.7 MB, free: 228 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.068e-05/0.2699, allocations: 81.14 kB / 437.8 MB, free: 144 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.834e-05/0.27, allocations: 99.16 kB / 437.9 MB, free: 44 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.985e-05/0.27, allocations: 41.77 kB / 437.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.2702, allocations: 330.8 kB / 438.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.2704, allocations: 199.7 kB / 438.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.2706, allocations: 225.8 kB / 438.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/0.271, allocations: 469.3 kB / 439.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.271, allocations: 4 kB / 439.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005064/0.2715, allocations: 492.2 kB / 439.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.2716, allocations: 111.3 kB / 439.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.2716, allocations: 3.984 kB / 439.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.2716, allocations: 7.938 kB / 439.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.116e-06/0.2716, allocations: 3.938 kB / 439.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.2716, allocations: 3.984 kB / 439.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.116e-05/0.2717, allocations: 23.84 kB / 439.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.2717, allocations: 8 kB / 439.8 MB, free: 14.04 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.0002788/0.272, allocations: 279.7 kB / 440.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.226e-05/0.2721, allocations: 23.91 kB / 440.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.358e-05/0.2721, allocations: 17.59 kB / 440.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2721, allocations: 0 / 440.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2721, allocations: 0 / 440.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2721, allocations: 0 / 440.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001631/0.2722, allocations: 157.1 kB / 440.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.2723, allocations: 4 kB / 440.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.2723, allocations: 0 / 440.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2723, allocations: 0 / 440.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.191e-05/0.2723, allocations: 19.98 kB / 440.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.2723, allocations: 3.938 kB / 440.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.2723, allocations: 4 kB / 440.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.2734, allocations: 0.9038 MB / 441.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.958e-05/0.2734, allocations: 35.73 kB / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.2735, allocations: 67.94 kB / 441.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.994e-05/0.2736, allocations: 15.97 kB / 441.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.2736, allocations: 8 kB / 441.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.2736, allocations: 15.98 kB / 441.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.992e-05/0.2737, allocations: 83.28 kB / 441.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2737, allocations: 0 / 441.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.274, allocations: 91.86 kB / 441.5 MB, free: 12.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.0006342/0.2746, allocations: 306.9 kB / 441.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000923/0.2756, allocations: 0.8606 MB / 442.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2756, allocations: 4.125 kB / 442.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005305/0.2761, allocations: 0.5292 MB / 443.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001955/0.2763, allocations: 25.22 kB / 443.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007093/0.277, allocations: 0.5072 MB / 443.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/0.2771, allocations: 110.1 kB / 443.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.326e-06/0.2771, allocations: 128 / 443.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.788e-05/0.2771, allocations: 15.44 kB / 443.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2771, allocations: 0 / 443.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of Templates: time 0.006631/0.2838, allocations: 3.227 MB / 447.1 MB, free: 6.578 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.480440406128764]