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.001408/0.001408, allocations: 109.6 kB / 16.4 MB, free: 6.371 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.001377/0.001377, allocations: 195.7 kB / 17.33 MB, free: 5.84 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.459/1.459, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8527/0.8527, allocations: 126.7 MB / 417.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002075/0.002075, allocations: 74.36 kB / 0.5736 GB, free: 27.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.185, allocations: 78.86 MB / 0.6506 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002813/0.1878, allocations: 1.435 MB / 0.652 GB, free: 2.145 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006961/0.1948, allocations: 4.193 MB / 0.6561 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.275e-05/0.195, allocations: 3.938 kB / 0.6561 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.1951, allocations: 11.92 kB / 0.6561 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002634/0.1954, allocations: 31.78 kB / 0.6561 GB, free: 13.89 MB / 0.4981 GB [/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.004526/0.1999, allocations: 1.507 MB / 0.6576 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000211/0.2002, allocations: 91.69 kB / 0.6577 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.639e-05/0.2002, allocations: 4 kB / 0.6577 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.935e-05/0.2003, allocations: 47.88 kB / 0.6578 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002739/0.2006, allocations: 143.6 kB / 0.6579 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.782e-05/0.2007, allocations: 16 kB / 0.6579 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004334/0.205, allocations: 2.207 MB / 0.6601 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003095/0.2054, allocations: 271.8 kB / 0.6603 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003582/0.2057, allocations: 278.3 kB / 0.6606 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00381/0.2095, allocations: 2.118 MB / 0.6627 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2096, allocations: 0 / 0.6627 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.845e-06/0.2096, allocations: 4 kB / 0.6627 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.231e-05/0.2096, allocations: 0 / 0.6627 GB, free: 7.199 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.01099/0.2206, allocations: 1.336 MB / 0.664 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.2207, allocations: 16.02 kB / 0.664 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.645e-05/0.2207, allocations: 34.75 kB / 0.664 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005596/0.2213, allocations: 88.25 kB / 0.6641 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005879/0.2219, allocations: 376.9 kB / 0.6645 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.2219, allocations: 12.11 kB / 0.6645 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.222, allocations: 8 kB / 0.6645 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.2225, allocations: 387.2 kB / 0.6648 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.2225, allocations: 0 / 0.6648 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.2225, allocations: 0 / 0.6648 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.2225, allocations: 0 / 0.6648 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005011/0.223, allocations: 443.7 kB / 0.6653 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006852/0.2237, allocations: 0.6449 MB / 0.6659 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005912/0.2243, allocations: 0.5634 MB / 0.6664 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003845/0.2247, allocations: 337.5 kB / 0.6668 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001312/0.226, allocations: 1.028 MB / 0.6678 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004614/0.2265, allocations: 404.9 kB / 0.6682 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.984e-06/0.2265, allocations: 0 / 0.6682 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001534/0.2281, allocations: 1.297 MB / 0.6694 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.36e-05/0.2281, allocations: 77.11 kB / 0.6695 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001368/0.2295, allocations: 1.219 MB / 0.6707 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.819e-05/0.2296, allocations: 29.7 kB / 0.6707 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002097/0.2298, allocations: 269.9 kB / 0.671 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.916e-05/0.2298, allocations: 28 kB / 0.671 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003551/0.2302, allocations: 347.6 kB / 0.6713 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.2303, allocations: 310 kB / 0.6716 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001333/0.2317, allocations: 1.381 MB / 0.673 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/0.2333, allocations: 1.505 MB / 0.6744 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007407/0.2407, allocations: 3.564 MB / 0.6779 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.2407, allocations: 4 kB / 0.6779 GB, free: 6.949 MB / 0.5137 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00487/0.2456, allocations: 4.007 MB / 0.6818 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.2456, allocations: 5.875 kB / 0.6819 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.992e-05/0.2457, allocations: 0 / 0.6819 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.2457, allocations: 7.984 kB / 0.6819 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.2459, allocations: 16.03 kB / 0.6819 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.2459, allocations: 0 / 0.6819 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005249/0.2464, allocations: 249.3 kB / 0.6821 GB, free: 2.633 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.2465, allocations: 19.98 kB / 0.6821 GB, free: 2.613 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.0003721/0.2469, allocations: 246.2 kB / 0.6824 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.97e-05/0.247, allocations: 67.34 kB / 0.6824 GB, free: 2.297 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002948/0.2473, allocations: 79.06 kB / 0.6825 GB, free: 2.207 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.2473, allocations: 0 / 0.6825 GB, free: 2.207 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.2473, allocations: 4 kB / 0.6825 GB, free: 2.203 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.2473, allocations: 0 / 0.6825 GB, free: 2.203 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004846/0.2478, allocations: 0.4968 MB / 0.683 GB, free: 1.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-06/0.2478, allocations: 0 / 0.683 GB, free: 1.66 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.376e-05/0.2479, allocations: 11.98 kB / 0.683 GB, free: 1.648 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.2479, allocations: 0 / 0.683 GB, free: 1.648 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.248, allocations: 0 / 0.683 GB, free: 1.648 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.248, allocations: 8.031 kB / 0.683 GB, free: 1.641 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.248, allocations: 0 / 0.683 GB, free: 1.641 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.249, allocations: 1.002 MB / 0.684 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.2492, allocations: 156.5 kB / 0.6841 GB, free: 456 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.589e-05/0.2492, allocations: 0 / 0.6841 GB, free: 456 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.2494, allocations: 11.98 kB / 0.6842 GB, free: 444 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.2496, allocations: 7.938 kB / 0.6842 GB, free: 436 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.851e-05/0.2497, allocations: 19.97 kB / 0.6842 GB, free: 416 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008454/0.2505, allocations: 0.6727 MB / 0.6848 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2505, allocations: 0 / 0.6848 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002144/0.2527, allocations: 0.5845 MB / 0.6854 GB, free: 15.14 MB / 0.5294 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.004197/0.2569, allocations: 2.15 MB / 0.6875 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002732/0.2597, allocations: 2.556 MB / 0.69 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/0.2597, allocations: 0 / 0.69 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003732/0.2601, allocations: 343.7 kB / 0.6903 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.2605, allocations: 28.61 kB / 0.6904 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01846/0.2789, allocations: 15.28 MB / 0.7053 GB, free: 10.58 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007383/0.2797, allocations: 0.9646 MB / 0.7062 GB, free: 9.59 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001827/0.2799, allocations: 32.56 kB / 0.7063 GB, free: 9.559 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003657/0.2803, allocations: 271.3 kB / 0.7065 GB, free: 9.293 MB / 0.545 GB Notification: Performance of SimCode: time 1.473e-06/0.2803, allocations: 0 / 0.7065 GB, free: 9.293 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05945/0.3398, allocations: 23.82 MB / 0.7298 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.85, allocations: 4.422 kB / 0.7298 GB, free: 1.656 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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.csv --start-time 0 --stop-time 4.12e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 164800 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)