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.001612/0.001612, 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.001352/0.001352, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.396/1.396, 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.002609/0.002609, allocations: 292.6 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.084/1.084, allocations: 178.6 MB / 0.5073 GB, free: 4.559 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002709/0.002709, allocations: 104.1 kB / 0.6066 GB, free: 24.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.163, allocations: 89.14 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004957/0.168, allocations: 3.022 MB / 0.6966 GB, free: 1.176 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002926/0.171, allocations: 2.141 MB / 0.6987 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.1712, allocations: 12 kB / 0.6987 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001327/0.1725, allocations: 497.6 kB / 0.6992 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000276/0.1728, allocations: 162.8 kB / 0.6993 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001418/0.173, allocations: 55.94 kB / 0.6994 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004837/0.1735, allocations: 454.7 kB / 0.6998 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002429/0.1737, allocations: 151 kB / 0.7 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.1739, allocations: 151.4 kB / 0.7001 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.1741, allocations: 183.2 kB / 0.7003 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.113e-05/0.1742, allocations: 32 kB / 0.7003 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.707e-05/0.1743, allocations: 40 kB / 0.7003 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.1744, allocations: 99.61 kB / 0.7004 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002049/0.1746, allocations: 214.9 kB / 0.7006 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000497/0.1751, allocations: 0.541 MB / 0.7012 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1751, allocations: 0 / 0.7012 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1751, allocations: 0 / 0.7012 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.164e-05/0.1751, allocations: 4 kB / 0.7012 GB, free: 12.46 MB / 0.4981 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.001005/0.1762, allocations: 0.7006 MB / 0.7019 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.1762, allocations: 12.03 kB / 0.7019 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.955e-05/0.1763, allocations: 54.72 kB / 0.7019 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.176e-05/0.1763, allocations: 52.38 kB / 0.702 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004539/0.1768, allocations: 370.1 kB / 0.7023 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.258e-05/0.1768, allocations: 16.81 kB / 0.7023 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.322e-05/0.1769, allocations: 24.38 kB / 0.7024 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003942/0.1773, allocations: 203.4 kB / 0.7026 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.1773, allocations: 0 / 0.7026 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.531e-05/0.1773, allocations: 15.97 kB / 0.7026 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.689e-06/0.1774, allocations: 11.94 kB / 0.7026 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003906/0.1777, allocations: 157.7 kB / 0.7027 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.179, allocations: 0.8701 MB / 0.7036 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003127/0.1793, allocations: 154.5 kB / 0.7037 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002244/0.1795, allocations: 112.8 kB / 0.7038 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.1796, allocations: 4 kB / 0.7038 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.1796, allocations: 30.56 kB / 0.7039 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.352e-06/0.1796, allocations: 3.938 kB / 0.7039 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006226/0.1802, allocations: 267.2 kB / 0.7041 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.1803, allocations: 55.34 kB / 0.7042 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004785/0.1808, allocations: 413.7 kB / 0.7046 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.1808, allocations: 29.7 kB / 0.7046 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.181, allocations: 208.2 kB / 0.7048 GB, free: 8.512 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.461e-05/0.181, allocations: 63.09 kB / 0.7049 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.223e-05/0.1811, allocations: 33.7 kB / 0.7049 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000161/0.1813, allocations: 350.8 kB / 0.7052 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.1814, allocations: 59.92 kB / 0.7053 GB, free: 8 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.1816, allocations: 55.97 kB / 0.7053 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003031/0.1819, allocations: 135 kB / 0.7055 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1819, allocations: 0 / 0.7055 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003986/0.1823, allocations: 214.5 kB / 0.7057 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.1824, allocations: 8 kB / 0.7057 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.1824, allocations: 3.938 kB / 0.7057 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1824, allocations: 0 / 0.7057 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002487/0.1826, allocations: 51.97 kB / 0.7057 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.1827, allocations: 11.97 kB / 0.7057 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.1828, allocations: 15.84 kB / 0.7058 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.1828, allocations: 4 kB / 0.7058 GB, free: 7.504 MB / 0.4981 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.0001637/0.183, allocations: 173.8 kB / 0.7059 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.091e-05/0.183, allocations: 35.53 kB / 0.706 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.908e-05/0.1831, allocations: 43.53 kB / 0.706 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.1831, allocations: 4 kB / 0.706 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1831, allocations: 0 / 0.706 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1832, allocations: 3.984 kB / 0.706 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004244/0.1836, allocations: 369.3 kB / 0.7064 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1836, allocations: 0 / 0.7064 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.1839, allocations: 59.97 kB / 0.7064 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1839, allocations: 0 / 0.7064 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.1839, allocations: 7.922 kB / 0.7064 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1839, allocations: 4 kB / 0.7064 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.1839, allocations: 7.938 kB / 0.7064 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006167/0.1845, allocations: 373.3 kB / 0.7068 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.1846, allocations: 120.7 kB / 0.7069 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/0.1847, allocations: 11.88 kB / 0.7069 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.1849, allocations: 11.98 kB / 0.7069 GB, free: 6.203 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.553e-05/0.1849, allocations: 7.984 kB / 0.7069 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.1849, allocations: 4 kB / 0.707 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003477/0.1853, allocations: 307.1 kB / 0.7072 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1853, allocations: 0 / 0.7072 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003042/0.1856, allocations: 71.84 kB / 0.7073 GB, free: 5.828 MB / 0.4981 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.0009486/0.1866, allocations: 0.9188 MB / 0.7082 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003833/0.187, allocations: 158.3 kB / 0.7084 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.187, allocations: 4.062 kB / 0.7084 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001675/0.1871, allocations: 75.91 kB / 0.7084 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005815/0.1877, allocations: 96.88 kB / 0.7085 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004733/0.1925, allocations: 3.541 MB / 0.712 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004464/0.1929, allocations: 0.7912 MB / 0.7128 GB, free: 124 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001279/0.1931, allocations: 34.97 kB / 0.7128 GB, free: 92 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.1933, allocations: 119.5 kB / 0.7129 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of SimCode: time 4.21e-07/0.1933, allocations: 0 / 0.7129 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03256/0.2258, allocations: 7.859 MB / 0.7206 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.941/8.166, allocations: 12.34 kB / 0.7206 GB, free: 8.375 MB / 0.5137 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)