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.0009317/0.0009316, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.007777/0.007777, allocations: 171.3 kB / 16.26 MB, free: 6.613 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.3/1.3, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001682/0.001682, allocations: 258.2 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9267/0.9267, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003879/0.0003879, allocations: 16.16 kB / 0.5988 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1518, allocations: 88.54 MB / 0.6853 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004128/0.156, allocations: 3.752 MB / 0.6889 GB, free: 11.15 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002801/0.1588, allocations: 2.333 MB / 0.6912 GB, free: 8.824 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000208/0.1591, allocations: 12 kB / 0.6912 GB, free: 8.812 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001241/0.1603, allocations: 0.4998 MB / 0.6917 GB, free: 8.312 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003841/0.1607, allocations: 220.8 kB / 0.6919 GB, free: 8.098 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001988/0.1609, allocations: 120.7 kB / 0.692 GB, free: 7.98 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007229/0.1616, allocations: 0.8059 MB / 0.6928 GB, free: 7.172 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003869/0.162, allocations: 274.4 kB / 0.6931 GB, free: 6.902 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002678/0.1623, allocations: 247 kB / 0.6933 GB, free: 6.66 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003031/0.1626, allocations: 286.6 kB / 0.6936 GB, free: 6.379 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.661e-05/0.1627, allocations: 32 kB / 0.6936 GB, free: 6.348 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.502e-05/0.1628, allocations: 36 kB / 0.6937 GB, free: 6.312 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.1629, allocations: 131.4 kB / 0.6938 GB, free: 6.184 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000288/0.1632, allocations: 359.9 kB / 0.6941 GB, free: 5.824 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000714/0.1639, allocations: 0.9456 MB / 0.6951 GB, free: 4.875 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1639, allocations: 0 / 0.6951 GB, free: 4.875 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.164, allocations: 0 / 0.6951 GB, free: 4.875 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.164, allocations: 0 / 0.6951 GB, free: 4.875 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.001154/0.1651, allocations: 0.8412 MB / 0.6959 GB, free: 3.984 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.1652, allocations: 8.031 kB / 0.6959 GB, free: 3.977 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.903e-05/0.1653, allocations: 90.7 kB / 0.696 GB, free: 3.879 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.58e-05/0.1654, allocations: 72.09 kB / 0.696 GB, free: 3.809 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005225/0.1659, allocations: 449.7 kB / 0.6965 GB, free: 3.332 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.134e-05/0.1659, allocations: 41.31 kB / 0.6965 GB, free: 3.293 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.737e-05/0.166, allocations: 48.38 kB / 0.6966 GB, free: 3.246 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007313/0.1668, allocations: 438.6 kB / 0.697 GB, free: 2.809 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.1668, allocations: 4 kB / 0.697 GB, free: 2.805 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.792e-05/0.1668, allocations: 16 kB / 0.697 GB, free: 2.789 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.1668, allocations: 8 kB / 0.697 GB, free: 2.781 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000679/0.1675, allocations: 379.8 kB / 0.6974 GB, free: 2.41 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001984/0.1695, allocations: 1.547 MB / 0.6989 GB, free: 0.793 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005332/0.1701, allocations: 350.8 kB / 0.6992 GB, free: 448 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004842/0.1706, allocations: 325.5 kB / 0.6995 GB, free: 120 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.1706, allocations: 7.938 kB / 0.6995 GB, free: 112 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.1706, allocations: 38.56 kB / 0.6996 GB, free: 64 kB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.733e-06/0.1706, allocations: 4 kB / 0.6996 GB, free: 60 kB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009819/0.1716, allocations: 0.501 MB / 0.7001 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.1717, allocations: 55.41 kB / 0.7001 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005656/0.1723, allocations: 497.9 kB / 0.7006 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.1723, allocations: 33.7 kB / 0.7006 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.1725, allocations: 280.3 kB / 0.7009 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.1726, allocations: 141.8 kB / 0.701 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.875e-05/0.1727, allocations: 33.7 kB / 0.701 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1728, allocations: 362.8 kB / 0.7014 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.1731, allocations: 132.7 kB / 0.7015 GB, free: 14 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002456/0.1733, allocations: 125.5 kB / 0.7016 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005369/0.1739, allocations: 314.3 kB / 0.7019 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1739, allocations: 4 kB / 0.7019 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006576/0.1746, allocations: 408.3 kB / 0.7023 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.1746, allocations: 4 kB / 0.7023 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1746, allocations: 0 / 0.7023 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.1746, allocations: 0 / 0.7023 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004967/0.1751, allocations: 131.9 kB / 0.7025 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.1751, allocations: 0 / 0.7025 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/0.1754, allocations: 51.66 kB / 0.7025 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.887e-05/0.1754, allocations: 12 kB / 0.7025 GB, free: 12.96 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.000218/0.1756, allocations: 194.4 kB / 0.7027 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.755e-05/0.1757, allocations: 59.28 kB / 0.7028 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001282/0.1759, allocations: 65.09 kB / 0.7028 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.1759, allocations: 4 kB / 0.7028 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.1759, allocations: 0 / 0.7028 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.1759, allocations: 3.984 kB / 0.7028 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006489/0.1766, allocations: 0.5673 MB / 0.7034 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.1766, allocations: 3.938 kB / 0.7034 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005122/0.1771, allocations: 139.8 kB / 0.7035 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.1771, allocations: 0 / 0.7035 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.1771, allocations: 8 kB / 0.7035 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.1771, allocations: 0 / 0.7035 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1771, allocations: 0 / 0.7035 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009937/0.1781, allocations: 0.675 MB / 0.7042 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.1783, allocations: 136.4 kB / 0.7043 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.495e-05/0.1783, allocations: 8 kB / 0.7043 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.1786, allocations: 23.98 kB / 0.7044 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.104e-05/0.1786, allocations: 23.91 kB / 0.7044 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.1787, allocations: 12 kB / 0.7044 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003713/0.179, allocations: 351.1 kB / 0.7047 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.179, allocations: 0 / 0.7047 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000371/0.1794, allocations: 151.5 kB / 0.7049 GB, free: 10.46 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.00124/0.1807, allocations: 1.227 MB / 0.7061 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005579/0.1812, allocations: 328.3 kB / 0.7064 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1812, allocations: 0 / 0.7064 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002861/0.1815, allocations: 191.6 kB / 0.7066 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006579/0.1822, allocations: 114.1 kB / 0.7067 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006601/0.1888, allocations: 5.352 MB / 0.7119 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004281/0.1893, allocations: 0.8706 MB / 0.7127 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001829/0.1895, allocations: 56.39 kB / 0.7128 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00025/0.1897, allocations: 191.4 kB / 0.713 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of SimCode: time 6.21e-07/0.1897, allocations: 0 / 0.713 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3856/0.5753, allocations: 10.64 MB / 0.7234 GB, free: 7.73 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002714/0.5756, allocations: 295.2 kB / 0.7237 GB, free: 7.348 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.813/2.389, allocations: 3.375 kB / 0.7237 GB, free: 7.348 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)