Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_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.001104/0.001104, 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.001186/0.001186, allocations: 194 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002122/0.002122, allocations: 290.5 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9451/0.9451, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 96.52 kB / 0.5954 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1614, allocations: 86.98 MB / 0.6803 GB, free: 0.543 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.0047/0.1661, allocations: 3.01 MB / 0.6833 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003021/0.1692, allocations: 2.14 MB / 0.6854 GB, free: 11.39 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003569/0.1696, allocations: 4 kB / 0.6854 GB, free: 11.38 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001786/0.1714, allocations: 0.5055 MB / 0.6859 GB, free: 10.88 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005666/0.172, allocations: 146.8 kB / 0.686 GB, free: 10.73 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000189/0.1722, allocations: 63.94 kB / 0.6861 GB, free: 10.67 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005332/0.1727, allocations: 445.9 kB / 0.6865 GB, free: 10.23 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002709/0.173, allocations: 155.2 kB / 0.6866 GB, free: 10.08 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002481/0.1733, allocations: 155.4 kB / 0.6868 GB, free: 9.926 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.1735, allocations: 183.1 kB / 0.6869 GB, free: 9.746 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.314e-05/0.1736, allocations: 36 kB / 0.687 GB, free: 9.711 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.306e-05/0.1736, allocations: 32 kB / 0.687 GB, free: 9.68 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.1738, allocations: 99.66 kB / 0.6871 GB, free: 9.582 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000218/0.174, allocations: 222.8 kB / 0.6873 GB, free: 9.363 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005384/0.1746, allocations: 0.545 MB / 0.6879 GB, free: 8.816 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1746, allocations: 0 / 0.6879 GB, free: 8.816 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1746, allocations: 0 / 0.6879 GB, free: 8.816 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1746, allocations: 0 / 0.6879 GB, free: 8.816 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001011/0.1756, allocations: 0.7006 MB / 0.6885 GB, free: 8.066 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.1757, allocations: 12.03 kB / 0.6885 GB, free: 8.055 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.474e-05/0.1757, allocations: 58.73 kB / 0.6886 GB, free: 7.988 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.116e-05/0.1758, allocations: 44.38 kB / 0.6886 GB, free: 7.945 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004602/0.1763, allocations: 370.1 kB / 0.689 GB, free: 7.547 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.1763, allocations: 16.81 kB / 0.689 GB, free: 7.531 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.468e-05/0.1764, allocations: 24.31 kB / 0.689 GB, free: 7.508 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004435/0.1768, allocations: 203.4 kB / 0.6892 GB, free: 7.305 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.1768, allocations: 0 / 0.6892 GB, free: 7.305 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.114e-05/0.1769, allocations: 12 kB / 0.6892 GB, free: 7.293 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.1769, allocations: 8 kB / 0.6893 GB, free: 7.285 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004002/0.1773, allocations: 161.7 kB / 0.6894 GB, free: 7.129 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.1785, allocations: 0.8739 MB / 0.6903 GB, free: 6.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.1788, allocations: 150.6 kB / 0.6904 GB, free: 6.023 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000207/0.179, allocations: 118.8 kB / 0.6905 GB, free: 5.906 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.425e-05/0.1791, allocations: 0 / 0.6905 GB, free: 5.906 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.1791, allocations: 30.56 kB / 0.6905 GB, free: 5.867 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.072e-06/0.1791, allocations: 3.938 kB / 0.6905 GB, free: 5.863 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.000599/0.1797, allocations: 263.4 kB / 0.6908 GB, free: 5.602 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.1798, allocations: 55.41 kB / 0.6909 GB, free: 5.535 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004415/0.1802, allocations: 421.7 kB / 0.6913 GB, free: 5.117 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.1803, allocations: 29.7 kB / 0.6913 GB, free: 5.082 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.1804, allocations: 204.2 kB / 0.6915 GB, free: 4.875 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.876e-05/0.1805, allocations: 63.09 kB / 0.6915 GB, free: 4.812 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.231e-05/0.1805, allocations: 25.72 kB / 0.6916 GB, free: 4.781 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.1807, allocations: 350.8 kB / 0.6919 GB, free: 4.43 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.1808, allocations: 59.92 kB / 0.692 GB, free: 4.371 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.181, allocations: 65.84 kB / 0.692 GB, free: 4.309 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002813/0.1813, allocations: 126.7 kB / 0.6921 GB, free: 4.184 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1813, allocations: 0 / 0.6921 GB, free: 4.184 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003739/0.1817, allocations: 213.1 kB / 0.6923 GB, free: 3.969 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.1817, allocations: 7.938 kB / 0.6923 GB, free: 3.961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1817, allocations: 3.938 kB / 0.6924 GB, free: 3.957 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.1817, allocations: 7.984 kB / 0.6924 GB, free: 3.949 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/0.182, allocations: 51.97 kB / 0.6924 GB, free: 3.898 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.182, allocations: 0 / 0.6924 GB, free: 3.898 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000136/0.1821, allocations: 23.78 kB / 0.6924 GB, free: 3.875 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.1821, allocations: 7.984 kB / 0.6924 GB, free: 3.867 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: 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.0001635/0.1823, allocations: 162.5 kB / 0.6926 GB, free: 3.699 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.881e-05/0.1824, allocations: 35.53 kB / 0.6926 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.808e-05/0.1825, allocations: 51.52 kB / 0.6927 GB, free: 3.609 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1825, allocations: 4 kB / 0.6927 GB, free: 3.605 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.1825, allocations: 0 / 0.6927 GB, free: 3.605 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.1825, allocations: 4 kB / 0.6927 GB, free: 3.602 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004045/0.1829, allocations: 369.3 kB / 0.693 GB, free: 3.191 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1829, allocations: 0 / 0.693 GB, free: 3.191 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.1832, allocations: 59.89 kB / 0.6931 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1832, allocations: 0 / 0.6931 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.1832, allocations: 7.938 kB / 0.6931 GB, free: 3.125 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1832, allocations: 0 / 0.6931 GB, free: 3.125 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1832, allocations: 4 kB / 0.6931 GB, free: 3.121 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006023/0.1838, allocations: 371 kB / 0.6935 GB, free: 2.742 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.1839, allocations: 124.6 kB / 0.6936 GB, free: 2.602 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.477e-05/0.184, allocations: 7.875 kB / 0.6936 GB, free: 2.594 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.1841, allocations: 8 kB / 0.6936 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.273e-05/0.1842, allocations: 12.05 kB / 0.6936 GB, free: 2.574 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.1842, allocations: 8 kB / 0.6936 GB, free: 2.566 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003176/0.1845, allocations: 307.1 kB / 0.6939 GB, free: 2.266 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1845, allocations: 0 / 0.6939 GB, free: 2.266 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003005/0.1849, allocations: 71.84 kB / 0.694 GB, free: 2.195 MB / 494.1 MB 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.0008845/0.1857, allocations: 0.9277 MB / 0.6949 GB, free: 1.246 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003586/0.1861, allocations: 147.8 kB / 0.695 GB, free: 1.102 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1861, allocations: 0 / 0.695 GB, free: 1.102 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.1863, allocations: 83.81 kB / 0.6951 GB, free: 1.02 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005745/0.1869, allocations: 102.2 kB / 0.6952 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004317/0.1912, allocations: 3.537 MB / 0.6987 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.1915, allocations: 0.7951 MB / 0.6994 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001279/0.1917, allocations: 34.94 kB / 0.6995 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.1918, allocations: 119.4 kB / 0.6996 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of SimCode: time 6.41e-07/0.1918, allocations: 0 / 0.6996 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02871/0.2206, allocations: 7.864 MB / 0.7073 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.198/7.419, allocations: 5.812 kB / 0.7073 GB, free: 4.746 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)