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.001508/0.001508, allocations: 112.5 kB / 21.19 MB, free: 0.7617 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.001742/0.001742, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.393/1.393, allocations: 230.6 MB / 258.3 MB, free: 7.977 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.00167/0.00167, allocations: 43.92 kB / 379 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2468, allocations: 53.37 MB / 432.4 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002608/0.2494, allocations: 1.252 MB / 433.6 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.2504, allocations: 478.3 kB / 434.1 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.184e-05/0.2505, allocations: 0 / 434.1 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.668e-05/0.2505, allocations: 11.86 kB / 434.1 MB, free: 5.188 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.0005049/0.251, allocations: 71.8 kB / 434.2 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.2512, allocations: 63.75 kB / 434.3 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.2513, allocations: 47.89 kB / 434.3 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.974e-05/0.2513, allocations: 4 kB / 434.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.056e-05/0.2514, allocations: 27.91 kB / 434.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.036e-05/0.2515, allocations: 19.92 kB / 434.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.192e-05/0.2515, allocations: 0 / 434.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003386/0.2518, allocations: 159.7 kB / 434.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.991e-05/0.2519, allocations: 31.91 kB / 434.5 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.252, allocations: 51.61 kB / 434.6 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003039/0.2523, allocations: 181.5 kB / 434.8 MB, free: 4.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.2523, allocations: 0 / 434.8 MB, free: 4.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2523, allocations: 0 / 434.8 MB, free: 4.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.2523, allocations: 0 / 434.8 MB, free: 4.547 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.0007065/0.253, allocations: 0.5007 MB / 435.3 MB, free: 4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.253, allocations: 8.031 kB / 435.3 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.2532, allocations: 20.84 kB / 435.3 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.2533, allocations: 118.4 kB / 435.4 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.2533, allocations: 4.375 kB / 435.4 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.2533, allocations: 4.375 kB / 435.4 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003366/0.2537, allocations: 283.8 kB / 435.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.2537, allocations: 4.188 kB / 435.7 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.2537, allocations: 3.938 kB / 435.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.2537, allocations: 4 kB / 435.7 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001592/0.2539, allocations: 143.9 kB / 435.8 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000202/0.2541, allocations: 173.2 kB / 436 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002142/0.2543, allocations: 181.1 kB / 436.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.2544, allocations: 153.7 kB / 436.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.215e-06/0.2544, allocations: 0 / 436.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005654/0.255, allocations: 480.6 kB / 436.8 MB, free: 2.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.042e-06/0.255, allocations: 4 kB / 436.8 MB, free: 2.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.0009182/0.2559, allocations: 0.735 MB / 437.6 MB, free: 1.543 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.256, allocations: 160.6 kB / 437.7 MB, free: 1.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.2562, allocations: 105.8 kB / 437.8 MB, free: 1.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.2562, allocations: 29.64 kB / 437.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.413e-05/0.2563, allocations: 89.12 kB / 437.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.02e-05/0.2564, allocations: 95.16 kB / 438 MB, free: 1.023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.768e-05/0.2564, allocations: 41.7 kB / 438.1 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.2566, allocations: 322.8 kB / 438.4 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.688e-05/0.2567, allocations: 84.34 kB / 438.5 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.2568, allocations: 110.4 kB / 438.6 MB, free: 468 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003724/0.2571, allocations: 417.4 kB / 439 MB, free: 20 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2571, allocations: 0 / 439 MB, free: 20 kB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004104/0.2575, allocations: 352.8 kB / 439.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.2577, allocations: 115.3 kB / 439.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2577, allocations: 336 / 439.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.2577, allocations: 0 / 439.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.2577, allocations: 0 / 439.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.2577, allocations: 8.094 kB / 439.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.791e-05/0.2577, allocations: 19.84 kB / 439.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.2578, allocations: 8 kB / 439.5 MB, free: 15.5 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.0002937/0.258, allocations: 299.7 kB / 439.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.683e-05/0.2581, allocations: 31.83 kB / 439.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.509e-05/0.2581, allocations: 5.656 kB / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.2581, allocations: 4 kB / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2581, allocations: 0 / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.2581, allocations: 0 / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002205/0.2584, allocations: 212.4 kB / 440 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2584, allocations: 0 / 440 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.2584, allocations: 0 / 440 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.2584, allocations: 3.938 kB / 440 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.2584, allocations: 23.98 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2584, allocations: 0 / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2584, allocations: 3.938 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/0.2598, allocations: 1.244 MB / 441.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.654e-05/0.2598, allocations: 31.78 kB / 441.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.2599, allocations: 71.88 kB / 441.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.51e-05/0.26, allocations: 8 kB / 441.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/0.26, allocations: 12.03 kB / 441.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.822e-05/0.2601, allocations: 19.98 kB / 441.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.663e-05/0.2601, allocations: 87.22 kB / 441.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2601, allocations: 0 / 441.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003365/0.2605, allocations: 91.86 kB / 441.6 MB, free: 13.26 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.0006292/0.2611, allocations: 301 kB / 441.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001154/0.2622, allocations: 1.065 MB / 443 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.451e-06/0.2622, allocations: 4 kB / 443 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008867/0.2631, allocations: 0.8966 MB / 443.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.2633, allocations: 20 kB / 443.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006819/0.264, allocations: 414 kB / 444.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.2644, allocations: 0.7285 MB / 445 MB, free: 9.762 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.596e-05/0.2644, allocations: 7.438 kB / 445 MB, free: 9.754 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2644, allocations: 0 / 445 MB, free: 9.754 MB / 350.1 MB Notification: Performance of Templates: time 0.005697/0.2701, allocations: 2.87 MB / 447.9 MB, free: 6.891 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: 7.276961635099724]