Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",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.001199/0.001199, 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.001123/0.001123, allocations: 189.4 kB / 16.25 MB, free: 6.629 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.301/1.301, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002054/0.002054, allocations: 291.6 kB / 290.4 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.9411/0.9411, allocations: 169.2 MB / 0.4978 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 86.47 kB / 0.5948 GB, free: 28.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.164, allocations: 86.99 MB / 0.6798 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003909/0.1679, allocations: 3.056 MB / 0.6828 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002289/0.1702, allocations: 2.109 MB / 0.6848 GB, free: 11.72 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.1704, allocations: 8 kB / 0.6848 GB, free: 11.71 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.1716, allocations: 474.1 kB / 0.6853 GB, free: 11.25 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000235/0.1719, allocations: 139.1 kB / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000102/0.172, allocations: 47.97 kB / 0.6855 GB, free: 11.06 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004353/0.1724, allocations: 449.9 kB / 0.6859 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.1726, allocations: 143.2 kB / 0.686 GB, free: 10.48 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/0.1728, allocations: 151.4 kB / 0.6862 GB, free: 10.33 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001928/0.173, allocations: 195.2 kB / 0.6864 GB, free: 10.14 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.12e-05/0.1731, allocations: 35.94 kB / 0.6864 GB, free: 10.11 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.168e-05/0.1731, allocations: 40 kB / 0.6864 GB, free: 10.07 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.1732, allocations: 99.61 kB / 0.6865 GB, free: 9.969 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001901/0.1734, allocations: 215 kB / 0.6867 GB, free: 9.758 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004291/0.1739, allocations: 0.5449 MB / 0.6873 GB, free: 9.211 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1739, allocations: 3.938 kB / 0.6873 GB, free: 9.207 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1739, allocations: 4 kB / 0.6873 GB, free: 9.203 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1739, allocations: 0 / 0.6873 GB, free: 9.203 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009313/0.1748, allocations: 0.6967 MB / 0.6879 GB, free: 8.457 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1749, allocations: 12.03 kB / 0.688 GB, free: 8.445 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.472e-05/0.175, allocations: 62.73 kB / 0.688 GB, free: 8.375 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.408e-05/0.175, allocations: 44.38 kB / 0.6881 GB, free: 8.332 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004092/0.1754, allocations: 370.1 kB / 0.6884 GB, free: 7.934 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.1755, allocations: 16.81 kB / 0.6884 GB, free: 7.918 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.386e-05/0.1755, allocations: 24.38 kB / 0.6885 GB, free: 7.895 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00038/0.1759, allocations: 207.3 kB / 0.6886 GB, free: 7.688 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1759, allocations: 0 / 0.6886 GB, free: 7.688 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.1759, allocations: 8 kB / 0.6887 GB, free: 7.68 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.176, allocations: 8 kB / 0.6887 GB, free: 7.672 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003445/0.1763, allocations: 165.6 kB / 0.6888 GB, free: 7.512 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.1773, allocations: 0.8661 MB / 0.6897 GB, free: 6.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002727/0.1776, allocations: 154.6 kB / 0.6898 GB, free: 6.41 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/0.1778, allocations: 112.8 kB / 0.6899 GB, free: 6.297 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.1779, allocations: 3.938 kB / 0.6899 GB, free: 6.293 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/0.1779, allocations: 34.56 kB / 0.69 GB, free: 6.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.172e-06/0.1779, allocations: 0 / 0.69 GB, free: 6.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005517/0.1785, allocations: 271.4 kB / 0.6902 GB, free: 5.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.835e-05/0.1785, allocations: 51.41 kB / 0.6903 GB, free: 5.918 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004136/0.1789, allocations: 413.7 kB / 0.6907 GB, free: 5.504 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.1789, allocations: 29.7 kB / 0.6907 GB, free: 5.469 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.1791, allocations: 208.2 kB / 0.6909 GB, free: 5.258 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.374e-05/0.1791, allocations: 63.09 kB / 0.691 GB, free: 5.195 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.275e-05/0.1792, allocations: 33.7 kB / 0.691 GB, free: 5.156 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1793, allocations: 346.8 kB / 0.6913 GB, free: 4.809 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.1795, allocations: 63.92 kB / 0.6914 GB, free: 4.746 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.1796, allocations: 57.86 kB / 0.6914 GB, free: 4.691 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.1799, allocations: 130.5 kB / 0.6916 GB, free: 4.562 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1799, allocations: 0 / 0.6916 GB, free: 4.562 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003558/0.1802, allocations: 213.1 kB / 0.6918 GB, free: 4.348 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.1803, allocations: 8 kB / 0.6918 GB, free: 4.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.1803, allocations: 7.938 kB / 0.6918 GB, free: 4.332 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.1803, allocations: 0 / 0.6918 GB, free: 4.332 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000237/0.1805, allocations: 47.97 kB / 0.6918 GB, free: 4.285 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1805, allocations: 0 / 0.6918 GB, free: 4.285 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.1807, allocations: 27.83 kB / 0.6918 GB, free: 4.258 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.1807, allocations: 4 kB / 0.6918 GB, free: 4.254 MB / 494.1 MB 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 (20): * Single equations (assignments): 20 * 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.0001509/0.1809, allocations: 174.4 kB / 0.692 GB, free: 4.074 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.418e-05/0.1809, allocations: 35.53 kB / 0.692 GB, free: 4.039 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.974e-05/0.181, allocations: 47.52 kB / 0.6921 GB, free: 3.988 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.181, allocations: 0 / 0.6921 GB, free: 3.988 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.181, allocations: 0 / 0.6921 GB, free: 3.988 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.392e-05/0.181, allocations: 7.984 kB / 0.6921 GB, free: 3.98 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003616/0.1814, allocations: 369.3 kB / 0.6925 GB, free: 3.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1814, allocations: 0 / 0.6925 GB, free: 3.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002507/0.1817, allocations: 51.97 kB / 0.6925 GB, free: 3.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1817, allocations: 7.938 kB / 0.6925 GB, free: 3.512 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.1817, allocations: 11.94 kB / 0.6925 GB, free: 3.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1817, allocations: 0 / 0.6925 GB, free: 3.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1817, allocations: 3.984 kB / 0.6925 GB, free: 3.496 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000546/0.1823, allocations: 370.9 kB / 0.6929 GB, free: 3.117 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.343e-05/0.1824, allocations: 128.7 kB / 0.693 GB, free: 2.973 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.315e-05/0.1824, allocations: 3.938 kB / 0.693 GB, free: 2.969 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.1826, allocations: 11.98 kB / 0.693 GB, free: 2.957 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.01e-05/0.1826, allocations: 11.98 kB / 0.693 GB, free: 2.945 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.1827, allocations: 8 kB / 0.693 GB, free: 2.938 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000283/0.183, allocations: 299.1 kB / 0.6933 GB, free: 2.648 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.183, allocations: 0 / 0.6933 GB, free: 2.648 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.1832, allocations: 71.84 kB / 0.6934 GB, free: 2.578 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.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 (18): * Single equations (assignments): 18 * 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.0008231/0.1841, allocations: 0.9307 MB / 0.6943 GB, free: 1.625 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003437/0.1844, allocations: 155.8 kB / 0.6944 GB, free: 1.473 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1844, allocations: 0 / 0.6944 GB, free: 1.473 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001559/0.1846, allocations: 75.91 kB / 0.6945 GB, free: 1.398 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005584/0.1852, allocations: 98.06 kB / 0.6946 GB, free: 1.309 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.1895, allocations: 3.651 MB / 0.6982 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.1899, allocations: 0.7912 MB / 0.699 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001254/0.19, allocations: 34.97 kB / 0.699 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.1902, allocations: 119.4 kB / 0.6991 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of SimCode: time 5.91e-07/0.1902, allocations: 0 / 0.6991 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2924/0.4826, allocations: 7.7 MB / 0.7066 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002463/0.4829, allocations: 288.9 kB / 0.7069 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.912/2.395, allocations: 0 / 0.7069 GB, free: 4.855 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)