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.001664/0.001664, allocations: 116 kB / 17.78 MB, free: 5.289 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.001965/0.001965, allocations: 190.9 kB / 20.73 MB, free: 2.352 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.543/1.543, allocations: 225.6 MB / 249.1 MB, free: 3.605 MB / 190.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.001508/0.001508, allocations: 47.92 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09882/0.1003, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002295/0.1026, allocations: 1.232 MB / 419 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00098/0.1036, allocations: 480.2 kB / 419.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.55e-05/0.1036, allocations: 0 / 419.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.641e-05/0.1037, allocations: 7.922 kB / 419.5 MB, free: 10.91 MB / 350.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.0004388/0.1041, allocations: 71.73 kB / 419.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001481/0.1043, allocations: 63.75 kB / 419.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.1044, allocations: 39.97 kB / 419.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.922e-05/0.1044, allocations: 4 kB / 419.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.232e-05/0.1045, allocations: 27.84 kB / 419.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.293e-05/0.1045, allocations: 23.91 kB / 419.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.502e-05/0.1045, allocations: 4 kB / 419.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002563/0.1048, allocations: 127.8 kB / 419.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.739e-05/0.1048, allocations: 35.86 kB / 419.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.628e-05/0.1049, allocations: 51.66 kB / 419.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.1052, allocations: 167.3 kB / 420.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1052, allocations: 4 kB / 420.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.1052, allocations: 0 / 420.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1052, allocations: 0 / 420.1 MB, free: 10.3 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.0007188/0.1059, allocations: 0.572 MB / 420.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.1059, allocations: 8.031 kB / 420.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.885e-05/0.106, allocations: 62.73 kB / 420.7 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.1062, allocations: 28.77 kB / 420.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.1063, allocations: 180.2 kB / 420.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.1063, allocations: 384 / 420.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.821e-05/0.1063, allocations: 12.31 kB / 420.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003653/0.1067, allocations: 282.9 kB / 421.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.1067, allocations: 3.938 kB / 421.2 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.1067, allocations: 4 kB / 421.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.1067, allocations: 0 / 421.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.1069, allocations: 148.3 kB / 421.4 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000395/0.1073, allocations: 381.6 kB / 421.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002417/0.1075, allocations: 197.4 kB / 421.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.1078, allocations: 162 kB / 422.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.161e-05/0.1078, allocations: 7.938 kB / 422.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005962/0.1084, allocations: 482.8 kB / 422.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.266e-06/0.1084, allocations: 3.984 kB / 422.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009927/0.1094, allocations: 0.7683 MB / 423.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.1095, allocations: 156.5 kB / 423.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.882e-05/0.1096, allocations: 105.9 kB / 423.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.1096, allocations: 29.7 kB / 423.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.302e-05/0.1096, allocations: 89.02 kB / 423.7 MB, free: 6.355 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.408e-05/0.1097, allocations: 99.17 kB / 423.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.227e-05/0.1098, allocations: 45.69 kB / 423.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1099, allocations: 326.8 kB / 424.2 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.11, allocations: 84.41 kB / 424.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.1102, allocations: 112.3 kB / 424.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003959/0.1106, allocations: 440.9 kB / 424.8 MB, free: 5.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1106, allocations: 3.938 kB / 424.8 MB, free: 5.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000418/0.111, allocations: 368.5 kB / 425.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.1111, allocations: 107.3 kB / 425.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1111, allocations: 0 / 425.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.1111, allocations: 0 / 425.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.193e-05/0.1112, allocations: 8 kB / 425.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/0.1112, allocations: 4 kB / 425.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.302e-05/0.1112, allocations: 23.8 kB / 425.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/0.1112, allocations: 16.02 kB / 425.3 MB, free: 4.668 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],$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.0002776/0.1115, allocations: 296.3 kB / 425.6 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.262e-05/0.1116, allocations: 31.84 kB / 425.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.225e-05/0.1116, allocations: 13.56 kB / 425.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.1116, allocations: 0 / 425.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1116, allocations: 3.938 kB / 425.7 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1116, allocations: 3.984 kB / 425.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001507/0.1131, allocations: 1.46 MB / 427.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1131, allocations: 0 / 427.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.414e-05/0.1131, allocations: 4 kB / 427.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.1132, allocations: 4 kB / 427.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.615e-05/0.1132, allocations: 19.92 kB / 427.2 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1132, allocations: 8 kB / 427.2 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1132, allocations: 0 / 427.2 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/0.1146, allocations: 1.335 MB / 428.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.942e-05/0.1147, allocations: 96.94 kB / 428.6 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.1148, allocations: 63.95 kB / 428.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.483e-05/0.1149, allocations: 8 kB / 428.7 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.895e-05/0.1149, allocations: 19.98 kB / 428.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.164e-05/0.1149, allocations: 19.98 kB / 428.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.743e-05/0.115, allocations: 83.69 kB / 428.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.115, allocations: 0 / 428.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003885/0.1154, allocations: 95.86 kB / 428.9 MB, free: 0.9805 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 ($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.002618/0.118, allocations: 2.345 MB / 431.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.1192, allocations: 1.081 MB / 432.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1192, allocations: 0 / 432.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008654/0.12, allocations: 0.9007 MB / 433.2 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.1203, allocations: 24.09 kB / 433.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00373/0.124, allocations: 3.332 MB / 436.6 MB, free: 9.125 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.1244, allocations: 0.7279 MB / 437.3 MB, free: 8.371 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.759e-05/0.1244, allocations: 4 kB / 437.3 MB, free: 8.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.038e-05/0.1245, allocations: 39.36 kB / 437.3 MB, free: 8.332 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1245, allocations: 0 / 437.3 MB, free: 8.332 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02947/0.154, allocations: 4.76 MB / 442.1 MB, free: 3.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.224/8.378, allocations: 22.33 kB / 442.1 MB, free: 3.648 MB / 366.1 MB " [Timeout remaining time 652] (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: 11.173914195038378]