Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction,fileNamePrefix="BuildingSystems_BuildingSystems_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.001375/0.001375, 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.001416/0.001416, allocations: 193.2 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.354/1.354, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002192/0.002192, allocations: 306.5 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9773/0.9773, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001717, allocations: 101.2 kB / 0.5954 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.1464, allocations: 86.98 MB / 0.6803 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction): time 0.001662/0.1481, allocations: 0.5604 MB / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.1492, allocations: 0.9992 MB / 0.6819 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.791e-05/0.1493, allocations: 4 kB / 0.6819 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.139e-05/0.1493, allocations: 0 / 0.6819 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006832/0.15, allocations: 95.77 kB / 0.6819 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.503e-05/0.15, allocations: 15.94 kB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.194e-05/0.1501, allocations: 4.781 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.412e-05/0.1501, allocations: 7.969 kB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.485e-05/0.1501, allocations: 0.875 kB / 0.682 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001968/0.1503, allocations: 36.19 kB / 0.682 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.989e-06/0.1504, allocations: 4.531 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.1505, allocations: 84.44 kB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.02e-05/0.1505, allocations: 0 / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.65e-05/0.1506, allocations: 5 kB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.1507, allocations: 67.92 kB / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1507, allocations: 0 / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1507, allocations: 1 kB / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1507, allocations: 0 / 0.6822 GB, free: 14.65 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.0002829/0.151, allocations: 339.5 kB / 0.6825 GB, free: 14.27 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.1511, allocations: 12.03 kB / 0.6825 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.085e-05/0.1511, allocations: 34.73 kB / 0.6825 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.03e-05/0.1511, allocations: 0.9375 kB / 0.6825 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.681e-05/0.1512, allocations: 160.4 kB / 0.6827 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.604e-06/0.1512, allocations: 4.375 kB / 0.6827 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.574e-06/0.1513, allocations: 384 / 0.6827 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.432e-05/0.1513, allocations: 33.64 kB / 0.6827 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-06/0.1514, allocations: 0 / 0.6827 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.65e-06/0.1514, allocations: 4 kB / 0.6827 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1514, allocations: 0 / 0.6827 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.869e-05/0.1514, allocations: 11.92 kB / 0.6827 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003235/0.1517, allocations: 460.6 kB / 0.6832 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.203e-05/0.1518, allocations: 169.2 kB / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.082e-05/0.1518, allocations: 84.14 kB / 0.6834 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.1519, allocations: 75.28 kB / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.962e-05/0.1519, allocations: 109.8 kB / 0.6836 GB, free: 12.99 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 1.342e-06/0.1519, allocations: 3.938 kB / 0.6836 GB, free: 12.99 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 7.37e-05/0.152, allocations: 37.61 kB / 0.6836 GB, free: 12.95 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.1521, allocations: 126.7 kB / 0.6838 GB, free: 12.81 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.186e-05/0.1522, allocations: 101.8 kB / 0.6839 GB, free: 12.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 9.768e-06/0.1522, allocations: 25.7 kB / 0.6839 GB, free: 12.67 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.063e-05/0.1522, allocations: 84.14 kB / 0.684 GB, free: 12.58 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.214e-06/0.1522, allocations: 0 / 0.684 GB, free: 12.58 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.617e-05/0.1522, allocations: 13.72 kB / 0.684 GB, free: 12.56 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.813e-05/0.1523, allocations: 318.8 kB / 0.6843 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.175e-06/0.1523, allocations: 0 / 0.6843 GB, free: 12.24 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.993e-06/0.1524, allocations: 4 kB / 0.6843 GB, free: 12.24 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.341e-05/0.1524, allocations: 12.86 kB / 0.6843 GB, free: 12.22 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1524, allocations: 0 / 0.6843 GB, free: 12.22 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.476e-05/0.1525, allocations: 37.7 kB / 0.6843 GB, free: 12.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.1525, allocations: 4 kB / 0.6843 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1525, allocations: 3.938 kB / 0.6843 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.1525, allocations: 0 / 0.6843 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.257e-05/0.1525, allocations: 0 / 0.6843 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.1526, allocations: 4 kB / 0.6843 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.29e-05/0.1526, allocations: 0 / 0.6843 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.1526, allocations: 3.984 kB / 0.6843 GB, free: 12.16 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.707e-05/0.1527, allocations: 189.8 kB / 0.6845 GB, free: 11.97 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.296e-05/0.1527, allocations: 108.9 kB / 0.6846 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.111e-05/0.1528, allocations: 104.1 kB / 0.6847 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.287e-05/0.1528, allocations: 184.2 kB / 0.6849 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.965e-05/0.1529, allocations: 180.2 kB / 0.6851 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.366e-05/0.1529, allocations: 188.5 kB / 0.6853 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001895/0.1531, allocations: 405.6 kB / 0.6856 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.359e-05/0.1532, allocations: 109 kB / 0.6857 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.055e-05/0.1532, allocations: 108.9 kB / 0.6858 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-05/0.1533, allocations: 180.2 kB / 0.686 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.1533, allocations: 180.5 kB / 0.6862 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.792e-05/0.1534, allocations: 184.2 kB / 0.6864 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-05/0.1534, allocations: 180.3 kB / 0.6865 GB, free: 9.766 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001084/0.1536, allocations: 311.7 kB / 0.6868 GB, free: 9.438 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.658e-05/0.1536, allocations: 178.1 kB / 0.687 GB, free: 9.238 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.029e-05/0.1537, allocations: 188.2 kB / 0.6872 GB, free: 9.047 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.234e-05/0.1538, allocations: 101 kB / 0.6873 GB, free: 8.941 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.587e-05/0.1539, allocations: 188.2 kB / 0.6875 GB, free: 8.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.211e-05/0.1539, allocations: 101 kB / 0.6876 GB, free: 8.645 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.335e-05/0.1539, allocations: 79.28 kB / 0.6876 GB, free: 8.566 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1539, allocations: 0 / 0.6876 GB, free: 8.566 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002436/0.1542, allocations: 31.86 kB / 0.6877 GB, free: 8.535 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.0005058/0.1547, allocations: 0.875 MB / 0.6885 GB, free: 7.641 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.477e-05/0.1548, allocations: 8 kB / 0.6885 GB, free: 7.633 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.1548, allocations: 0 / 0.6885 GB, free: 7.633 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.835e-06/0.1548, allocations: 0 / 0.6885 GB, free: 7.633 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.1551, allocations: 459.1 kB / 0.689 GB, free: 7.184 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004349/0.1555, allocations: 244 kB / 0.6892 GB, free: 6.906 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001936/0.1557, allocations: 0.6729 MB / 0.6899 GB, free: 6.207 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.096e-05/0.1558, allocations: 0 / 0.6899 GB, free: 6.207 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.418e-05/0.1558, allocations: 15.42 kB / 0.6899 GB, free: 6.191 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1558, allocations: 0 / 0.6899 GB, free: 6.191 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01621/0.172, allocations: 1.547 MB / 0.6914 GB, free: 4.844 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.523/7.695, allocations: 7.844 kB / 0.6914 GB, free: 4.84 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_ShaGFunction.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.ShaGFunction.pipe 2>&1)