Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",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.00612/0.00612, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001408/0.001408, allocations: 191.6 kB / 16.67 MB, free: 5.969 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.473/1.473, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8625/0.8625, allocations: 135.6 MB / 426.1 MB, free: 3.73 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 67.72 kB / 0.5858 GB, free: 21.44 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1625, allocations: 81.01 MB / 0.6649 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004471/0.167, allocations: 3.026 MB / 0.6679 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003047/0.1701, allocations: 2.141 MB / 0.6699 GB, free: 464 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002249/0.1704, allocations: 11.94 kB / 0.67 GB, free: 452 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001498/0.1719, allocations: 497.8 kB / 0.6704 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0003233/0.1722, allocations: 154.8 kB / 0.6706 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001313/0.1723, allocations: 55.94 kB / 0.6706 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0005288/0.1729, allocations: 456.6 kB / 0.6711 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002712/0.1732, allocations: 155.2 kB / 0.6712 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.1734, allocations: 151.4 kB / 0.6714 GB, free: 15 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002398/0.1736, allocations: 187.1 kB / 0.6715 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.1737, allocations: 32 kB / 0.6716 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.832e-05/0.1738, allocations: 36 kB / 0.6716 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.1739, allocations: 95.67 kB / 0.6717 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002105/0.1741, allocations: 214.9 kB / 0.6719 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0005846/0.1747, allocations: 0.5563 MB / 0.6724 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.1747, allocations: 4 kB / 0.6725 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.262e-06/0.1747, allocations: 0 / 0.6725 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.1747, allocations: 0 / 0.6725 GB, free: 13.88 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001053/0.1758, allocations: 0.7121 MB / 0.6731 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1759, allocations: 9.109 kB / 0.6732 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.728e-05/0.1759, allocations: 54.73 kB / 0.6732 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.456e-05/0.176, allocations: 48.61 kB / 0.6733 GB, free: 13 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005643/0.1766, allocations: 386.4 kB / 0.6736 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.1766, allocations: 20.56 kB / 0.6736 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.971e-05/0.1767, allocations: 20 kB / 0.6737 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004196/0.1771, allocations: 195.3 kB / 0.6738 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.1771, allocations: 4 kB / 0.6738 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.708e-05/0.1771, allocations: 15.98 kB / 0.6739 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.1772, allocations: 4 kB / 0.6739 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004087/0.1776, allocations: 165.6 kB / 0.674 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.1788, allocations: 0.8664 MB / 0.6749 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003093/0.1792, allocations: 146.6 kB / 0.675 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002283/0.1794, allocations: 112.8 kB / 0.6751 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.1794, allocations: 7.875 kB / 0.6751 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.1795, allocations: 42.55 kB / 0.6752 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.1795, allocations: 0 / 0.6752 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of matching and sorting (n=18): time 0.0006144/0.1801, allocations: 255.2 kB / 0.6754 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.1801, allocations: 55.34 kB / 0.6755 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004954/0.1806, allocations: 413.7 kB / 0.6759 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.1807, allocations: 29.7 kB / 0.6759 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.1808, allocations: 204.4 kB / 0.6761 GB, free: 9.926 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 7.195e-05/0.1809, allocations: 79.36 kB / 0.6762 GB, free: 9.848 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.917e-05/0.181, allocations: 33.7 kB / 0.6762 GB, free: 9.809 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.1811, allocations: 346.8 kB / 0.6765 GB, free: 9.461 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.1813, allocations: 55.92 kB / 0.6766 GB, free: 9.406 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.1815, allocations: 66.31 kB / 0.6766 GB, free: 9.344 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003106/0.1818, allocations: 132.8 kB / 0.6768 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1818, allocations: 0 / 0.6768 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004174/0.1822, allocations: 211.7 kB / 0.677 GB, free: 9 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.1822, allocations: 4 kB / 0.677 GB, free: 8.996 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.1823, allocations: 4 kB / 0.677 GB, free: 8.992 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.1823, allocations: 0 / 0.677 GB, free: 8.992 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002675/0.1825, allocations: 55.91 kB / 0.677 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.1826, allocations: 0 / 0.677 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.1827, allocations: 27.88 kB / 0.6771 GB, free: 8.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.1827, allocations: 4 kB / 0.6771 GB, free: 8.906 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (20): * Single equations (assignments): 20 * 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 0.0001625/0.1829, allocations: 161.8 kB / 0.6772 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.598e-05/0.183, allocations: 39.7 kB / 0.6772 GB, free: 8.699 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.957e-05/0.1831, allocations: 39.59 kB / 0.6773 GB, free: 8.656 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.1831, allocations: 8 kB / 0.6773 GB, free: 8.648 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1831, allocations: 3.938 kB / 0.6773 GB, free: 8.645 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.1831, allocations: 0 / 0.6773 GB, free: 8.645 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004447/0.1835, allocations: 381.3 kB / 0.6777 GB, free: 8.223 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1835, allocations: 3.938 kB / 0.6777 GB, free: 8.219 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002665/0.1838, allocations: 51.97 kB / 0.6777 GB, free: 8.168 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1838, allocations: 4 kB / 0.6777 GB, free: 8.164 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.1838, allocations: 0 / 0.6777 GB, free: 8.164 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1839, allocations: 0 / 0.6777 GB, free: 8.164 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1839, allocations: 0 / 0.6777 GB, free: 8.164 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006807/0.1845, allocations: 388.9 kB / 0.6781 GB, free: 7.77 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.1847, allocations: 132.7 kB / 0.6782 GB, free: 7.621 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/0.1847, allocations: 0 / 0.6782 GB, free: 7.621 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.1849, allocations: 11.98 kB / 0.6782 GB, free: 7.609 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.747e-05/0.1849, allocations: 15.92 kB / 0.6782 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.185, allocations: 4 kB / 0.6782 GB, free: 7.59 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003505/0.1853, allocations: 299.2 kB / 0.6785 GB, free: 7.301 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1853, allocations: 0 / 0.6785 GB, free: 7.301 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003133/0.1856, allocations: 75.95 kB / 0.6786 GB, free: 7.227 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.T) * 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 (18): * Single equations (assignments): 18 * 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.001014/0.1867, allocations: 0.9191 MB / 0.6795 GB, free: 6.281 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003916/0.1871, allocations: 153.5 kB / 0.6796 GB, free: 6.133 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1871, allocations: 0 / 0.6796 GB, free: 6.133 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000176/0.1873, allocations: 83.84 kB / 0.6797 GB, free: 6.051 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000556/0.1878, allocations: 87.05 kB / 0.6798 GB, free: 5.965 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005052/0.1929, allocations: 3.501 MB / 0.6832 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005169/0.1934, allocations: 0.7912 MB / 0.684 GB, free: 1.566 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001649/0.1936, allocations: 34.97 kB / 0.684 GB, free: 1.535 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002049/0.1938, allocations: 115.4 kB / 0.6841 GB, free: 1.422 MB / 0.5137 GB Notification: Performance of SimCode: time 1.052e-06/0.1938, allocations: 3.938 kB / 0.6842 GB, free: 1.418 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04144/0.2353, allocations: 7.994 MB / 0.692 GB, free: 9.688 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.224/8.459, allocations: 15.28 kB / 0.692 GB, free: 9.676 MB / 0.5294 GB (rm -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)