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.001426/0.001426, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001893/0.001893, allocations: 210.2 kB / 23.73 MB, free: 4.387 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.422/1.422, 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: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 47.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2707, allocations: 53.36 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002669/0.2734, allocations: 1.246 MB / 432.3 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.2744, allocations: 450.4 kB / 432.8 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.07e-05/0.2744, allocations: 4 kB / 432.8 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.665e-05/0.2745, allocations: 3.938 kB / 432.8 MB, free: 4.953 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.0005286/0.275, allocations: 79.72 kB / 432.8 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001817/0.2752, allocations: 67.75 kB / 432.9 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001033/0.2753, allocations: 39.91 kB / 433 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.063e-05/0.2753, allocations: 7.984 kB / 433 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.166e-05/0.2754, allocations: 19.92 kB / 433 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.696e-05/0.2754, allocations: 27.91 kB / 433 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.2754, allocations: 0 / 433 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003507/0.2758, allocations: 151.7 kB / 433.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.28e-05/0.2758, allocations: 35.86 kB / 433.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.433e-05/0.2759, allocations: 35.73 kB / 433.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003043/0.2762, allocations: 177 kB / 433.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2762, allocations: 4 kB / 433.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2762, allocations: 0 / 433.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.2762, allocations: 0 / 433.4 MB, free: 4.32 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.0006019/0.2768, allocations: 490.8 kB / 433.9 MB, free: 3.797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.2769, allocations: 8.031 kB / 433.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.074e-05/0.2769, allocations: 58.69 kB / 433.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.2771, allocations: 28.81 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.2772, allocations: 118.4 kB / 434.1 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.2772, allocations: 8.312 kB / 434.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.2773, allocations: 8.375 kB / 434.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004537/0.2777, allocations: 398.3 kB / 434.5 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.2777, allocations: 3.938 kB / 434.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.2777, allocations: 4 kB / 434.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.2777, allocations: 0 / 434.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002926/0.278, allocations: 263.7 kB / 434.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000384/0.2784, allocations: 364.6 kB / 435.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003488/0.2788, allocations: 312.8 kB / 435.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002835/0.279, allocations: 281.4 kB / 435.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.2791, allocations: 0 / 435.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006511/0.2797, allocations: 0.5802 MB / 436.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.293e-06/0.2797, allocations: 0 / 436.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.00117/0.2809, allocations: 1.001 MB / 437.3 MB, free: 140 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/0.281, allocations: 156.5 kB / 437.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.961e-05/0.2811, allocations: 110 kB / 437.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.2811, allocations: 29.64 kB / 437.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.807e-05/0.2812, allocations: 85.17 kB / 437.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.358e-05/0.2813, allocations: 99.23 kB / 437.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.445e-05/0.2813, allocations: 41.69 kB / 437.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.2815, allocations: 330.8 kB / 438.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.2817, allocations: 203.8 kB / 438.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.2819, allocations: 235.7 kB / 438.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004561/0.2824, allocations: 484.9 kB / 439 MB, free: 14.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2824, allocations: 3.938 kB / 439 MB, free: 14.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005696/0.283, allocations: 0.4998 MB / 439.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.2831, allocations: 111.3 kB / 439.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2831, allocations: 4.031 kB / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.2831, allocations: 0 / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.774e-05/0.2832, allocations: 8.062 kB / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.2832, allocations: 4 kB / 439.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.916e-05/0.2832, allocations: 23.78 kB / 439.7 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.2833, allocations: 8 kB / 439.7 MB, free: 13.57 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: 49 (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],$outputAlias_r1024,r1024,$outputAlias_r128,r128,$outputAlias_r64,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 (5): * Single equations (assignments): 3 * 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.0003117/0.2836, allocations: 291.6 kB / 440 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.547e-05/0.2836, allocations: 31.8 kB / 440 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.529e-05/0.2836, allocations: 9.656 kB / 440 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2837, allocations: 0 / 440 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2837, allocations: 0 / 440 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.2837, allocations: 0 / 440 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.2849, allocations: 1.051 MB / 441 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.2849, allocations: 4 kB / 441.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.827e-05/0.2849, allocations: 15.92 kB / 441.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.2849, allocations: 3.938 kB / 441.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/0.2849, allocations: 16 kB / 441.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2849, allocations: 0 / 441.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2849, allocations: 0 / 441.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.2861, allocations: 0.9986 MB / 442.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.713e-05/0.2862, allocations: 23.84 kB / 442.1 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.2863, allocations: 63.94 kB / 442.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.791e-05/0.2864, allocations: 12 kB / 442.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.861e-05/0.2864, allocations: 11.98 kB / 442.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/0.2864, allocations: 19.98 kB / 442.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.855e-05/0.2865, allocations: 91.22 kB / 442.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2865, allocations: 0 / 442.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003942/0.2869, allocations: 95.86 kB / 442.4 MB, free: 10.71 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: 49 ($whenCondition1,rImpure,iImpure,$whenCondition2,r64,$outputAlias_r64,r128,$outputAlias_r128,r1024,$outputAlias_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]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_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,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.002431/0.2893, allocations: 2.147 MB / 444.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00097/0.2903, allocations: 0.8774 MB / 445.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2903, allocations: 0 / 445.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005631/0.2909, allocations: 0.541 MB / 446 MB, free: 7.035 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.2912, allocations: 24.12 kB / 446 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003915/0.2951, allocations: 3.55 MB / 449.5 MB, free: 3.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001246/0.2952, allocations: 114.8 kB / 449.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.379e-05/0.2952, allocations: 0 / 449.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.374e-05/0.2953, allocations: 39.61 kB / 449.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2953, allocations: 0 / 449.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03318/0.3284, allocations: 5.419 MB / 455.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.94, allocations: 10.64 kB / 455.1 MB, free: 13.82 MB / 366.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000396747 Modelica_4_1_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv","/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: 14.546111597679555]