Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction",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.001103/0.001103, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.317/1.317, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7476/0.7476, allocations: 132.2 MB / 422.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 64.22 kB / 0.5019 GB, free: 8.59 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1493, allocations: 80.2 MB / 0.5802 GB, free: 8.609 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction): time 0.001695/0.151, allocations: 0.5426 MB / 0.5808 GB, free: 8.059 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.1522, allocations: 1.001 MB / 0.5817 GB, free: 7.047 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.705e-05/0.1522, allocations: 0 / 0.5817 GB, free: 7.047 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.119e-05/0.1522, allocations: 0 / 0.5817 GB, free: 7.047 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006383/0.1529, allocations: 91.78 kB / 0.5818 GB, free: 6.957 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.901e-05/0.1529, allocations: 19.88 kB / 0.5818 GB, free: 6.938 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.149e-05/0.153, allocations: 3.984 kB / 0.5819 GB, free: 6.934 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.416e-05/0.153, allocations: 4 kB / 0.5819 GB, free: 6.93 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.6e-05/0.153, allocations: 0 / 0.5819 GB, free: 6.93 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.1532, allocations: 32.62 kB / 0.5819 GB, free: 6.898 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.038e-05/0.1533, allocations: 0 / 0.5819 GB, free: 6.898 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001565/0.1534, allocations: 83.86 kB / 0.582 GB, free: 6.816 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.155e-06/0.1534, allocations: 0 / 0.582 GB, free: 6.816 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.843e-05/0.1535, allocations: 3.938 kB / 0.582 GB, free: 6.812 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.1536, allocations: 67.91 kB / 0.582 GB, free: 6.746 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1536, allocations: 0 / 0.582 GB, free: 6.746 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1536, allocations: 0 / 0.582 GB, free: 6.746 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1536, allocations: 0 / 0.582 GB, free: 6.746 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003169/0.154, allocations: 339.7 kB / 0.5824 GB, free: 6.367 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.154, allocations: 16.03 kB / 0.5824 GB, free: 6.352 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.801e-05/0.1541, allocations: 30.75 kB / 0.5824 GB, free: 6.312 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.681e-05/0.1541, allocations: 0.9375 kB / 0.5824 GB, free: 6.312 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.1542, allocations: 168.4 kB / 0.5826 GB, free: 6.109 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.1542, allocations: 4.125 kB / 0.5826 GB, free: 6.105 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.1543, allocations: 0 / 0.5826 GB, free: 6.105 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.802e-05/0.1543, allocations: 25.7 kB / 0.5826 GB, free: 6.074 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.1543, allocations: 7.875 kB / 0.5826 GB, free: 6.066 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.465e-06/0.1544, allocations: 4 kB / 0.5826 GB, free: 6.062 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1544, allocations: 4 kB / 0.5826 GB, free: 6.059 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.62e-05/0.1544, allocations: 0 / 0.5826 GB, free: 6.059 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004067/0.1548, allocations: 468.6 kB / 0.5831 GB, free: 5.531 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.684e-05/0.1549, allocations: 169.1 kB / 0.5832 GB, free: 5.355 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.069e-05/0.1549, allocations: 80.14 kB / 0.5833 GB, free: 5.273 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.1549, allocations: 83.22 kB / 0.5834 GB, free: 5.191 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.155, allocations: 105.8 kB / 0.5835 GB, free: 5.078 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 9.22e-07/0.155, allocations: 3.938 kB / 0.5835 GB, free: 5.074 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 6.383e-05/0.1551, allocations: 33.69 kB / 0.5835 GB, free: 5.035 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.1551, allocations: 126.7 kB / 0.5836 GB, free: 4.898 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.857e-05/0.1552, allocations: 101.8 kB / 0.5837 GB, free: 4.789 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.027e-05/0.1552, allocations: 25.7 kB / 0.5838 GB, free: 4.758 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.439e-05/0.1553, allocations: 84.14 kB / 0.5838 GB, free: 4.672 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.306e-06/0.1553, allocations: 4 kB / 0.5838 GB, free: 4.668 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.859e-05/0.1553, allocations: 13.72 kB / 0.5839 GB, free: 4.648 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.607e-05/0.1554, allocations: 314.8 kB / 0.5842 GB, free: 4.332 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.081e-05/0.1554, allocations: 4 kB / 0.5842 GB, free: 4.328 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.047e-06/0.1554, allocations: 3.938 kB / 0.5842 GB, free: 4.324 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.371e-05/0.1555, allocations: 4.859 kB / 0.5842 GB, free: 4.316 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.1555, allocations: 8.062 kB / 0.5842 GB, free: 4.309 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.417e-05/0.1556, allocations: 37.59 kB / 0.5842 GB, free: 4.266 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.1556, allocations: 4 kB / 0.5842 GB, free: 4.262 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.1556, allocations: 0 / 0.5842 GB, free: 4.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.1556, allocations: 0 / 0.5842 GB, free: 4.262 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.279e-05/0.1557, allocations: 4 kB / 0.5842 GB, free: 4.258 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1557, allocations: 0 / 0.5842 GB, free: 4.258 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.324e-05/0.1557, allocations: 0 / 0.5842 GB, free: 4.258 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-06/0.1557, allocations: 3.938 kB / 0.5842 GB, free: 4.254 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 7.335e-05/0.1558, allocations: 189.2 kB / 0.5844 GB, free: 4.059 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.925e-05/0.1558, allocations: 108.9 kB / 0.5845 GB, free: 3.945 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.336e-05/0.1559, allocations: 108.1 kB / 0.5846 GB, free: 3.828 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-05/0.1559, allocations: 180.2 kB / 0.5848 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.195e-05/0.156, allocations: 184.3 kB / 0.585 GB, free: 3.457 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.622e-05/0.1561, allocations: 184.3 kB / 0.5851 GB, free: 3.27 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002013/0.1563, allocations: 409 kB / 0.5855 GB, free: 2.812 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-05/0.1563, allocations: 109 kB / 0.5856 GB, free: 2.699 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.066e-05/0.1563, allocations: 104.9 kB / 0.5857 GB, free: 2.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.763e-05/0.1564, allocations: 184.2 kB / 0.5859 GB, free: 2.402 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.079e-05/0.1564, allocations: 176.3 kB / 0.5861 GB, free: 2.223 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-05/0.1565, allocations: 188.4 kB / 0.5862 GB, free: 2.031 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.808e-05/0.1566, allocations: 180.3 kB / 0.5864 GB, free: 1.848 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001096/0.1567, allocations: 311.7 kB / 0.5867 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.433e-05/0.1567, allocations: 182 kB / 0.5869 GB, free: 1.316 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.852e-05/0.1568, allocations: 180.3 kB / 0.5871 GB, free: 1.133 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.043e-05/0.1569, allocations: 105 kB / 0.5872 GB, free: 1.023 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.745e-05/0.1569, allocations: 180.2 kB / 0.5873 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.929e-05/0.157, allocations: 105 kB / 0.5874 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.753e-05/0.157, allocations: 87.22 kB / 0.5875 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.157, allocations: 0 / 0.5875 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002475/0.1573, allocations: 23.94 kB / 0.5875 GB, free: 0.6211 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0005252/0.1578, allocations: 0.8544 MB / 0.5884 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 5.915e-05/0.1579, allocations: 8 kB / 0.5884 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1579, allocations: 0 / 0.5884 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.543e-06/0.1579, allocations: 0 / 0.5884 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.1582, allocations: 466 kB / 0.5888 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004594/0.1587, allocations: 241.8 kB / 0.5891 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000193/0.1589, allocations: 0.681 MB / 0.5897 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.026e-05/0.1589, allocations: 0 / 0.5897 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.397e-05/0.1589, allocations: 11.44 kB / 0.5897 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.1589, allocations: 4 kB / 0.5897 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01582/0.1748, allocations: 1.499 MB / 0.5912 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.374/7.549, allocations: 15.73 kB / 0.5912 GB, free: 12.97 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; mkfifo IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe >> ../files/IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe 2>&1)