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.001079/0.001079, allocations: 108.4 kB / 16.41 MB, free: 6.449 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.001091/0.001091, allocations: 191.8 kB / 17.34 MB, free: 5.738 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7971/0.7971, allocations: 122.9 MB / 414.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 66.23 kB / 0.568 GB, free: 28.94 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.152, allocations: 77.93 MB / 0.6441 GB, free: 9.516 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002591/0.1547, allocations: 1.415 MB / 0.6455 GB, free: 8.09 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006524/0.1612, allocations: 4.206 MB / 0.6496 GB, free: 3.863 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.166e-05/0.1613, allocations: 3.938 kB / 0.6496 GB, free: 3.859 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.1615, allocations: 15.86 kB / 0.6496 GB, free: 3.844 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002373/0.1617, allocations: 35.78 kB / 0.6497 GB, free: 3.809 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.0045/0.1663, allocations: 1.507 MB / 0.6511 GB, free: 2.301 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001708/0.1664, allocations: 91.69 kB / 0.6512 GB, free: 2.211 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.979e-05/0.1665, allocations: 7.984 kB / 0.6512 GB, free: 2.203 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.088e-05/0.1666, allocations: 39.91 kB / 0.6513 GB, free: 2.164 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002352/0.1668, allocations: 147.6 kB / 0.6514 GB, free: 2.02 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.677e-05/0.1669, allocations: 16 kB / 0.6514 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003627/0.1705, allocations: 2.204 MB / 0.6536 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002532/0.1708, allocations: 275.8 kB / 0.6538 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002668/0.171, allocations: 274.3 kB / 0.6541 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003388/0.1744, allocations: 2.122 MB / 0.6562 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1745, allocations: 0 / 0.6562 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.633e-06/0.1745, allocations: 4 kB / 0.6562 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.917e-06/0.1745, allocations: 0 / 0.6562 GB, free: 13.12 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.01042/0.1849, allocations: 1.336 MB / 0.6575 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.185, allocations: 12.62 kB / 0.6575 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.268e-05/0.185, allocations: 42.67 kB / 0.6575 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004023/0.1854, allocations: 88.25 kB / 0.6576 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004244/0.1859, allocations: 376.9 kB / 0.658 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.1859, allocations: 384 / 0.658 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.263e-05/0.1859, allocations: 8.375 kB / 0.658 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004272/0.1864, allocations: 395.3 kB / 0.6584 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.1864, allocations: 0 / 0.6584 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.1864, allocations: 0 / 0.6584 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1864, allocations: 0 / 0.6584 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004302/0.1869, allocations: 443.7 kB / 0.6588 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005891/0.1875, allocations: 0.641 MB / 0.6594 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005981/0.1881, allocations: 0.5594 MB / 0.66 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000299/0.1884, allocations: 341.7 kB / 0.6603 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001064/0.1895, allocations: 1.028 MB / 0.6613 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003936/0.1899, allocations: 408.8 kB / 0.6617 GB, free: 7.047 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.983e-06/0.1899, allocations: 0 / 0.6617 GB, free: 7.047 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001502/0.1914, allocations: 1.289 MB / 0.6629 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.523e-05/0.1915, allocations: 81.09 kB / 0.663 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/0.1926, allocations: 1.219 MB / 0.6642 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.924e-05/0.1926, allocations: 37.62 kB / 0.6642 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.1928, allocations: 270.1 kB / 0.6645 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.593e-05/0.1929, allocations: 23.83 kB / 0.6645 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003149/0.1932, allocations: 351.6 kB / 0.6649 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.1933, allocations: 313.9 kB / 0.6652 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.1946, allocations: 1.373 MB / 0.6665 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/0.196, allocations: 1.501 MB / 0.668 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007024/0.203, allocations: 3.564 MB / 0.6714 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.203, allocations: 0 / 0.6714 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004542/0.2076, allocations: 4.007 MB / 0.6754 GB, free: 8.836 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.2076, allocations: 8 kB / 0.6754 GB, free: 8.828 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.024e-05/0.2077, allocations: 4.031 kB / 0.6754 GB, free: 8.824 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/0.2077, allocations: 4 kB / 0.6754 GB, free: 8.82 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.2079, allocations: 15.98 kB / 0.6754 GB, free: 8.805 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.2079, allocations: 3.938 kB / 0.6754 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004907/0.2084, allocations: 245.3 kB / 0.6756 GB, free: 8.559 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.012e-05/0.2084, allocations: 23.97 kB / 0.6757 GB, free: 8.535 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.0002868/0.2087, allocations: 237.7 kB / 0.6759 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.929e-05/0.2088, allocations: 79.23 kB / 0.676 GB, free: 8.215 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002695/0.2091, allocations: 79 kB / 0.676 GB, free: 8.129 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.2091, allocations: 0 / 0.676 GB, free: 8.129 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.2091, allocations: 4 kB / 0.676 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.2091, allocations: 0 / 0.676 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005519/0.2097, allocations: 496.9 kB / 0.6765 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.2097, allocations: 3.938 kB / 0.6765 GB, free: 7.59 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.7e-05/0.2098, allocations: 8 kB / 0.6765 GB, free: 7.582 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.2098, allocations: 4.031 kB / 0.6765 GB, free: 7.578 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.2098, allocations: 3.984 kB / 0.6765 GB, free: 7.574 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.2099, allocations: 4 kB / 0.6765 GB, free: 7.57 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2099, allocations: 0 / 0.6765 GB, free: 7.57 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009038/0.2108, allocations: 1.002 MB / 0.6775 GB, free: 6.547 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.2109, allocations: 168.4 kB / 0.6777 GB, free: 6.363 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.924e-05/0.211, allocations: 0 / 0.6777 GB, free: 6.363 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.2111, allocations: 4 kB / 0.6777 GB, free: 6.359 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.2112, allocations: 7.984 kB / 0.6777 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.562e-05/0.2112, allocations: 15.98 kB / 0.6777 GB, free: 6.336 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007152/0.2119, allocations: 0.6728 MB / 0.6784 GB, free: 5.656 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.503e-06/0.2119, allocations: 0 / 0.6784 GB, free: 5.656 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001543/0.2135, allocations: 0.5806 MB / 0.6789 GB, free: 5.074 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.003324/0.2168, allocations: 2.161 MB / 0.681 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002509/0.2193, allocations: 2.562 MB / 0.6835 GB, free: 332 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.2194, allocations: 0 / 0.6835 GB, free: 332 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003382/0.2197, allocations: 339.8 kB / 0.6839 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003345/0.2201, allocations: 30.17 kB / 0.6839 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01531/0.2354, allocations: 15.28 MB / 0.6988 GB, free: 0.5078 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005935/0.236, allocations: 0.964 MB / 0.6997 GB, free: 15.52 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001517/0.2362, allocations: 32.56 kB / 0.6998 GB, free: 15.48 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002939/0.2365, allocations: 263.3 kB / 0.7 GB, free: 15.23 MB / 0.545 GB Notification: Performance of SimCode: time 7.41e-07/0.2365, allocations: 0 / 0.7 GB, free: 15.23 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05226/0.2888, allocations: 23.81 MB / 0.7233 GB, free: 7.598 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.51, allocations: 13.88 kB / 0.7233 GB, free: 7.586 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)