Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IDEAS_dev_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_dev_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.001486/0.001486, 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.001761/0.001761, allocations: 186.9 kB / 16.25 MB, free: 6.586 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.464/1.464, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9284/0.9284, allocations: 135.1 MB / 425.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 68.61 kB / 0.505 GB, free: 5.469 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1577, allocations: 80.92 MB / 0.584 GB, free: 4.715 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005389/0.1631, allocations: 4.159 MB / 0.5881 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00325/0.1664, allocations: 2.363 MB / 0.5904 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004616/0.1668, allocations: 12 kB / 0.5904 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001644/0.1685, allocations: 0.4979 MB / 0.5909 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0006471/0.1692, allocations: 210.5 kB / 0.5911 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002774/0.1695, allocations: 123.9 kB / 0.5912 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009553/0.1704, allocations: 0.8132 MB / 0.592 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00045/0.1709, allocations: 330.5 kB / 0.5923 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003793/0.1713, allocations: 290.9 kB / 0.5926 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003005/0.1716, allocations: 330.6 kB / 0.5929 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.774e-05/0.1717, allocations: 76 kB / 0.593 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.271e-05/0.1718, allocations: 72 kB / 0.5931 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.1719, allocations: 179.4 kB / 0.5932 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002832/0.1722, allocations: 382.3 kB / 0.5936 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007297/0.173, allocations: 0.9928 MB / 0.5946 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.173, allocations: 3.938 kB / 0.5946 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.694e-06/0.173, allocations: 0 / 0.5946 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.707e-06/0.173, allocations: 0 / 0.5946 GB, free: 9.867 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.001227/0.1742, allocations: 0.9501 MB / 0.5955 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.1743, allocations: 8.031 kB / 0.5955 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.142e-05/0.1744, allocations: 86.7 kB / 0.5956 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.297e-05/0.1745, allocations: 72.09 kB / 0.5957 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004914/0.175, allocations: 469.6 kB / 0.5961 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.691e-05/0.175, allocations: 33.38 kB / 0.5961 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.419e-05/0.1751, allocations: 51.94 kB / 0.5962 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007001/0.1758, allocations: 426.5 kB / 0.5966 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.1758, allocations: 0 / 0.5966 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.389e-05/0.1758, allocations: 20 kB / 0.5966 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.1759, allocations: 12 kB / 0.5966 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006398/0.1765, allocations: 371.8 kB / 0.597 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.1783, allocations: 1.535 MB / 0.5985 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004715/0.1788, allocations: 339.6 kB / 0.5988 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004299/0.1792, allocations: 316.8 kB / 0.5991 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.1793, allocations: 4.688 kB / 0.5991 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.1793, allocations: 42.5 kB / 0.5992 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 1.493e-06/0.1793, allocations: 0 / 0.5992 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.0008577/0.1802, allocations: 0.4895 MB / 0.5996 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.1802, allocations: 67.19 kB / 0.5997 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004873/0.1807, allocations: 485.9 kB / 0.6002 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.1807, allocations: 29.7 kB / 0.6002 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.1809, allocations: 280.3 kB / 0.6005 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.181, allocations: 145.8 kB / 0.6006 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.794e-05/0.1811, allocations: 62.08 kB / 0.6007 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1812, allocations: 362.8 kB / 0.601 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/0.1815, allocations: 124.7 kB / 0.6011 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002251/0.1817, allocations: 125.4 kB / 0.6012 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004736/0.1822, allocations: 296.1 kB / 0.6015 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1822, allocations: 3.938 kB / 0.6015 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005888/0.1828, allocations: 392.5 kB / 0.6019 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.1828, allocations: 12 kB / 0.6019 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1828, allocations: 0 / 0.6019 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.1828, allocations: 0 / 0.6019 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004661/0.1833, allocations: 123.9 kB / 0.602 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.1833, allocations: 7.938 kB / 0.602 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002309/0.1836, allocations: 47.66 kB / 0.6021 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.999e-05/0.1836, allocations: 12 kB / 0.6021 GB, free: 1.914 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.0001935/0.1838, allocations: 205.6 kB / 0.6023 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.103e-05/0.1839, allocations: 51.34 kB / 0.6023 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.711e-05/0.184, allocations: 57.11 kB / 0.6024 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.184, allocations: 4 kB / 0.6024 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.184, allocations: 4 kB / 0.6024 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.184, allocations: 3.984 kB / 0.6024 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005883/0.1846, allocations: 0.5752 MB / 0.603 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1846, allocations: 4 kB / 0.603 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005383/0.1852, allocations: 123.9 kB / 0.6031 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1852, allocations: 0 / 0.6031 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.753e-05/0.1852, allocations: 8 kB / 0.6031 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.1852, allocations: 0 / 0.6031 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1852, allocations: 0 / 0.6031 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009048/0.1861, allocations: 0.6506 MB / 0.6037 GB, free: 164 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.1863, allocations: 136.4 kB / 0.6039 GB, free: 8 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.2428/0.4291, allocations: 13.02 kB / 0.6039 GB, free: 52.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003281/0.4295, allocations: 23.38 kB / 0.6039 GB, free: 52.37 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.627e-05/0.4295, allocations: 20.62 kB / 0.6039 GB, free: 52.37 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.4296, allocations: 13.03 kB / 0.6039 GB, free: 52.37 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004011/0.43, allocations: 351.3 kB / 0.6043 GB, free: 52.3 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.43, allocations: 0 / 0.6043 GB, free: 52.3 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004497/0.4304, allocations: 146.2 kB / 0.6044 GB, free: 52.3 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.001017/0.4315, allocations: 1.204 MB / 0.6056 GB, free: 51.64 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006184/0.4321, allocations: 345.5 kB / 0.6059 GB, free: 51.64 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.4321, allocations: 0 / 0.6059 GB, free: 51.64 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002324/0.4323, allocations: 182.7 kB / 0.6061 GB, free: 51.64 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006632/0.433, allocations: 124.7 kB / 0.6062 GB, free: 51.64 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005328/0.4383, allocations: 5.213 MB / 0.6113 GB, free: 48.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.4386, allocations: 0.8717 MB / 0.6121 GB, free: 48.13 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001931/0.4388, allocations: 55.67 kB / 0.6122 GB, free: 48.12 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002017/0.439, allocations: 189.6 kB / 0.6124 GB, free: 47.98 MB / 0.4981 GB Notification: Performance of SimCode: time 4.51e-07/0.439, allocations: 3.062 kB / 0.6124 GB, free: 47.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3735/0.8125, allocations: 11.07 MB / 0.6232 GB, free: 47.19 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/0.8128, allocations: 270.8 kB / 0.6235 GB, free: 46.83 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.125/2.938, allocations: 0 / 0.6235 GB, free: 46.83 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)