Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.00127, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 230.5 MB / 254 MB, free: 15.17 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 71.89 kB / 373 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09953/0.1014, allocations: 53.36 MB / 426.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002546/0.104, allocations: 1.259 MB / 427.6 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.1051, allocations: 458.4 kB / 428.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.992e-05/0.1051, allocations: 0 / 428.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.691e-05/0.1051, allocations: 3.984 kB / 428.1 MB, free: 2.941 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0004977/0.1056, allocations: 71.73 kB / 428.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001687/0.1058, allocations: 67.75 kB / 428.2 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001273/0.1059, allocations: 39.91 kB / 428.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.885e-05/0.106, allocations: 8 kB / 428.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.416e-05/0.106, allocations: 23.91 kB / 428.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.205e-05/0.106, allocations: 23.91 kB / 428.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/0.1061, allocations: 3.938 kB / 428.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002491/0.1063, allocations: 127.8 kB / 428.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.56e-05/0.1064, allocations: 31.86 kB / 428.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.5e-05/0.1064, allocations: 55.66 kB / 428.5 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002729/0.1067, allocations: 171.3 kB / 428.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.1067, allocations: 3.938 kB / 428.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1067, allocations: 0 / 428.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.1067, allocations: 4 kB / 428.7 MB, free: 2.32 MB / 350.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.0007279/0.1075, allocations: 0.5682 MB / 429.2 MB, free: 1.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.1075, allocations: 12.03 kB / 429.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.167e-05/0.1076, allocations: 54.69 kB / 429.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.1077, allocations: 24.83 kB / 429.3 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.1079, allocations: 176.2 kB / 429.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.1079, allocations: 4.375 kB / 429.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.1079, allocations: 8.375 kB / 429.5 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003724/0.1083, allocations: 282.9 kB / 429.8 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.1083, allocations: 11.88 kB / 429.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.1083, allocations: 0 / 429.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.1083, allocations: 0 / 429.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.1085, allocations: 148.3 kB / 430 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003927/0.1089, allocations: 377.6 kB / 430.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002448/0.1092, allocations: 201.4 kB / 430.5 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/0.1094, allocations: 166 kB / 430.7 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.185e-06/0.1094, allocations: 4 kB / 430.7 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006177/0.11, allocations: 490.7 kB / 431.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 1.222e-06/0.11, allocations: 4 kB / 431.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.001035/0.111, allocations: 0.758 MB / 431.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.1111, allocations: 156.5 kB / 432.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.639e-05/0.1112, allocations: 105.8 kB / 432.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.1113, allocations: 25.7 kB / 432.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.97e-05/0.1113, allocations: 85.14 kB / 432.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.1114, allocations: 103.1 kB / 432.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.279e-05/0.1115, allocations: 41.69 kB / 432.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.1117, allocations: 334.9 kB / 432.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.1118, allocations: 84.41 kB / 432.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.1119, allocations: 116.3 kB / 433 MB, free: 13.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004234/0.1123, allocations: 431.7 kB / 433.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1123, allocations: 3.938 kB / 433.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004242/0.1127, allocations: 376.2 kB / 433.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002225/0.113, allocations: 107.3 kB / 433.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.113, allocations: 0 / 433.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.113, allocations: 8.031 kB / 433.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.093e-05/0.1131, allocations: 7.938 kB / 433.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.1131, allocations: 0 / 433.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.337e-05/0.1131, allocations: 27.84 kB / 433.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.1132, allocations: 15.98 kB / 433.9 MB, free: 12.68 MB / 366.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],$outputAlias_r1024,$outputAlias_r128,$outputAlias_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.0002976/0.1135, allocations: 295.7 kB / 434.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.868e-05/0.1135, allocations: 31.91 kB / 434.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.23e-05/0.1135, allocations: 5.562 kB / 434.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1135, allocations: 0 / 434.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.1135, allocations: 4 kB / 434.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.1135, allocations: 3.984 kB / 434.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.1154, allocations: 1.456 MB / 435.7 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1154, allocations: 4 kB / 435.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.464e-05/0.1155, allocations: 4 kB / 435.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.1155, allocations: 0 / 435.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.1155, allocations: 19.98 kB / 435.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.1155, allocations: 0 / 435.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1155, allocations: 0 / 435.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001482/0.117, allocations: 1.342 MB / 437.1 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.084e-05/0.117, allocations: 105.4 kB / 437.2 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.1172, allocations: 63.95 kB / 437.2 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.537e-05/0.1172, allocations: 8 kB / 437.2 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.1173, allocations: 11.98 kB / 437.3 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.03e-05/0.1173, allocations: 19.98 kB / 437.3 MB, free: 9.188 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.54e-05/0.1174, allocations: 87.2 kB / 437.4 MB, free: 9.102 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1174, allocations: 0 / 437.4 MB, free: 9.102 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004062/0.1178, allocations: 95.86 kB / 437.5 MB, free: 9.008 MB / 366.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 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$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.002997/0.1208, allocations: 2.362 MB / 439.8 MB, free: 6.629 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001209/0.122, allocations: 1.074 MB / 440.9 MB, free: 5.531 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.122, allocations: 0 / 440.9 MB, free: 5.531 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009104/0.1229, allocations: 0.9006 MB / 441.8 MB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.1232, allocations: 20 kB / 441.8 MB, free: 4.586 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004083/0.1272, allocations: 3.32 MB / 445.1 MB, free: 1.148 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.1276, allocations: 0.7317 MB / 445.9 MB, free: 400 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.467e-05/0.1276, allocations: 4 kB / 445.9 MB, free: 396 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.672e-05/0.1277, allocations: 35.42 kB / 445.9 MB, free: 364 kB / 366.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1277, allocations: 0 / 445.9 MB, free: 364 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2292/0.3569, allocations: 4.764 MB / 450.7 MB, free: 24.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.087/8.444, allocations: 4.25 kB / 450.7 MB, free: 24.94 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 10.899039849988185]