Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_maint_7_0_x_Buildings_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.314/1.314, allocations: 251.5 MB / 266.7 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009426/0.0009425, allocations: 185.6 kB / 325.9 MB, free: 2.676 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 205 MB / 0.576 GB, free: 20.91 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007634/0.0007635, allocations: 87.5 kB / 0.6797 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003075/0.0003077, allocations: 8.594 kB / 0.7933 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1634, allocations: 105.4 MB / 0.8962 GB, free: 68.02 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.003112/0.1666, allocations: 3.855 MB / 0.9 GB, free: 64.13 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002212/0.1688, allocations: 2.422 MB / 0.9024 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002719/0.1691, allocations: 12 kB / 0.9024 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.1703, allocations: 0.4939 MB / 0.9029 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0003791/0.1707, allocations: 218.5 kB / 0.9031 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001752/0.1709, allocations: 119.9 kB / 0.9032 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0005208/0.1714, allocations: 0.8097 MB / 0.904 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003058/0.1717, allocations: 280.2 kB / 0.9042 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002152/0.1719, allocations: 231 kB / 0.9045 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002105/0.1721, allocations: 294.6 kB / 0.9047 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.639e-05/0.1722, allocations: 32 kB / 0.9048 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.417e-05/0.1723, allocations: 39.94 kB / 0.9048 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.1724, allocations: 123.5 kB / 0.9049 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.1726, allocations: 334.2 kB / 0.9052 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004715/0.1731, allocations: 0.9379 MB / 0.9062 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1731, allocations: 3.938 kB / 0.9062 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.723e-06/0.1731, allocations: 0 / 0.9062 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.237e-06/0.1731, allocations: 4 kB / 0.9062 GB, free: 57.79 MB / 0.6042 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.0009606/0.1741, allocations: 0.8412 MB / 0.907 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.1741, allocations: 8.031 kB / 0.907 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.121e-05/0.1742, allocations: 90.7 kB / 0.9071 GB, free: 56.79 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.777e-05/0.1743, allocations: 76.03 kB / 0.9072 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004303/0.1747, allocations: 453.7 kB / 0.9076 GB, free: 56.23 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.1747, allocations: 37.38 kB / 0.9076 GB, free: 56.19 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.194e-05/0.1748, allocations: 48.38 kB / 0.9077 GB, free: 56.14 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005789/0.1754, allocations: 434.6 kB / 0.9081 GB, free: 55.71 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.1754, allocations: 0 / 0.9081 GB, free: 55.71 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/0.1754, allocations: 20 kB / 0.9081 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.1755, allocations: 12 kB / 0.9081 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005433/0.176, allocations: 383.8 kB / 0.9085 GB, free: 55.31 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.1775, allocations: 1.539 MB / 0.91 GB, free: 53.7 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004021/0.1779, allocations: 350.7 kB / 0.9103 GB, free: 53.34 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003599/0.1783, allocations: 325.4 kB / 0.9106 GB, free: 53.02 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.1783, allocations: 7.938 kB / 0.9106 GB, free: 53.01 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.595e-05/0.1783, allocations: 38.56 kB / 0.9107 GB, free: 52.96 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=42): time 1.473e-06/0.1783, allocations: 0 / 0.9107 GB, free: 52.96 MB / 0.6042 GB Notification: Performance of matching and sorting (n=42): time 0.0007524/0.1791, allocations: 0.5126 MB / 0.9112 GB, free: 52.45 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.1e-05/0.1791, allocations: 56.17 kB / 0.9112 GB, free: 52.38 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003863/0.1795, allocations: 485.9 kB / 0.9117 GB, free: 51.9 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.1795, allocations: 33.7 kB / 0.9117 GB, free: 51.86 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.1797, allocations: 276.4 kB / 0.912 GB, free: 51.59 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.022e-05/0.1797, allocations: 145.8 kB / 0.9121 GB, free: 51.44 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.599e-05/0.1798, allocations: 33.7 kB / 0.9122 GB, free: 51.4 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.273e-05/0.1798, allocations: 358.8 kB / 0.9125 GB, free: 51.04 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.1801, allocations: 140.6 kB / 0.9126 GB, free: 50.9 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.1802, allocations: 125.5 kB / 0.9128 GB, free: 50.78 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004083/0.1807, allocations: 310.5 kB / 0.9131 GB, free: 50.48 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1807, allocations: 0 / 0.9131 GB, free: 50.48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000497/0.1812, allocations: 408.3 kB / 0.9134 GB, free: 50.07 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.1812, allocations: 8 kB / 0.9134 GB, free: 50.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.1812, allocations: 4 kB / 0.9135 GB, free: 50.06 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.1812, allocations: 0 / 0.9135 GB, free: 50.06 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004458/0.1817, allocations: 127.9 kB / 0.9136 GB, free: 49.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.1817, allocations: 0 / 0.9136 GB, free: 49.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002338/0.1819, allocations: 55.64 kB / 0.9136 GB, free: 49.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.182, allocations: 12 kB / 0.9136 GB, free: 49.87 MB / 0.6042 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.0001754/0.1821, allocations: 197.8 kB / 0.9138 GB, free: 49.66 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.801e-05/0.1822, allocations: 59.22 kB / 0.9139 GB, free: 49.61 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.001e-05/0.1823, allocations: 57.11 kB / 0.9139 GB, free: 49.55 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1823, allocations: 4 kB / 0.9139 GB, free: 49.54 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1823, allocations: 4 kB / 0.9139 GB, free: 49.54 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1823, allocations: 7.984 kB / 0.914 GB, free: 49.53 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004485/0.1828, allocations: 0.5713 MB / 0.9145 GB, free: 48.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1828, allocations: 3.938 kB / 0.9145 GB, free: 48.91 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004357/0.1832, allocations: 123.9 kB / 0.9146 GB, free: 48.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1832, allocations: 4 kB / 0.9146 GB, free: 48.78 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.1833, allocations: 8 kB / 0.9146 GB, free: 48.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1833, allocations: 4 kB / 0.9146 GB, free: 48.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1833, allocations: 3.938 kB / 0.9147 GB, free: 48.77 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007461/0.184, allocations: 0.6672 MB / 0.9153 GB, free: 48.08 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 8.302e-05/0.1841, allocations: 148.3 kB / 0.9154 GB, free: 47.92 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.375e-05/0.1842, allocations: 4 kB / 0.9155 GB, free: 47.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/0.1844, allocations: 23.98 kB / 0.9155 GB, free: 47.89 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.978e-05/0.1845, allocations: 23.97 kB / 0.9155 GB, free: 47.87 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.1845, allocations: 8 kB / 0.9155 GB, free: 47.86 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002919/0.1848, allocations: 355.1 kB / 0.9158 GB, free: 47.52 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.1848, allocations: 4 kB / 0.9158 GB, free: 47.52 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003415/0.1851, allocations: 143.5 kB / 0.916 GB, free: 47.38 MB / 0.6042 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.0009631/0.1861, allocations: 1.231 MB / 0.9172 GB, free: 46.12 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004802/0.1866, allocations: 332.7 kB / 0.9175 GB, free: 45.79 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1866, allocations: 0 / 0.9175 GB, free: 45.79 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.1868, allocations: 187.6 kB / 0.9177 GB, free: 45.61 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000635/0.1875, allocations: 114.5 kB / 0.9178 GB, free: 45.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005439/0.1929, allocations: 5.26 MB / 0.9229 GB, free: 40.15 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.1932, allocations: 0.8743 MB / 0.9238 GB, free: 39.25 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001977/0.1934, allocations: 52.39 kB / 0.9238 GB, free: 39.2 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001955/0.1936, allocations: 183.4 kB / 0.924 GB, free: 39.02 MB / 0.6042 GB Notification: Performance of SimCode: time 1.433e-06/0.1936, allocations: 4 kB / 0.924 GB, free: 39.02 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4525/0.6461, allocations: 10.65 MB / 0.9344 GB, free: 28.7 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002017/0.6464, allocations: 285.8 kB / 0.9347 GB, free: 28.32 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.267/2.914, allocations: 10.12 kB / 0.9347 GB, free: 28.31 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)