Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,fileNamePrefix="IDEAS_dev_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_dev_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.001317/0.001317, allocations: 108 kB / 15.6 MB, free: 132 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.001281/0.001281, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.481/1.481, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9968/0.9968, allocations: 135.1 MB / 425.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 66.95 kB / 0.5055 GB, free: 5.184 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1561, allocations: 80.92 MB / 0.5845 GB, free: 4.414 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction): time 0.001673/0.1578, allocations: 0.5504 MB / 0.585 GB, free: 3.855 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.159, allocations: 0.9931 MB / 0.586 GB, free: 2.852 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.707e-05/0.159, allocations: 0 / 0.586 GB, free: 2.852 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.107e-05/0.159, allocations: 0 / 0.586 GB, free: 2.852 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007718/0.1598, allocations: 87.78 kB / 0.5861 GB, free: 2.766 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.885e-05/0.16, allocations: 15.92 kB / 0.5861 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.802e-05/0.16, allocations: 11.92 kB / 0.5861 GB, free: 2.738 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.377e-05/0.16, allocations: 0 / 0.5861 GB, free: 2.738 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.078e-05/0.1601, allocations: 8 kB / 0.5861 GB, free: 2.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001945/0.1603, allocations: 29.72 kB / 0.5862 GB, free: 2.703 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.167e-06/0.1603, allocations: 0 / 0.5862 GB, free: 2.703 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001512/0.1604, allocations: 71.92 kB / 0.5862 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.059e-05/0.1605, allocations: 3.984 kB / 0.5862 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.861e-05/0.1605, allocations: 7.938 kB / 0.5862 GB, free: 2.621 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.1606, allocations: 67.92 kB / 0.5863 GB, free: 2.555 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1606, allocations: 4 kB / 0.5863 GB, free: 2.551 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1606, allocations: 0 / 0.5863 GB, free: 2.551 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.1606, allocations: 0 / 0.5863 GB, free: 2.551 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.000289/0.1609, allocations: 331.8 kB / 0.5866 GB, free: 2.18 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.161, allocations: 11.97 kB / 0.5866 GB, free: 2.168 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.49e-05/0.161, allocations: 34.75 kB / 0.5867 GB, free: 2.125 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.289e-05/0.161, allocations: 8.828 kB / 0.5867 GB, free: 2.117 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.1611, allocations: 164.4 kB / 0.5868 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.1612, allocations: 4.125 kB / 0.5868 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.618e-06/0.1612, allocations: 8 kB / 0.5869 GB, free: 1.906 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.173e-05/0.1613, allocations: 25.7 kB / 0.5869 GB, free: 1.875 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.1613, allocations: 0 / 0.5869 GB, free: 1.875 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.301e-06/0.1613, allocations: 3.938 kB / 0.5869 GB, free: 1.871 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.1613, allocations: 0 / 0.5869 GB, free: 1.871 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.854e-05/0.1613, allocations: 4 kB / 0.5869 GB, free: 1.867 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003433/0.1617, allocations: 468.5 kB / 0.5873 GB, free: 1.34 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.83e-05/0.1617, allocations: 173.2 kB / 0.5875 GB, free: 1.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.723e-05/0.1618, allocations: 84.14 kB / 0.5876 GB, free: 1.074 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.1618, allocations: 75.28 kB / 0.5876 GB, free: 1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.1618, allocations: 105.8 kB / 0.5877 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 9.51e-07/0.1618, allocations: 0 / 0.5877 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 6.222e-05/0.1619, allocations: 33.64 kB / 0.5878 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.162, allocations: 126.7 kB / 0.5879 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.003e-05/0.1621, allocations: 109.8 kB / 0.588 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.1621, allocations: 25.7 kB / 0.588 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.194e-05/0.1621, allocations: 80.14 kB / 0.5881 GB, free: 492 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.924e-06/0.1621, allocations: 0 / 0.5881 GB, free: 492 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.8e-05/0.1621, allocations: 13.72 kB / 0.5881 GB, free: 472 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.785e-05/0.1622, allocations: 318.7 kB / 0.5884 GB, free: 144 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.868e-06/0.1623, allocations: 7.984 kB / 0.5884 GB, free: 136 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-06/0.1623, allocations: 4 kB / 0.5884 GB, free: 132 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.148e-05/0.1623, allocations: 8.859 kB / 0.5884 GB, free: 120 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.1623, allocations: 4 kB / 0.5884 GB, free: 116 kB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.838e-05/0.1624, allocations: 37.64 kB / 0.5885 GB, free: 72 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.1624, allocations: 4 kB / 0.5885 GB, free: 68 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.1624, allocations: 0 / 0.5885 GB, free: 68 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.937e-06/0.1624, allocations: 0 / 0.5885 GB, free: 68 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.279e-05/0.1625, allocations: 4.094 kB / 0.5885 GB, free: 64 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.798e-06/0.1625, allocations: 0 / 0.5885 GB, free: 64 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.693e-05/0.1625, allocations: 7.906 kB / 0.5885 GB, free: 56 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.1625, allocations: 3.938 kB / 0.5885 GB, free: 52 kB / 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 8.582e-05/0.1626, allocations: 185.1 kB / 0.5887 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.926e-05/0.1626, allocations: 101 kB / 0.5888 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.013e-05/0.1627, allocations: 116 kB / 0.5889 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.275e-05/0.1628, allocations: 180.3 kB / 0.5891 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.252e-05/0.1628, allocations: 180.2 kB / 0.5892 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.652e-05/0.1629, allocations: 180.2 kB / 0.5894 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003175/0.1632, allocations: 409.1 kB / 0.5898 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.14e-05/0.1632, allocations: 112.9 kB / 0.5899 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.85e-05/0.1633, allocations: 101 kB / 0.59 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.971e-05/0.1633, allocations: 188.2 kB / 0.5902 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-05/0.1634, allocations: 176.5 kB / 0.5903 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.131e-05/0.1634, allocations: 180.2 kB / 0.5905 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.482e-05/0.1635, allocations: 184.3 kB / 0.5907 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001133/0.1636, allocations: 311.7 kB / 0.591 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.286e-05/0.1637, allocations: 182.1 kB / 0.5912 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.407e-05/0.1638, allocations: 184.2 kB / 0.5913 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.723e-05/0.1638, allocations: 105 kB / 0.5914 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.1639, allocations: 176.3 kB / 0.5916 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.009e-05/0.1639, allocations: 108.9 kB / 0.5917 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.11e-05/0.164, allocations: 87.22 kB / 0.5918 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.164, allocations: 0 / 0.5918 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002535/0.1642, allocations: 23.98 kB / 0.5918 GB, free: 12.43 MB / 0.4981 GB 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.0005182/0.1648, allocations: 0.8538 MB / 0.5926 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 5.523e-05/0.1648, allocations: 7.938 kB / 0.5927 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.1648, allocations: 0 / 0.5927 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.854e-06/0.1649, allocations: 0 / 0.5927 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.1652, allocations: 462 kB / 0.5931 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004557/0.1656, allocations: 247.6 kB / 0.5933 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000201/0.1659, allocations: 0.669 MB / 0.594 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.537e-05/0.1659, allocations: 8 kB / 0.594 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.339e-05/0.1659, allocations: 7.438 kB / 0.594 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.1659, allocations: 4 kB / 0.594 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.1835, allocations: 1.506 MB / 0.5955 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.971/8.154, allocations: 8.875 kB / 0.5955 GB, free: 8.777 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction.fmu > IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe 2>&1)