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.001341/0.001341, 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.001444/0.001444, allocations: 211.5 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.465/1.465, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.00163/0.00163, allocations: 47.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2666, allocations: 53.35 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002621/0.2692, allocations: 1.246 MB / 432.3 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.2703, allocations: 446.4 kB / 432.8 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.814e-05/0.2703, allocations: 0 / 432.8 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.188e-05/0.2704, allocations: 3.938 kB / 432.8 MB, free: 4.949 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.000487/0.2708, allocations: 83.7 kB / 432.8 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001436/0.271, allocations: 67.77 kB / 432.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.641e-05/0.2711, allocations: 47.89 kB / 433 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.197e-05/0.2711, allocations: 11.92 kB / 433 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.049e-05/0.2712, allocations: 8 kB / 433 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.626e-05/0.2712, allocations: 23.91 kB / 433 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.542e-05/0.2712, allocations: 4 kB / 433 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003116/0.2715, allocations: 159.7 kB / 433.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.15e-05/0.2716, allocations: 35.86 kB / 433.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.838e-05/0.2716, allocations: 39.75 kB / 433.2 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002622/0.2719, allocations: 181 kB / 433.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2719, allocations: 4 kB / 433.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2719, allocations: 0 / 433.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.2719, allocations: 0 / 433.4 MB, free: 4.297 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.0005891/0.2725, allocations: 484.7 kB / 433.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.2725, allocations: 12.03 kB / 433.9 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.52e-05/0.2726, allocations: 54.69 kB / 433.9 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.2728, allocations: 24.83 kB / 434 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.2729, allocations: 118.4 kB / 434.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.2729, allocations: 4.375 kB / 434.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.62e-05/0.2729, allocations: 4.375 kB / 434.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00047/0.2734, allocations: 402.3 kB / 434.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.2734, allocations: 7.938 kB / 434.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.2734, allocations: 0 / 434.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.2734, allocations: 3.938 kB / 434.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.2737, allocations: 275.6 kB / 434.8 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003823/0.2741, allocations: 352.7 kB / 435.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003474/0.2744, allocations: 312.8 kB / 435.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002738/0.2747, allocations: 285.4 kB / 435.7 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.2747, allocations: 0 / 435.7 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006605/0.2753, allocations: 0.5763 MB / 436.3 MB, free: 1.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.163e-06/0.2753, allocations: 7.938 kB / 436.3 MB, free: 1.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.00114/0.2765, allocations: 0.9976 MB / 437.3 MB, free: 120 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.2766, allocations: 160.5 kB / 437.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.415e-05/0.2767, allocations: 105.7 kB / 437.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.59e-05/0.2767, allocations: 29.7 kB / 437.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.517e-05/0.2768, allocations: 85.14 kB / 437.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.227e-05/0.2768, allocations: 91.23 kB / 437.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.582e-05/0.2769, allocations: 45.69 kB / 437.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002202/0.2771, allocations: 326.8 kB / 438.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.2773, allocations: 207.8 kB / 438.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002108/0.2776, allocations: 231.7 kB / 438.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004611/0.278, allocations: 492.9 kB / 439 MB, free: 14.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.278, allocations: 3.938 kB / 439 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005762/0.2786, allocations: 0.4998 MB / 439.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.2787, allocations: 107.3 kB / 439.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.2787, allocations: 4 kB / 439.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.2787, allocations: 0 / 439.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.718e-05/0.2788, allocations: 8.062 kB / 439.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.2788, allocations: 0 / 439.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.011e-05/0.2789, allocations: 27.78 kB / 439.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.2789, allocations: 8 kB / 439.7 MB, free: 13.55 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.0002807/0.2792, allocations: 287.6 kB / 440 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.043e-05/0.2792, allocations: 31.86 kB / 440 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.599e-05/0.2792, allocations: 9.656 kB / 440 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2793, allocations: 8 kB / 440 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2793, allocations: 0 / 440 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.2793, allocations: 0 / 440 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.2804, allocations: 1.054 MB / 441.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2804, allocations: 0 / 441.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.377e-05/0.2804, allocations: 11.92 kB / 441.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.2804, allocations: 4 kB / 441.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.772e-05/0.2805, allocations: 12 kB / 441.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.2805, allocations: 4 kB / 441.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2805, allocations: 480 / 441.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.2816, allocations: 0.9947 MB / 442.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.263e-05/0.2816, allocations: 27.78 kB / 442.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.2817, allocations: 67.94 kB / 442.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.768e-05/0.2818, allocations: 15.98 kB / 442.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.273e-05/0.2818, allocations: 11.98 kB / 442.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.822e-05/0.2818, allocations: 19.98 kB / 442.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.897e-05/0.2819, allocations: 87.22 kB / 442.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2819, allocations: 3.938 kB / 442.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003743/0.2823, allocations: 95.86 kB / 442.4 MB, free: 10.69 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.002402/0.2847, allocations: 2.15 MB / 444.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009641/0.2856, allocations: 0.8735 MB / 445.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.2856, allocations: 4 kB / 445.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000522/0.2862, allocations: 0.5331 MB / 446 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.2864, allocations: 22.41 kB / 446 MB, free: 6.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003876/0.2903, allocations: 3.554 MB / 449.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.2904, allocations: 114.9 kB / 449.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.619e-05/0.2904, allocations: 4 kB / 449.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.235e-05/0.2905, allocations: 35.42 kB / 449.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2905, allocations: 0 / 449.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03425/0.3247, allocations: 5.447 MB / 455.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.57, allocations: 10.64 kB / 455.1 MB, free: 13.78 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.180613728996832]