Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_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.001164/0.001164, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001384/0.001384, allocations: 192.4 kB / 16.25 MB, free: 6.625 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.329/1.329, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002125/0.002125, allocations: 274.9 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9605/0.9605, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 96.52 kB / 0.5948 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1434, allocations: 86.98 MB / 0.6798 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004871/0.1483, allocations: 4.156 MB / 0.6838 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002994/0.1514, allocations: 2.368 MB / 0.6861 GB, free: 10.39 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003478/0.1517, allocations: 12 kB / 0.6862 GB, free: 10.38 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001417/0.1532, allocations: 0.5017 MB / 0.6866 GB, free: 9.871 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005219/0.1537, allocations: 222.4 kB / 0.6869 GB, free: 9.652 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002242/0.154, allocations: 119.9 kB / 0.687 GB, free: 9.535 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007171/0.1547, allocations: 0.8046 MB / 0.6878 GB, free: 8.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004166/0.1551, allocations: 334.4 kB / 0.6881 GB, free: 8.402 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002854/0.1554, allocations: 287 kB / 0.6884 GB, free: 8.121 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003178/0.1557, allocations: 338.6 kB / 0.6887 GB, free: 7.789 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.734e-05/0.1558, allocations: 76 kB / 0.6887 GB, free: 7.715 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.565e-05/0.1559, allocations: 79.94 kB / 0.6888 GB, free: 7.637 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.1561, allocations: 171.4 kB / 0.689 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003214/0.1564, allocations: 386.2 kB / 0.6894 GB, free: 7.09 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000798/0.1572, allocations: 0.985 MB / 0.6903 GB, free: 6.102 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1572, allocations: 0 / 0.6903 GB, free: 6.102 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1572, allocations: 0 / 0.6903 GB, free: 6.102 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.273e-05/0.1573, allocations: 0 / 0.6903 GB, free: 6.102 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.00136/0.1586, allocations: 0.9462 MB / 0.6912 GB, free: 5.105 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.1587, allocations: 20.02 kB / 0.6913 GB, free: 5.086 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.421e-05/0.1588, allocations: 86.72 kB / 0.6913 GB, free: 4.992 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.715e-05/0.1589, allocations: 76.08 kB / 0.6914 GB, free: 4.918 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.1594, allocations: 449.7 kB / 0.6918 GB, free: 4.438 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.1594, allocations: 37.38 kB / 0.6919 GB, free: 4.402 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.363e-05/0.1595, allocations: 48.28 kB / 0.6919 GB, free: 4.355 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007217/0.1602, allocations: 434.6 kB / 0.6923 GB, free: 3.926 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.1602, allocations: 3.938 kB / 0.6923 GB, free: 3.922 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/0.1603, allocations: 20 kB / 0.6924 GB, free: 3.902 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.1603, allocations: 16 kB / 0.6924 GB, free: 3.887 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000668/0.161, allocations: 363.8 kB / 0.6927 GB, free: 3.531 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.1629, allocations: 1.532 MB / 0.6942 GB, free: 1.93 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005082/0.1635, allocations: 342.8 kB / 0.6945 GB, free: 1.586 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004415/0.1639, allocations: 313.5 kB / 0.6948 GB, free: 1.277 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.164, allocations: 11.94 kB / 0.6949 GB, free: 1.266 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.164, allocations: 34.56 kB / 0.6949 GB, free: 1.223 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.903e-06/0.164, allocations: 0 / 0.6949 GB, free: 1.223 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009061/0.1649, allocations: 0.497 MB / 0.6954 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.165, allocations: 59.34 kB / 0.6954 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005316/0.1655, allocations: 485.9 kB / 0.6959 GB, free: 168 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.1655, allocations: 33.7 kB / 0.6959 GB, free: 128 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001856/0.1657, allocations: 272.5 kB / 0.6962 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.1659, allocations: 153.6 kB / 0.6963 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.211e-05/0.166, allocations: 66.08 kB / 0.6964 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1661, allocations: 358.8 kB / 0.6967 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002358/0.1663, allocations: 120.7 kB / 0.6969 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.1666, allocations: 129.4 kB / 0.697 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004817/0.1671, allocations: 298 kB / 0.6973 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1671, allocations: 0 / 0.6973 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006285/0.1677, allocations: 396.2 kB / 0.6976 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.1677, allocations: 4 kB / 0.6976 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1678, allocations: 0 / 0.6976 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.1678, allocations: 4 kB / 0.6977 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004846/0.1683, allocations: 127.8 kB / 0.6978 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.1683, allocations: 3.938 kB / 0.6978 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002781/0.1686, allocations: 63.56 kB / 0.6978 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.098e-05/0.1686, allocations: 12 kB / 0.6978 GB, free: 14.13 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.0001948/0.1688, allocations: 190.4 kB / 0.698 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.928e-05/0.1689, allocations: 51.38 kB / 0.6981 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.169, allocations: 61.11 kB / 0.6981 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.169, allocations: 8 kB / 0.6981 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.169, allocations: 0 / 0.6981 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.169, allocations: 3.984 kB / 0.6981 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006296/0.1697, allocations: 0.5712 MB / 0.6987 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.1697, allocations: 7.875 kB / 0.6987 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004998/0.1702, allocations: 127.8 kB / 0.6988 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.1702, allocations: 4 kB / 0.6988 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.303e-05/0.1702, allocations: 8 kB / 0.6988 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.1702, allocations: 4 kB / 0.6989 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1702, allocations: 4 kB / 0.6989 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009199/0.1712, allocations: 0.6478 MB / 0.6995 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.1713, allocations: 140.5 kB / 0.6996 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.119e-05/0.1713, allocations: 11.98 kB / 0.6996 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002315/0.1716, allocations: 23.98 kB / 0.6997 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.522e-05/0.1716, allocations: 19.97 kB / 0.6997 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.1717, allocations: 12 kB / 0.6997 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003698/0.172, allocations: 355.1 kB / 0.7 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.1721, allocations: 0 / 0.7 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003729/0.1724, allocations: 139.6 kB / 0.7002 GB, free: 11.66 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.001194/0.1736, allocations: 1.203 MB / 0.7013 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006753/0.1743, allocations: 336.2 kB / 0.7017 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1743, allocations: 0 / 0.7017 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.1746, allocations: 187.6 kB / 0.7018 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006707/0.1753, allocations: 129.8 kB / 0.702 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006497/0.1818, allocations: 5.227 MB / 0.7071 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.1822, allocations: 0.8742 MB / 0.7079 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002012/0.1824, allocations: 56.33 kB / 0.708 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002292/0.1827, allocations: 187.4 kB / 0.7081 GB, free: 3.344 MB / 0.4981 GB Notification: Performance of SimCode: time 3.8e-07/0.1827, allocations: 0 / 0.7081 GB, free: 3.344 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1878/0.3705, allocations: 11.09 MB / 0.719 GB, free: 8.605 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002407/0.3708, allocations: 286 kB / 0.7193 GB, free: 8.227 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.949/2.319, allocations: 4 kB / 0.7193 GB, free: 8.223 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)