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.001762/0.001762, allocations: 109.8 kB / 16.41 MB, free: 6.496 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.001885/0.001885, allocations: 189.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.448/1.448, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8116/0.8116, allocations: 125.3 MB / 416.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 69.78 kB / 0.5717 GB, free: 27.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1517, allocations: 78.55 MB / 0.6484 GB, free: 5.715 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00263/0.1544, allocations: 1.433 MB / 0.6498 GB, free: 4.273 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006492/0.1609, allocations: 4.197 MB / 0.6539 GB, free: 60 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.803e-05/0.161, allocations: 7.938 kB / 0.6539 GB, free: 52 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.1612, allocations: 19.86 kB / 0.6539 GB, free: 32 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000223/0.1614, allocations: 27.84 kB / 0.654 GB, free: 4 kB / 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.003863/0.1653, allocations: 1.499 MB / 0.6554 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001551/0.1654, allocations: 91.69 kB / 0.6555 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.398e-05/0.1655, allocations: 7.984 kB / 0.6555 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.512e-05/0.1656, allocations: 51.83 kB / 0.6556 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002377/0.1658, allocations: 143.6 kB / 0.6557 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.426e-05/0.1659, allocations: 19.94 kB / 0.6557 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003337/0.1692, allocations: 2.196 MB / 0.6579 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002436/0.1695, allocations: 271.8 kB / 0.6581 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002677/0.1697, allocations: 278.3 kB / 0.6584 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002907/0.1727, allocations: 2.126 MB / 0.6605 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1727, allocations: 0 / 0.6605 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.194e-06/0.1727, allocations: 0 / 0.6605 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.727e-06/0.1727, allocations: 0 / 0.6605 GB, free: 9.316 MB / 0.4981 GB 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.01059/0.1833, allocations: 1.344 MB / 0.6618 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.1834, allocations: 8.031 kB / 0.6618 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.031e-05/0.1834, allocations: 34.69 kB / 0.6618 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004/0.1838, allocations: 96.25 kB / 0.6619 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.1843, allocations: 369 kB / 0.6623 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.1843, allocations: 12.12 kB / 0.6623 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.035e-05/0.1843, allocations: 4 kB / 0.6623 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00048/0.1848, allocations: 391.1 kB / 0.6627 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1849, allocations: 0 / 0.6627 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.1849, allocations: 7.984 kB / 0.6627 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.1849, allocations: 4 kB / 0.6627 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004591/0.1853, allocations: 427.8 kB / 0.6631 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006348/0.186, allocations: 0.641 MB / 0.6637 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005572/0.1866, allocations: 0.5749 MB / 0.6643 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003338/0.1869, allocations: 333.7 kB / 0.6646 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001132/0.188, allocations: 1.028 MB / 0.6656 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004422/0.1885, allocations: 408.8 kB / 0.666 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.403e-06/0.1885, allocations: 0 / 0.666 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001457/0.19, allocations: 1.293 MB / 0.6672 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/0.19, allocations: 85.23 kB / 0.6673 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00127/0.1913, allocations: 1.211 MB / 0.6685 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.486e-05/0.1914, allocations: 33.7 kB / 0.6685 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002026/0.1916, allocations: 261.9 kB / 0.6688 GB, free: 316 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.081e-05/0.1916, allocations: 31.75 kB / 0.6688 GB, free: 284 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003629/0.192, allocations: 355.6 kB / 0.6692 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1921, allocations: 314 kB / 0.6695 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.1935, allocations: 1.369 MB / 0.6708 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001444/0.1949, allocations: 1.507 MB / 0.6723 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007249/0.2022, allocations: 3.564 MB / 0.6757 GB, free: 9.066 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.2023, allocations: 0 / 0.6757 GB, free: 9.066 MB / 0.5137 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004701/0.207, allocations: 4.003 MB / 0.6797 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.207, allocations: 4 kB / 0.6797 GB, free: 5.023 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-05/0.207, allocations: 11.92 kB / 0.6797 GB, free: 5.012 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.2071, allocations: 0 / 0.6797 GB, free: 5.012 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.2072, allocations: 20 kB / 0.6797 GB, free: 4.992 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.2072, allocations: 0 / 0.6797 GB, free: 4.992 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005323/0.2078, allocations: 241.3 kB / 0.6799 GB, free: 4.754 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.386e-05/0.2078, allocations: 23.98 kB / 0.6799 GB, free: 4.73 MB / 0.5137 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.0003756/0.2082, allocations: 249.5 kB / 0.6802 GB, free: 4.477 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.082e-05/0.2083, allocations: 75.34 kB / 0.6803 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002766/0.2086, allocations: 71.06 kB / 0.6803 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.2086, allocations: 4 kB / 0.6803 GB, free: 4.32 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.2086, allocations: 0 / 0.6803 GB, free: 4.32 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.2086, allocations: 0 / 0.6803 GB, free: 4.32 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004842/0.2091, allocations: 0.5007 MB / 0.6808 GB, free: 3.777 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2091, allocations: 0 / 0.6808 GB, free: 3.777 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.063e-05/0.2092, allocations: 7.984 kB / 0.6808 GB, free: 3.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.2092, allocations: 0 / 0.6808 GB, free: 3.77 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.2092, allocations: 4 kB / 0.6808 GB, free: 3.766 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.2092, allocations: 0 / 0.6808 GB, free: 3.766 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2092, allocations: 0 / 0.6808 GB, free: 3.766 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.2103, allocations: 1.01 MB / 0.6818 GB, free: 2.734 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.2104, allocations: 152.5 kB / 0.682 GB, free: 2.566 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.838e-05/0.2105, allocations: 8 kB / 0.682 GB, free: 2.559 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.2106, allocations: 3.984 kB / 0.682 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.863e-05/0.2107, allocations: 7.938 kB / 0.682 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-05/0.2107, allocations: 15.97 kB / 0.682 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007726/0.2115, allocations: 0.6728 MB / 0.6826 GB, free: 1.852 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2115, allocations: 0 / 0.6826 GB, free: 1.852 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001568/0.2131, allocations: 0.5884 MB / 0.6832 GB, free: 1.262 MB / 0.5137 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.003232/0.2163, allocations: 2.153 MB / 0.6853 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002522/0.2189, allocations: 2.551 MB / 0.6878 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2189, allocations: 0 / 0.6878 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003648/0.2193, allocations: 343.7 kB / 0.6881 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003141/0.2196, allocations: 40.73 kB / 0.6882 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/0.2354, allocations: 15.27 MB / 0.7031 GB, free: 12.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005982/0.2361, allocations: 0.9646 MB / 0.704 GB, free: 11.71 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000155/0.2362, allocations: 40.55 kB / 0.7041 GB, free: 11.68 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003185/0.2365, allocations: 263.5 kB / 0.7043 GB, free: 11.42 MB / 0.545 GB Notification: Performance of SimCode: time 8.72e-07/0.2366, allocations: 0 / 0.7043 GB, free: 11.42 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05606/0.2926, allocations: 23.82 MB / 0.7276 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.51, allocations: 8.828 kB / 0.7276 GB, free: 3.777 MB / 0.5606 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)