Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 187.3 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_4_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 51.92 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2498, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002313/0.2521, allocations: 1.234 MB / 423.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009795/0.2531, allocations: 477 kB / 424.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.558e-05/0.2531, allocations: 4 kB / 424.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.907e-05/0.2532, allocations: 0 / 424.3 MB, free: 12.9 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0004476/0.2536, allocations: 79.7 kB / 424.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001466/0.2538, allocations: 67.75 kB / 424.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.2539, allocations: 51.83 kB / 424.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.653e-05/0.2539, allocations: 0 / 424.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.417e-05/0.2539, allocations: 19.98 kB / 424.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.939e-05/0.254, allocations: 19.91 kB / 424.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.083e-05/0.254, allocations: 3.938 kB / 424.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003063/0.2543, allocations: 159.7 kB / 424.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.463e-05/0.2543, allocations: 39.86 kB / 424.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.711e-05/0.2544, allocations: 47.67 kB / 424.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002482/0.2546, allocations: 175.7 kB / 425 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2546, allocations: 7.984 kB / 425 MB, free: 12.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2546, allocations: 3.938 kB / 425 MB, free: 12.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.2547, allocations: 0 / 425 MB, free: 12.24 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.000582/0.2552, allocations: 0.489 MB / 425.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.2553, allocations: 8.031 kB / 425.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.973e-05/0.2553, allocations: 58.72 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.2555, allocations: 28.8 kB / 425.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.2556, allocations: 118.4 kB / 425.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.2556, allocations: 4.375 kB / 425.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.2556, allocations: 8.375 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.2559, allocations: 278.9 kB / 426 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.2559, allocations: 3.938 kB / 426 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.256, allocations: 4 kB / 426 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.256, allocations: 3.938 kB / 426 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000165/0.2561, allocations: 148.3 kB / 426.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003456/0.2565, allocations: 356.7 kB / 426.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.2567, allocations: 193.4 kB / 426.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.2569, allocations: 170.1 kB / 426.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.093e-06/0.2569, allocations: 0 / 426.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004954/0.2574, allocations: 490.8 kB / 427.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.122e-06/0.2574, allocations: 0 / 427.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009693/0.2584, allocations: 0.7606 MB / 428.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.2585, allocations: 160.5 kB / 428.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.838e-05/0.2586, allocations: 105.8 kB / 428.3 MB, free: 8.633 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.2586, allocations: 29.73 kB / 428.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.729e-05/0.2587, allocations: 89.14 kB / 428.5 MB, free: 8.508 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.379e-05/0.2587, allocations: 91.23 kB / 428.5 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.017e-05/0.2588, allocations: 45.69 kB / 428.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.259, allocations: 326.8 kB / 428.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.439e-05/0.2591, allocations: 84.41 kB / 429 MB, free: 7.953 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.2592, allocations: 116.3 kB / 429.1 MB, free: 7.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003941/0.2596, allocations: 436.8 kB / 429.5 MB, free: 7.379 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.2596, allocations: 7.938 kB / 429.5 MB, free: 7.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003989/0.26, allocations: 368.5 kB / 429.9 MB, free: 6.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/0.2601, allocations: 107.3 kB / 430 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.2601, allocations: 7.938 kB / 430 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.2601, allocations: 0 / 430 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.517e-05/0.2602, allocations: 7.938 kB / 430 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.2602, allocations: 0 / 430 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.646e-05/0.2602, allocations: 27.84 kB / 430 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.2603, allocations: 12 kB / 430.1 MB, free: 6.82 MB / 334.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.0002926/0.2606, allocations: 307.7 kB / 430.4 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.883e-05/0.2606, allocations: 23.91 kB / 430.4 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.044e-05/0.2606, allocations: 9.656 kB / 430.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.2606, allocations: 4 kB / 430.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2606, allocations: 0 / 430.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.2607, allocations: 3.984 kB / 430.4 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.2622, allocations: 1.439 MB / 431.8 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2622, allocations: 0 / 431.8 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.204e-05/0.2622, allocations: 4 kB / 431.8 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.2622, allocations: 0 / 431.8 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.383e-05/0.2622, allocations: 19.98 kB / 431.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.2622, allocations: 4 kB / 431.9 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2622, allocations: 4 kB / 431.9 MB, free: 4.926 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.2636, allocations: 1.335 MB / 433.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.325e-05/0.2636, allocations: 19.84 kB / 433.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.2638, allocations: 67.94 kB / 433.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.338e-05/0.2638, allocations: 8 kB / 433.3 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.916e-05/0.2639, allocations: 15.98 kB / 433.3 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/0.2639, allocations: 23.98 kB / 433.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.157e-05/0.264, allocations: 91.62 kB / 433.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.264, allocations: 0 / 433.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003797/0.2643, allocations: 91.86 kB / 433.5 MB, free: 3.246 MB / 334.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.002789/0.2671, allocations: 2.34 MB / 435.9 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.2683, allocations: 1.074 MB / 436.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.2683, allocations: 0 / 436.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008661/0.2692, allocations: 0.9006 MB / 437.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.2694, allocations: 23.94 kB / 437.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00413/0.2736, allocations: 3.308 MB / 441.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.274, allocations: 0.728 MB / 441.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.741e-05/0.274, allocations: 0 / 441.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.268e-05/0.2741, allocations: 39.42 kB / 441.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2741, allocations: 0 / 441.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03195/0.306, allocations: 5.116 MB / 447 MB, free: 5.656 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.24, allocations: 12.08 kB / 447.1 MB, free: 5.648 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 13.73080514799949]