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.001582/0.001582, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002205/0.002205, allocations: 209.5 kB / 24.48 MB, free: 3.941 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 2.102/2.102, allocations: 230.6 MB / 258.2 MB, free: 7.781 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.001719/0.001719, allocations: 51.92 kB / 379 MB, free: 2.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2961, allocations: 53.36 MB / 432.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002751/0.2988, allocations: 1.246 MB / 433.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003009/0.3018, allocations: 450.4 kB / 434 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.541e-05/0.3019, allocations: 0 / 434 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.73e-05/0.3019, allocations: 3.938 kB / 434 MB, free: 4.988 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.004772/0.3067, allocations: 75.78 kB / 434.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001982/0.3069, allocations: 71.73 kB / 434.2 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001028/0.307, allocations: 39.92 kB / 434.2 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.205e-05/0.307, allocations: 11.92 kB / 434.2 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.127e-05/0.3071, allocations: 15.97 kB / 434.2 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.582e-05/0.3071, allocations: 23.92 kB / 434.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.3071, allocations: 4 kB / 434.3 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003627/0.3075, allocations: 155.7 kB / 434.4 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.028e-05/0.3075, allocations: 35.86 kB / 434.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.042e-05/0.3076, allocations: 43.72 kB / 434.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003091/0.3079, allocations: 177.9 kB / 434.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.3079, allocations: 4 kB / 434.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3079, allocations: 0 / 434.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.3079, allocations: 0 / 434.7 MB, free: 4.348 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.0006355/0.3086, allocations: 484.7 kB / 435.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.3086, allocations: 8.031 kB / 435.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001521/0.3087, allocations: 32.77 kB / 435.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.3089, allocations: 126.4 kB / 435.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.3089, allocations: 384 / 435.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.685e-05/0.3089, allocations: 4.375 kB / 435.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005109/0.3094, allocations: 399.1 kB / 435.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.3094, allocations: 192 / 435.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.3094, allocations: 7.938 kB / 435.7 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.3094, allocations: 0 / 435.7 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003091/0.3098, allocations: 263.2 kB / 436 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001795/0.3099, allocations: 133.8 kB / 436.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003554/0.3103, allocations: 304.5 kB / 436.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003081/0.3106, allocations: 265 kB / 436.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.877e-06/0.3106, allocations: 0 / 436.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006648/0.3113, allocations: 0.5742 MB / 437.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.203e-06/0.3113, allocations: 0 / 437.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.001323/0.3126, allocations: 0.972 MB / 438.2 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.3127, allocations: 168.4 kB / 438.4 MB, free: 340 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.735e-05/0.3128, allocations: 101.8 kB / 438.5 MB, free: 228 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.3128, allocations: 25.7 kB / 438.5 MB, free: 196 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.875e-05/0.3129, allocations: 97.19 kB / 438.6 MB, free: 96 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.937e-05/0.313, allocations: 91.22 kB / 438.7 MB, free: 4 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.875e-05/0.3131, allocations: 37.7 kB / 438.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3132, allocations: 322.8 kB / 439 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.3134, allocations: 203.7 kB / 439.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002457/0.3137, allocations: 229.8 kB / 439.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005223/0.3142, allocations: 469.3 kB / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3142, allocations: 0 / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006082/0.3148, allocations: 492.5 kB / 440.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.3149, allocations: 111.3 kB / 440.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.3149, allocations: 3.984 kB / 440.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.315, allocations: 8.031 kB / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.272e-06/0.315, allocations: 0 / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.315, allocations: 0 / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.079e-05/0.3151, allocations: 27.84 kB / 440.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.425e-05/0.3151, allocations: 8 kB / 440.5 MB, free: 14.02 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.01043/0.3255, allocations: 279.7 kB / 440.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.781e-05/0.3256, allocations: 31.91 kB / 440.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.885e-05/0.3256, allocations: 9.594 kB / 440.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3256, allocations: 0 / 440.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.3256, allocations: 7.938 kB / 440.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.3256, allocations: 3.984 kB / 440.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001867/0.3258, allocations: 153.1 kB / 441 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3258, allocations: 3.938 kB / 441 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.107e-06/0.3258, allocations: 4 kB / 441 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.3258, allocations: 4 kB / 441 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-05/0.3259, allocations: 23.97 kB / 441 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.3259, allocations: 3.938 kB / 441 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3259, allocations: 0 / 441 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.3273, allocations: 0.9039 MB / 441.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.696e-05/0.3273, allocations: 23.8 kB / 442 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001347/0.3274, allocations: 67.94 kB / 442 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.331e-05/0.3275, allocations: 11.94 kB / 442.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-05/0.3276, allocations: 19.92 kB / 442.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/0.3276, allocations: 15.98 kB / 442.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.079e-05/0.3277, allocations: 83.31 kB / 442.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3277, allocations: 0 / 442.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004684/0.3281, allocations: 95.86 kB / 442.3 MB, free: 12.18 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.0007701/0.3289, allocations: 301 kB / 442.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001151/0.33, allocations: 0.8607 MB / 443.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.33, allocations: 4 kB / 443.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006554/0.3307, allocations: 0.5331 MB / 444 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.331, allocations: 30.48 kB / 444 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008569/0.3318, allocations: 0.5072 MB / 444.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/0.3319, allocations: 110.1 kB / 444.6 MB, free: 9.734 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.175e-06/0.332, allocations: 0 / 444.6 MB, free: 9.734 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.531e-05/0.332, allocations: 7.438 kB / 444.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.332, allocations: 0 / 444.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of Templates: time 0.01894/0.3509, allocations: 3.233 MB / 447.8 MB, free: 6.531 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 -s cvode -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/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_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: 6.690005048003513]