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.001044/0.001044, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001069/0.001069, allocations: 199.3 kB / 16.14 MB, free: 6.664 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.293/1.293, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.744/0.744, allocations: 132.2 MB / 422.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 64.34 kB / 0.5012 GB, free: 9.074 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1513, allocations: 80.2 MB / 0.5795 GB, free: 9.094 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004667/0.156, allocations: 4.17 MB / 0.5836 GB, free: 4.898 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00274/0.1588, allocations: 2.363 MB / 0.5859 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002306/0.1591, allocations: 12 kB / 0.5859 GB, free: 2.516 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.1604, allocations: 0.4939 MB / 0.5864 GB, free: 2.02 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003667/0.1607, allocations: 222.4 kB / 0.5866 GB, free: 1.801 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001957/0.161, allocations: 119.9 kB / 0.5867 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006485/0.1616, allocations: 0.802 MB / 0.5875 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003473/0.162, allocations: 292.1 kB / 0.5878 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.1622, allocations: 251 kB / 0.588 GB, free: 348 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002715/0.1625, allocations: 322.5 kB / 0.5884 GB, free: 24 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.386e-05/0.1626, allocations: 44.05 kB / 0.5884 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.558e-05/0.1627, allocations: 48 kB / 0.5884 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.1628, allocations: 151.3 kB / 0.5886 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002801/0.1631, allocations: 350.3 kB / 0.5889 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006498/0.1638, allocations: 0.9733 MB / 0.5899 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1638, allocations: 0 / 0.5899 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of FrontEnd: time 7.11e-07/0.1638, allocations: 3.938 kB / 0.5899 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.897e-06/0.1638, allocations: 0 / 0.5899 GB, free: 14.46 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.001271/0.1651, allocations: 0.954 MB / 0.5908 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.1651, allocations: 8.031 kB / 0.5908 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.06e-05/0.1652, allocations: 94.69 kB / 0.5909 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.966e-05/0.1653, allocations: 72.09 kB / 0.591 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000499/0.1658, allocations: 453.6 kB / 0.5914 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.1659, allocations: 41.38 kB / 0.5914 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.439e-05/0.1659, allocations: 51.94 kB / 0.5915 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006904/0.1666, allocations: 430.4 kB / 0.5919 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.1667, allocations: 0 / 0.5919 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.684e-05/0.1667, allocations: 20 kB / 0.5919 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.1667, allocations: 12 kB / 0.5919 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006583/0.1674, allocations: 363.8 kB / 0.5923 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.1692, allocations: 1.528 MB / 0.5938 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004832/0.1697, allocations: 343.6 kB / 0.5941 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004345/0.1702, allocations: 332.4 kB / 0.5944 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.1702, allocations: 4.688 kB / 0.5944 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.1702, allocations: 34.56 kB / 0.5945 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 1.603e-06/0.1702, allocations: 0 / 0.5945 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.0009068/0.1711, allocations: 493.6 kB / 0.5949 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.1712, allocations: 67.19 kB / 0.595 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004823/0.1717, allocations: 485.9 kB / 0.5955 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.1717, allocations: 33.64 kB / 0.5955 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.1719, allocations: 280.3 kB / 0.5958 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.172, allocations: 145.8 kB / 0.5959 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.772e-05/0.1721, allocations: 62.08 kB / 0.596 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1722, allocations: 358.8 kB / 0.5963 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002348/0.1725, allocations: 132.7 kB / 0.5964 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.1727, allocations: 130.3 kB / 0.5965 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004682/0.1732, allocations: 286.4 kB / 0.5968 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.1732, allocations: 4.703 kB / 0.5968 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006027/0.1738, allocations: 396.2 kB / 0.5972 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.1738, allocations: 8 kB / 0.5972 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.1738, allocations: 4 kB / 0.5972 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.1738, allocations: 0 / 0.5972 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004761/0.1743, allocations: 127.8 kB / 0.5973 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.1743, allocations: 4 kB / 0.5973 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.1746, allocations: 55.53 kB / 0.5974 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.1746, allocations: 12 kB / 0.5974 GB, free: 6.496 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.1748, allocations: 203 kB / 0.5976 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.374e-05/0.1749, allocations: 51.34 kB / 0.5976 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.175, allocations: 57.11 kB / 0.5977 GB, free: 6.18 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.175, allocations: 4 kB / 0.5977 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.175, allocations: 4 kB / 0.5977 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.175, allocations: 3.984 kB / 0.5977 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005861/0.1756, allocations: 0.5712 MB / 0.5983 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1756, allocations: 8 kB / 0.5983 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004901/0.1761, allocations: 123.9 kB / 0.5984 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.1761, allocations: 0 / 0.5984 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.1762, allocations: 8 kB / 0.5984 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.1762, allocations: 0 / 0.5984 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1762, allocations: 0 / 0.5984 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009236/0.1771, allocations: 0.6508 MB / 0.599 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.1772, allocations: 140.4 kB / 0.5992 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.178e-05/0.1773, allocations: 12 kB / 0.5992 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.1775, allocations: 15.98 kB / 0.5992 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.064e-05/0.1776, allocations: 27.95 kB / 0.5992 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.1776, allocations: 8 kB / 0.5992 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003506/0.178, allocations: 355.1 kB / 0.5996 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.5e-07/0.178, allocations: 0 / 0.5996 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003703/0.1784, allocations: 143.6 kB / 0.5997 GB, free: 4.035 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.001176/0.1795, allocations: 1.211 MB / 0.6009 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005451/0.1801, allocations: 319.8 kB / 0.6012 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1801, allocations: 3.938 kB / 0.6012 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002684/0.1804, allocations: 183.6 kB / 0.6014 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006997/0.1811, allocations: 120.5 kB / 0.6015 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2175/0.3986, allocations: 5.212 MB / 0.6066 GB, free: 54.65 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.3989, allocations: 0.8691 MB / 0.6074 GB, free: 53.95 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002011/0.3991, allocations: 50.89 kB / 0.6075 GB, free: 53.95 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.3993, allocations: 194.4 kB / 0.6077 GB, free: 53.8 MB / 0.4981 GB Notification: Performance of SimCode: time 6.51e-07/0.3993, allocations: 0 / 0.6077 GB, free: 53.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.818/3.217, allocations: 10.78 MB / 0.6182 GB, free: 53.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002279/3.217, allocations: 269.9 kB / 0.6184 GB, free: 52.86 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.197/5.414, allocations: 0 / 0.6184 GB, free: 52.86 MB / 0.4981 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)