Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",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.001073/0.001073, 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.001168/0.001168, allocations: 192.5 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.317/1.317, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9152/0.9152, allocations: 143 MB / 433.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 59.91 kB / 0.5143 GB, free: 11.51 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1645/0.1659, allocations: 82.04 MB / 0.5944 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005388/0.1713, allocations: 4.136 MB / 0.5985 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003691/0.1751, allocations: 2.414 MB / 0.6008 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004396/0.1755, allocations: 12 kB / 0.6008 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00165/0.1772, allocations: 0.5285 MB / 0.6014 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0007494/0.1779, allocations: 254 kB / 0.6016 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003397/0.1783, allocations: 135.9 kB / 0.6017 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009978/0.1793, allocations: 0.8092 MB / 0.6025 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004828/0.1798, allocations: 326.5 kB / 0.6028 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003935/0.1802, allocations: 295 kB / 0.6031 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004082/0.1806, allocations: 326.6 kB / 0.6034 GB, free: 176 kB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001088/0.1807, allocations: 76 kB / 0.6035 GB, free: 100 kB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.1809, allocations: 72 kB / 0.6036 GB, free: 28 kB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.2716/0.4525, allocations: 168.4 kB / 0.6037 GB, free: 38.14 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000523/0.453, allocations: 390.1 kB / 0.6041 GB, free: 38.12 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007804/0.4538, allocations: 1.015 MB / 0.6051 GB, free: 38.02 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.4538, allocations: 2.281 kB / 0.6051 GB, free: 38.02 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.355e-06/0.4538, allocations: 2.812 kB / 0.6051 GB, free: 38.02 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.471e-05/0.4538, allocations: 0 / 0.6051 GB, free: 38.02 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001145/0.455, allocations: 0.9507 MB / 0.606 GB, free: 37.43 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.455, allocations: 10.44 kB / 0.606 GB, free: 37.43 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.477e-05/0.4551, allocations: 88.03 kB / 0.6061 GB, free: 37.39 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.68e-05/0.4552, allocations: 77.97 kB / 0.6062 GB, free: 37.35 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004278/0.4556, allocations: 454.5 kB / 0.6066 GB, free: 37.09 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.819e-05/0.4557, allocations: 41 kB / 0.6067 GB, free: 37.09 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.967e-05/0.4558, allocations: 45.94 kB / 0.6067 GB, free: 37.09 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006045/0.4564, allocations: 429.9 kB / 0.6071 GB, free: 37.04 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.4564, allocations: 0 / 0.6071 GB, free: 37.04 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-05/0.4564, allocations: 21.25 kB / 0.6071 GB, free: 37.04 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.4565, allocations: 14.06 kB / 0.6072 GB, free: 37.04 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005634/0.457, allocations: 366.5 kB / 0.6075 GB, free: 37.03 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001538/0.4586, allocations: 1.539 MB / 0.609 GB, free: 36.58 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004188/0.459, allocations: 337.6 kB / 0.6093 GB, free: 36.55 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004019/0.4594, allocations: 318 kB / 0.6096 GB, free: 36.55 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.4594, allocations: 5.875 kB / 0.6096 GB, free: 36.55 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.4595, allocations: 41.08 kB / 0.6097 GB, free: 36.5 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 2.264e-06/0.4595, allocations: 0.8438 kB / 0.6097 GB, free: 36.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.0007773/0.4603, allocations: 0.4901 MB / 0.6102 GB, free: 36.44 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.331e-05/0.4603, allocations: 58.84 kB / 0.6102 GB, free: 36.38 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003893/0.4607, allocations: 488.6 kB / 0.6107 GB, free: 36.27 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.4607, allocations: 32.08 kB / 0.6107 GB, free: 36.23 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.4608, allocations: 275.2 kB / 0.611 GB, free: 36.11 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.723e-05/0.4609, allocations: 151.7 kB / 0.6111 GB, free: 36.01 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.543e-05/0.461, allocations: 57.88 kB / 0.6112 GB, free: 35.99 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.271e-05/0.4611, allocations: 365.3 kB / 0.6115 GB, free: 35.68 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000208/0.4613, allocations: 123.1 kB / 0.6116 GB, free: 35.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.4615, allocations: 126.8 kB / 0.6118 GB, free: 35.68 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004202/0.4619, allocations: 304.3 kB / 0.612 GB, free: 35.66 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.4619, allocations: 0 / 0.612 GB, free: 35.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005116/0.4625, allocations: 401.5 kB / 0.6124 GB, free: 35.54 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.4625, allocations: 2.844 kB / 0.6124 GB, free: 35.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.4625, allocations: 0 / 0.6124 GB, free: 35.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.4625, allocations: 4.844 kB / 0.6124 GB, free: 35.54 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004483/0.463, allocations: 128.9 kB / 0.6126 GB, free: 35.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.463, allocations: 0 / 0.6126 GB, free: 35.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/0.4632, allocations: 28.94 kB / 0.6126 GB, free: 35.51 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.4632, allocations: 17.84 kB / 0.6126 GB, free: 35.5 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 (46): * Single equations (assignments): 46 * 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.0001562/0.4634, allocations: 194.3 kB / 0.6128 GB, free: 35.34 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.395e-05/0.4634, allocations: 55.34 kB / 0.6128 GB, free: 35.31 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.043e-05/0.4635, allocations: 60.58 kB / 0.6129 GB, free: 35.27 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.4635, allocations: 5.75 kB / 0.6129 GB, free: 35.27 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.4635, allocations: 0.5625 kB / 0.6129 GB, free: 35.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.4635, allocations: 6.094 kB / 0.6129 GB, free: 35.27 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004922/0.464, allocations: 0.5687 MB / 0.6135 GB, free: 34.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.4641, allocations: 0.5 kB / 0.6135 GB, free: 34.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004588/0.4645, allocations: 131.9 kB / 0.6136 GB, free: 34.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.4645, allocations: 4.219 kB / 0.6136 GB, free: 34.91 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.47e-05/0.4646, allocations: 10.97 kB / 0.6136 GB, free: 34.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.4646, allocations: 4.438 kB / 0.6136 GB, free: 34.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4646, allocations: 2.594 kB / 0.6136 GB, free: 34.9 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007865/0.4654, allocations: 0.6499 MB / 0.6142 GB, free: 34.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.473e-05/0.4655, allocations: 143.7 kB / 0.6144 GB, free: 34.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.857e-05/0.4655, allocations: 7.562 kB / 0.6144 GB, free: 34.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.4657, allocations: 13.28 kB / 0.6144 GB, free: 34.4 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.961e-05/0.4658, allocations: 25.2 kB / 0.6144 GB, free: 34.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.4658, allocations: 5.75 kB / 0.6144 GB, free: 34.39 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002879/0.4661, allocations: 354.6 kB / 0.6148 GB, free: 34.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4661, allocations: 3 kB / 0.6148 GB, free: 34.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003453/0.4665, allocations: 143.9 kB / 0.6149 GB, free: 34.2 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (intRes2UTub.capFil1.T,intRes2UTub.capFil2.T,intRes2UTub.capFil3.T,intRes2UTub.capFil4.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 (42): * Single equations (assignments): 42 * 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.0009814/0.4675, allocations: 1.2 MB / 0.6161 GB, free: 33.31 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006312/0.4681, allocations: 353 kB / 0.6164 GB, free: 33.19 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4681, allocations: 2.906 kB / 0.6164 GB, free: 33.19 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002362/0.4684, allocations: 178 kB / 0.6166 GB, free: 33.13 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006332/0.469, allocations: 130.4 kB / 0.6167 GB, free: 33.09 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004839/0.4738, allocations: 5.019 MB / 0.6216 GB, free: 30.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.4741, allocations: 0.8734 MB / 0.6225 GB, free: 29.55 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001894/0.4743, allocations: 50.12 kB / 0.6225 GB, free: 29.55 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002054/0.4745, allocations: 191.2 kB / 0.6227 GB, free: 29.4 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.4746, allocations: 0 / 0.6227 GB, free: 29.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02733/0.5019, allocations: 11.25 MB / 0.6337 GB, free: 28.47 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.24/7.742, allocations: 8.531 kB / 0.6337 GB, free: 28.46 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)