Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.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(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IDEAS_IDEAS_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.007534/0.007533, allocations: 100.7 kB / 15.73 MB, free: 6.469 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.001775/0.001775, allocations: 193.2 kB / 16.67 MB, free: 6.379 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.262/1.262, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7278/0.7278, allocations: 132.2 MB / 422.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 66.66 kB / 0.5809 GB, free: 1.137 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1536, allocations: 80.2 MB / 0.6592 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005101/0.1588, allocations: 4.127 MB / 0.6633 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003424/0.1622, allocations: 2.424 MB / 0.6656 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004974/0.1628, allocations: 8 kB / 0.6656 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00168/0.1645, allocations: 0.5411 MB / 0.6662 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0007251/0.1652, allocations: 250 kB / 0.6664 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.1656, allocations: 139.9 kB / 0.6665 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001011/0.1666, allocations: 0.8158 MB / 0.6673 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004836/0.1671, allocations: 322.5 kB / 0.6676 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004608/0.1676, allocations: 298.9 kB / 0.6679 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004645/0.168, allocations: 326.6 kB / 0.6682 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001379/0.1682, allocations: 76 kB / 0.6683 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001661/0.1683, allocations: 72 kB / 0.6684 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001752/0.1685, allocations: 175.4 kB / 0.6686 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004317/0.169, allocations: 390.2 kB / 0.6689 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008874/0.1699, allocations: 0.9928 MB / 0.6699 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.1699, allocations: 4 kB / 0.6699 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.475e-06/0.1699, allocations: 0 / 0.6699 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.196e-05/0.1699, allocations: 0 / 0.6699 GB, free: 3.012 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.001638/0.1716, allocations: 0.9502 MB / 0.6708 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1716, allocations: 8.031 kB / 0.6708 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/0.1717, allocations: 90.7 kB / 0.6709 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.1719, allocations: 72.09 kB / 0.671 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000685/0.1726, allocations: 453.7 kB / 0.6714 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.085e-05/0.1726, allocations: 45.06 kB / 0.6715 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.281e-05/0.1727, allocations: 55.89 kB / 0.6715 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007385/0.1734, allocations: 426.5 kB / 0.6719 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.1734, allocations: 0 / 0.6719 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.871e-05/0.1735, allocations: 20 kB / 0.6719 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.1735, allocations: 12 kB / 0.672 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000661/0.1742, allocations: 367.8 kB / 0.6723 GB, free: 452 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002037/0.1762, allocations: 1.52 MB / 0.6738 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005027/0.1767, allocations: 339.2 kB / 0.6741 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004333/0.1772, allocations: 321.5 kB / 0.6744 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.1772, allocations: 4 kB / 0.6744 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.1772, allocations: 38.56 kB / 0.6745 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 1.643e-06/0.1773, allocations: 0 / 0.6745 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.0008981/0.1782, allocations: 0.4901 MB / 0.6749 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.1782, allocations: 63.39 kB / 0.675 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005284/0.1787, allocations: 485.9 kB / 0.6755 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.1788, allocations: 33.64 kB / 0.6755 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.179, allocations: 280.4 kB / 0.6758 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.1791, allocations: 145.8 kB / 0.6759 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.225e-05/0.1792, allocations: 62.08 kB / 0.676 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1793, allocations: 358.8 kB / 0.6763 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.1795, allocations: 124.7 kB / 0.6764 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.1798, allocations: 126.3 kB / 0.6765 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004584/0.1802, allocations: 298.4 kB / 0.6768 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.1802, allocations: 4 kB / 0.6768 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005946/0.1808, allocations: 400.1 kB / 0.6772 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.1809, allocations: 8 kB / 0.6772 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.1809, allocations: 0 / 0.6772 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.1809, allocations: 0 / 0.6772 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004862/0.1814, allocations: 127.9 kB / 0.6773 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.1814, allocations: 4 kB / 0.6773 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.1816, allocations: 35.58 kB / 0.6774 GB, free: 11.08 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.844e-05/0.1817, allocations: 15.94 kB / 0.6774 GB, free: 11.06 MB / 0.5137 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.0002043/0.1819, allocations: 199 kB / 0.6776 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.2e-05/0.182, allocations: 47.44 kB / 0.6776 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.1821, allocations: 61.09 kB / 0.6777 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1821, allocations: 4 kB / 0.6777 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1821, allocations: 4 kB / 0.6777 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1821, allocations: 7.984 kB / 0.6777 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006064/0.1827, allocations: 0.5711 MB / 0.6783 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.1827, allocations: 4 kB / 0.6783 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004762/0.1832, allocations: 127.8 kB / 0.6784 GB, free: 9.988 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.1832, allocations: 3.938 kB / 0.6784 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/0.1833, allocations: 8 kB / 0.6784 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.1833, allocations: 0 / 0.6784 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1833, allocations: 0 / 0.6784 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008964/0.1842, allocations: 0.6582 MB / 0.679 GB, free: 9.301 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.1843, allocations: 132.5 kB / 0.6792 GB, free: 9.152 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.508e-05/0.1844, allocations: 12 kB / 0.6792 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.1846, allocations: 8 kB / 0.6792 GB, free: 9.133 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.298e-05/0.1847, allocations: 27.95 kB / 0.6792 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.1847, allocations: 12 kB / 0.6792 GB, free: 9.094 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003683/0.1851, allocations: 351.1 kB / 0.6796 GB, free: 8.754 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1851, allocations: 0 / 0.6796 GB, free: 8.754 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003987/0.1855, allocations: 143.6 kB / 0.6797 GB, free: 8.613 MB / 0.5137 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.00118/0.1867, allocations: 1.208 MB / 0.6809 GB, free: 7.379 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005637/0.1872, allocations: 319.8 kB / 0.6812 GB, free: 7.066 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1873, allocations: 0 / 0.6812 GB, free: 7.066 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.1875, allocations: 183.8 kB / 0.6814 GB, free: 6.887 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000629/0.1882, allocations: 130.4 kB / 0.6815 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006067/0.1942, allocations: 4.848 MB / 0.6862 GB, free: 1.836 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.1947, allocations: 0.8665 MB / 0.6871 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001985/0.1949, allocations: 56.38 kB / 0.6871 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/0.1951, allocations: 191.4 kB / 0.6873 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of SimCode: time 1.012e-06/0.1951, allocations: 0 / 0.6873 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03204/0.2272, allocations: 11.61 MB / 0.6986 GB, free: 5.41 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.982/8.209, allocations: 11.42 kB / 0.6986 GB, free: 5.402 MB / 0.5294 GB (rm -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)