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.001839/0.001839, allocations: 106.8 kB / 21.2 MB, free: 0.6406 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.002228/0.002228, allocations: 215.5 kB / 24.49 MB, free: 3.934 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.444/1.444, allocations: 230.6 MB / 258.3 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.001561/0.001561, allocations: 39.94 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2059/0.2075, allocations: 53.37 MB / 432.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002219/0.2097, allocations: 1.25 MB / 433.6 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009245/0.2106, allocations: 446.4 kB / 434 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.355e-05/0.2107, allocations: 0 / 434 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.046e-05/0.2107, allocations: 0 / 434 MB, free: 4.984 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.0004443/0.2111, allocations: 83.72 kB / 434.1 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001579/0.2113, allocations: 71.73 kB / 434.2 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.929e-05/0.2114, allocations: 43.91 kB / 434.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.415e-05/0.2114, allocations: 7.938 kB / 434.2 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.227e-05/0.2115, allocations: 15.97 kB / 434.2 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.838e-05/0.2115, allocations: 23.91 kB / 434.3 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.542e-05/0.2115, allocations: 4 kB / 434.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002944/0.2118, allocations: 151.7 kB / 434.4 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.73e-05/0.2119, allocations: 35.86 kB / 434.5 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.528e-05/0.2119, allocations: 43.72 kB / 434.5 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002618/0.2122, allocations: 185.9 kB / 434.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2122, allocations: 0 / 434.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.407e-06/0.2122, allocations: 3.984 kB / 434.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.2122, allocations: 0 / 434.7 MB, free: 4.332 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.0005641/0.2128, allocations: 480.7 kB / 435.2 MB, free: 3.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.2128, allocations: 8.031 kB / 435.2 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.2129, allocations: 24.83 kB / 435.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.213, allocations: 122.4 kB / 435.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.2131, allocations: 4.375 kB / 435.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.2131, allocations: 8.375 kB / 435.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.2135, allocations: 399.1 kB / 435.7 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.2135, allocations: 192 / 435.7 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.2135, allocations: 3.938 kB / 435.7 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.2135, allocations: 0 / 435.7 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002658/0.2138, allocations: 271.2 kB / 436 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001597/0.214, allocations: 133.8 kB / 436.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002986/0.2142, allocations: 296.5 kB / 436.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002584/0.2145, allocations: 269.1 kB / 436.7 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.2145, allocations: 0 / 436.7 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005576/0.2151, allocations: 0.5781 MB / 437.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.082e-06/0.2151, allocations: 0 / 437.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.001094/0.2162, allocations: 0.972 MB / 438.2 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.675e-05/0.2163, allocations: 164.4 kB / 438.4 MB, free: 332 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.569e-05/0.2164, allocations: 101.9 kB / 438.5 MB, free: 220 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.2164, allocations: 29.69 kB / 438.5 MB, free: 184 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.955e-05/0.2164, allocations: 85.14 kB / 438.6 MB, free: 96 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.699e-05/0.2165, allocations: 91.22 kB / 438.7 MB, free: 4 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.935e-05/0.2166, allocations: 41.7 kB / 438.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.2167, allocations: 326.8 kB / 439 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/0.2169, allocations: 203.7 kB / 439.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.2171, allocations: 233.8 kB / 439.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004358/0.2175, allocations: 469.3 kB / 439.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2175, allocations: 0 / 439.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005119/0.218, allocations: 492.5 kB / 440.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.2182, allocations: 107.3 kB / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.2182, allocations: 7.984 kB / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.2182, allocations: 3.938 kB / 440.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.2182, allocations: 0 / 440.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.2182, allocations: 0 / 440.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.296e-05/0.2182, allocations: 23.84 kB / 440.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.819e-05/0.2183, allocations: 12.09 kB / 440.5 MB, free: 14.01 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.0002575/0.2185, allocations: 271.7 kB / 440.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.281e-05/0.2186, allocations: 31.91 kB / 440.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.436e-05/0.2186, allocations: 9.656 kB / 440.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2186, allocations: 3.938 kB / 440.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.2186, allocations: 3.984 kB / 440.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.755e-05/0.2186, allocations: 31.73 kB / 440.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.2187, allocations: 63.94 kB / 441 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.585e-05/0.2188, allocations: 12 kB / 441 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/0.2188, allocations: 11.94 kB / 441 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001183/0.22, allocations: 1.173 MB / 442.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001144/0.2212, allocations: 1.111 MB / 443.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003879/0.2215, allocations: 351.2 kB / 443.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.541e-05/0.2216, allocations: 87.38 kB / 443.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of Backend: time 2.51e-07/0.2216, allocations: 0 / 443.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.2229, allocations: 0.7158 MB / 444.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of SimCode: time 0.0007654/0.2237, allocations: 0.881 MB / 445.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of Templates: time 0.006827/0.2305, allocations: 3.402 MB / 448.7 MB, free: 5.688 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/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: 4.218828313001723]