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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8075/0.8075, allocations: 143.3 MB / 158.3 MB, free: 5.785 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 185 kB / 191.5 MB, free: 5.766 MB / 154.7 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: 223.2 MB / 447.7 MB, free: 4.832 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008448/0.0008448, allocations: 92.31 kB / 0.5187 GB, free: 1.195 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001854/0.001854, allocations: 268.7 kB / 0.6005 GB, free: 48.78 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004566/0.0004565, allocations: 15.78 kB / 0.693 GB, free: 59.59 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1504, allocations: 82.79 MB / 0.7738 GB, free: 13.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5461/0.6965, allocations: 119.3 MB / 0.8903 GB, free: 22.01 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/0.6968, allocations: 110.4 kB / 0.8904 GB, free: 22.01 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.05516/0.752, allocations: 22.21 MB / 0.9121 GB, free: 20.15 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.984e-06/0.752, allocations: 0 / 0.9121 GB, free: 20.15 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.444e-05/0.7521, allocations: 11.69 kB / 0.9121 GB, free: 20.15 MB / 0.5417 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.001147/0.7532, allocations: 0.8446 MB / 0.913 GB, free: 19.57 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.7533, allocations: 11.56 kB / 0.913 GB, free: 19.57 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.461e-05/0.7534, allocations: 85.5 kB / 0.9131 GB, free: 19.54 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.925e-05/0.7535, allocations: 73.5 kB / 0.9131 GB, free: 19.5 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004923/0.754, allocations: 440.5 kB / 0.9135 GB, free: 19.23 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.754, allocations: 39.38 kB / 0.9136 GB, free: 19.23 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-05/0.7541, allocations: 49.28 kB / 0.9136 GB, free: 19.23 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006487/0.7547, allocations: 423 kB / 0.914 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.7547, allocations: 10.38 kB / 0.914 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.689e-05/0.7548, allocations: 23.42 kB / 0.9141 GB, free: 19.17 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.7548, allocations: 11.75 kB / 0.9141 GB, free: 19.17 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006106/0.7554, allocations: 372.7 kB / 0.9144 GB, free: 19.16 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001756/0.7572, allocations: 1.547 MB / 0.9159 GB, free: 18.67 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004402/0.7576, allocations: 332.4 kB / 0.9163 GB, free: 18.64 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.7577, allocations: 7.844 kB / 0.9163 GB, free: 18.63 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.7577, allocations: 42.41 kB / 0.9163 GB, free: 18.59 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 1.623e-06/0.7577, allocations: 0 / 0.9163 GB, free: 18.59 MB / 0.5417 GB Notification: Performance of matching and sorting (n=42): time 0.0008077/0.7585, allocations: 0.5012 MB / 0.9168 GB, free: 18.52 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.758e-05/0.7586, allocations: 63.09 kB / 0.9169 GB, free: 18.45 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004098/0.759, allocations: 431.2 kB / 0.9173 GB, free: 18.34 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.759, allocations: 32.89 kB / 0.9173 GB, free: 18.31 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.7592, allocations: 268.9 kB / 0.9176 GB, free: 18.18 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.94e-05/0.7593, allocations: 149 kB / 0.9177 GB, free: 18.09 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.323e-05/0.7593, allocations: 3.938 kB / 0.9177 GB, free: 18.09 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.708e-05/0.7594, allocations: 369.5 kB / 0.9181 GB, free: 17.77 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002188/0.7596, allocations: 124.1 kB / 0.9182 GB, free: 17.76 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.7598, allocations: 122.8 kB / 0.9183 GB, free: 17.76 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.7601, allocations: 149.1 kB / 0.9184 GB, free: 17.75 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.7601, allocations: 3.938 kB / 0.9184 GB, free: 17.75 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006245/0.7608, allocations: 392.2 kB / 0.9188 GB, free: 17.69 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.7608, allocations: 5.312 kB / 0.9188 GB, free: 17.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.7608, allocations: 3.906 kB / 0.9188 GB, free: 17.69 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.7608, allocations: 0 / 0.9188 GB, free: 17.69 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004705/0.7613, allocations: 131.7 kB / 0.9189 GB, free: 17.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.7613, allocations: 7.016 kB / 0.919 GB, free: 17.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002595/0.7616, allocations: 53.05 kB / 0.919 GB, free: 17.65 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.7616, allocations: 13.64 kB / 0.919 GB, free: 17.65 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002362/0.7619, allocations: 198.9 kB / 0.9192 GB, free: 17.53 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-05/0.7619, allocations: 49.75 kB / 0.9193 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.7621, allocations: 61.47 kB / 0.9193 GB, free: 17.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.7621, allocations: 7.047 kB / 0.9193 GB, free: 17.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.7621, allocations: 0 / 0.9193 GB, free: 17.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.7621, allocations: 0 / 0.9193 GB, free: 17.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005954/0.7627, allocations: 0.5771 MB / 0.9199 GB, free: 17.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.7627, allocations: 7.906 kB / 0.9199 GB, free: 17.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004963/0.7632, allocations: 126.5 kB / 0.92 GB, free: 17.28 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.7632, allocations: 0 / 0.92 GB, free: 17.28 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.7633, allocations: 7.844 kB / 0.92 GB, free: 17.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.7633, allocations: 0 / 0.92 GB, free: 17.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.7633, allocations: 0 / 0.92 GB, free: 17.28 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008233/0.7641, allocations: 0.6685 MB / 0.9207 GB, free: 17.11 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.7642, allocations: 134.5 kB / 0.9208 GB, free: 16.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.016e-05/0.7643, allocations: 10.75 kB / 0.9208 GB, free: 16.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002315/0.7645, allocations: 25.91 kB / 0.9208 GB, free: 16.97 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.72e-05/0.7646, allocations: 25.88 kB / 0.9209 GB, free: 16.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.7646, allocations: 11.5 kB / 0.9209 GB, free: 16.97 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003686/0.765, allocations: 345.8 kB / 0.9212 GB, free: 16.88 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.11e-07/0.765, allocations: 0 / 0.9212 GB, free: 16.88 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0004634/0.7655, allocations: 159.9 kB / 0.9214 GB, free: 16.86 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001212/0.7667, allocations: 1.373 MB / 0.9227 GB, free: 16.11 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004993/0.7672, allocations: 340.6 kB / 0.923 GB, free: 16.09 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.7672, allocations: 0 / 0.923 GB, free: 16.09 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002416/0.7675, allocations: 187.9 kB / 0.9232 GB, free: 16.08 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.768, allocations: 114.1 kB / 0.9233 GB, free: 16.07 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003968/0.772, allocations: 3.269 MB / 0.9265 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.7723, allocations: 0.8905 MB / 0.9274 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0002101/0.7725, allocations: 53.58 kB / 0.9274 GB, free: 14.13 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002125/0.7727, allocations: 198.1 kB / 0.9276 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of SimCode: time 6.01e-07/0.7727, allocations: 0 / 0.9276 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.795, allocations: 12.39 MB / 0.9397 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/0.7952, allocations: 255.8 kB / 0.94 GB, free: 9.922 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.223/3.018, allocations: 0 / 0.94 GB, free: 9.922 MB / 0.5417 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/linux/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)