Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) 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(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 106.2 kB / 16.4 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001207/0.001208, allocations: 193.2 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7113/0.7113, allocations: 115.3 MB / 406.5 MB, free: 6.227 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 66.03 kB / 0.5573 GB, free: 32.64 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1403, allocations: 76.19 MB / 0.6317 GB, free: 4.895 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002855/0.1432, allocations: 1.407 MB / 0.633 GB, free: 3.477 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.006284/0.1495, allocations: 4.197 MB / 0.6371 GB, free: 15.26 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.903e-05/0.1496, allocations: 0 / 0.6371 GB, free: 15.26 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001308/0.1498, allocations: 15.86 kB / 0.6372 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002696/0.1501, allocations: 35.83 kB / 0.6372 GB, free: 15.21 MB / 494.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.004174/0.1543, allocations: 1.5 MB / 0.6386 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001877/0.1545, allocations: 91.72 kB / 0.6387 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.739e-05/0.1545, allocations: 8 kB / 0.6387 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.671e-05/0.1546, allocations: 51.78 kB / 0.6388 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.1549, allocations: 139.6 kB / 0.6389 GB, free: 13.42 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.461e-05/0.1549, allocations: 16 kB / 0.6389 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003614/0.1585, allocations: 2.204 MB / 0.6411 GB, free: 11.2 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002311/0.1588, allocations: 271.8 kB / 0.6414 GB, free: 10.93 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002496/0.159, allocations: 278.3 kB / 0.6416 GB, free: 10.66 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003406/0.1625, allocations: 2.123 MB / 0.6437 GB, free: 8.531 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1625, allocations: 0 / 0.6437 GB, free: 8.531 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1625, allocations: 0 / 0.6437 GB, free: 8.531 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.73e-05/0.1625, allocations: 3.938 kB / 0.6437 GB, free: 8.527 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.01068/0.1732, allocations: 1.3 MB / 0.645 GB, free: 7.176 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.1733, allocations: 8.031 kB / 0.645 GB, free: 7.168 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.147e-05/0.1733, allocations: 34.75 kB / 0.645 GB, free: 7.125 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004498/0.1738, allocations: 95.67 kB / 0.6451 GB, free: 7.031 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000506/0.1743, allocations: 364.9 kB / 0.6454 GB, free: 6.625 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.1743, allocations: 4.375 kB / 0.6454 GB, free: 6.621 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.836e-05/0.1744, allocations: 4.375 kB / 0.6455 GB, free: 6.617 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004885/0.1749, allocations: 403.2 kB / 0.6458 GB, free: 6.211 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1749, allocations: 4 kB / 0.6458 GB, free: 6.207 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.1749, allocations: 0 / 0.6458 GB, free: 6.207 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1749, allocations: 0 / 0.6458 GB, free: 6.207 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004058/0.1753, allocations: 431.8 kB / 0.6463 GB, free: 5.785 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000608/0.176, allocations: 0.6366 MB / 0.6469 GB, free: 5.098 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004805/0.1765, allocations: 0.5751 MB / 0.6474 GB, free: 4.504 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002842/0.1768, allocations: 337.6 kB / 0.6478 GB, free: 4.168 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00108/0.1778, allocations: 1.017 MB / 0.6488 GB, free: 2.93 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004266/0.1783, allocations: 412.8 kB / 0.6491 GB, free: 2.508 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 2.044e-06/0.1783, allocations: 0 / 0.6491 GB, free: 2.508 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.001322/0.1796, allocations: 1.289 MB / 0.6504 GB, free: 1.211 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.1797, allocations: 85.23 kB / 0.6505 GB, free: 1.109 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/0.1808, allocations: 1.214 MB / 0.6517 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.985e-05/0.1809, allocations: 29.7 kB / 0.6517 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001857/0.1811, allocations: 269.4 kB / 0.652 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.1811, allocations: 15.81 kB / 0.652 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000329/0.1815, allocations: 351.5 kB / 0.6523 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.768e-05/0.1816, allocations: 314 kB / 0.6526 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.1827, allocations: 1.373 MB / 0.6539 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.184, allocations: 1.507 MB / 0.6554 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006574/0.1905, allocations: 3.56 MB / 0.6589 GB, free: 8.355 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.1906, allocations: 4 kB / 0.6589 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004028/0.1946, allocations: 4.003 MB / 0.6628 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.1946, allocations: 4 kB / 0.6628 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/0.1947, allocations: 4 kB / 0.6628 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1947, allocations: 3.938 kB / 0.6628 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.1948, allocations: 19.92 kB / 0.6628 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1949, allocations: 0 / 0.6628 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004562/0.1953, allocations: 236.2 kB / 0.6631 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.702e-05/0.1954, allocations: 24.02 kB / 0.6631 GB, free: 4.023 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0002815/0.1957, allocations: 237.7 kB / 0.6633 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.006e-05/0.1957, allocations: 70.72 kB / 0.6634 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002741/0.196, allocations: 75 kB / 0.6635 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.196, allocations: 7.938 kB / 0.6635 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1961, allocations: 0 / 0.6635 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1961, allocations: 4.031 kB / 0.6635 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003969/0.1965, allocations: 496.9 kB / 0.6639 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1965, allocations: 7.938 kB / 0.6639 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.385e-05/0.1966, allocations: 7.984 kB / 0.664 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.1966, allocations: 0 / 0.664 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.1966, allocations: 4 kB / 0.664 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1966, allocations: 3.984 kB / 0.664 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1966, allocations: 0 / 0.664 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008249/0.1974, allocations: 1.001 MB / 0.6649 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.1975, allocations: 155.7 kB / 0.6651 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.648e-05/0.1976, allocations: 7.984 kB / 0.6651 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.1977, allocations: 0 / 0.6651 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.802e-05/0.1978, allocations: 11.98 kB / 0.6651 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.49e-05/0.1978, allocations: 11.98 kB / 0.6651 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0006607/0.1985, allocations: 0.6728 MB / 0.6658 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1985, allocations: 0 / 0.6658 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001431/0.1999, allocations: 0.5779 MB / 0.6663 GB, free: 0.5781 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.003281/0.2032, allocations: 2.148 MB / 0.6684 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002238/0.2055, allocations: 2.548 MB / 0.6709 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2055, allocations: 0 / 0.6709 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003105/0.2058, allocations: 339.9 kB / 0.6712 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.2062, allocations: 40.09 kB / 0.6713 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01445/0.2206, allocations: 15.24 MB / 0.6862 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005319/0.2212, allocations: 0.964 MB / 0.6871 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001434/0.2214, allocations: 40.55 kB / 0.6871 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003001/0.2217, allocations: 267.3 kB / 0.6874 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of SimCode: time 1.173e-06/0.2217, allocations: 0 / 0.6874 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04911/0.2708, allocations: 24.02 MB / 0.7109 GB, free: 2.934 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.705/9.976, allocations: 14.25 kB / 0.7109 GB, free: 2.922 MB / 0.545 GB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)