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: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7671/0.7671, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 177.1 kB / 187.3 MB, free: 11.88 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.447/1.447, allocations: 221.3 MB / 441.4 MB, free: 4.586 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.001007/0.001007, allocations: 96.78 kB / 0.5124 GB, free: 24.17 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001907/0.001907, allocations: 275.9 kB / 0.5939 GB, free: 7.973 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.769e-05/3.787e-05, allocations: 7.984 kB / 0.6835 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4377/0.4378, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.139/0.5768, allocations: 119.3 MB / 0.8808 GB, free: 5.289 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003066/0.5772, allocations: 112.8 kB / 0.8809 GB, free: 5.184 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.05799/0.6352, allocations: 22.22 MB / 0.9026 GB, free: 14.91 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.685e-06/0.6352, allocations: 0 / 0.9026 GB, free: 14.91 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.907e-05/0.6353, allocations: 12 kB / 0.9026 GB, free: 14.9 MB / 0.573 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.001109/0.6364, allocations: 0.7513 MB / 0.9033 GB, free: 14.1 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.6364, allocations: 12.03 kB / 0.9033 GB, free: 14.09 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.6366, allocations: 75.14 kB / 0.9034 GB, free: 14.02 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006001/0.6372, allocations: 436.7 kB / 0.9038 GB, free: 13.55 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/0.6372, allocations: 41 kB / 0.9039 GB, free: 13.51 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.773e-05/0.6373, allocations: 48 kB / 0.9039 GB, free: 13.46 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007162/0.638, allocations: 398.6 kB / 0.9043 GB, free: 13.06 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.6381, allocations: 4 kB / 0.9043 GB, free: 13.06 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.422e-05/0.6381, allocations: 24 kB / 0.9043 GB, free: 13.04 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.6381, allocations: 11.95 kB / 0.9043 GB, free: 13.02 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000571/0.6387, allocations: 332 kB / 0.9046 GB, free: 12.7 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/0.641, allocations: 1.536 MB / 0.9061 GB, free: 11.09 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004541/0.6415, allocations: 319.7 kB / 0.9064 GB, free: 10.77 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004454/0.6419, allocations: 340.4 kB / 0.9068 GB, free: 10.43 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.11e-05/0.642, allocations: 4 kB / 0.9068 GB, free: 10.43 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.642, allocations: 38.56 kB / 0.9068 GB, free: 10.38 MB / 0.573 GB Notification: Performance of pre-optimization done (n=42): time 4.108e-06/0.642, allocations: 3.938 kB / 0.9068 GB, free: 10.38 MB / 0.573 GB Notification: Performance of matching and sorting (n=42): time 0.0006057/0.6426, allocations: 341.3 kB / 0.9071 GB, free: 10.04 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.6427, allocations: 55.41 kB / 0.9072 GB, free: 9.969 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005391/0.6432, allocations: 427.2 kB / 0.9076 GB, free: 9.543 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.6433, allocations: 33.7 kB / 0.9076 GB, free: 9.504 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001996/0.6435, allocations: 280.3 kB / 0.9079 GB, free: 9.223 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.6436, allocations: 137.9 kB / 0.908 GB, free: 9.086 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.648e-05/0.6436, allocations: 8 kB / 0.908 GB, free: 9.078 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.6438, allocations: 366.7 kB / 0.9084 GB, free: 8.711 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.644, allocations: 104.8 kB / 0.9085 GB, free: 8.605 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.6442, allocations: 113.2 kB / 0.9086 GB, free: 8.496 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.6444, allocations: 126.3 kB / 0.9087 GB, free: 8.371 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.6444, allocations: 0 / 0.9087 GB, free: 8.371 MB / 0.573 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005129/0.6449, allocations: 360.1 kB / 0.9091 GB, free: 8.016 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.6449, allocations: 15.98 kB / 0.9091 GB, free: 8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.6449, allocations: 0 / 0.9091 GB, free: 8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.645, allocations: 0 / 0.9091 GB, free: 8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000527/0.6455, allocations: 127.9 kB / 0.9092 GB, free: 7.875 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.6455, allocations: 1.562 kB / 0.9092 GB, free: 7.875 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.6458, allocations: 55.66 kB / 0.9092 GB, free: 7.82 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/0.6459, allocations: 12 kB / 0.9093 GB, free: 7.809 MB / 0.573 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 () * 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 9.331e-05/0.646, allocations: 121.2 kB / 0.9094 GB, free: 7.684 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.007e-05/0.6461, allocations: 55.33 kB / 0.9094 GB, free: 7.629 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.6462, allocations: 60.89 kB / 0.9095 GB, free: 7.566 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.6462, allocations: 4 kB / 0.9095 GB, free: 7.562 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.6462, allocations: 0 / 0.9095 GB, free: 7.562 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.647e-06/0.6462, allocations: 7.984 kB / 0.9095 GB, free: 7.555 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006776/0.6469, allocations: 0.575 MB / 0.9101 GB, free: 6.93 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.6469, allocations: 3.984 kB / 0.9101 GB, free: 6.926 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005225/0.6475, allocations: 123.9 kB / 0.9102 GB, free: 6.805 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.852e-05/0.6475, allocations: 4 kB / 0.9102 GB, free: 6.801 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/0.6475, allocations: 4 kB / 0.9102 GB, free: 6.797 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.6475, allocations: 4 kB / 0.9102 GB, free: 6.793 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.6475, allocations: 3.938 kB / 0.9102 GB, free: 6.789 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008248/0.6484, allocations: 0.6074 MB / 0.9108 GB, free: 6.164 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.6485, allocations: 140.4 kB / 0.9109 GB, free: 6.008 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.572e-05/0.6486, allocations: 4 kB / 0.9109 GB, free: 6.004 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00025/0.6489, allocations: 19.98 kB / 0.9109 GB, free: 5.984 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.025e-05/0.6489, allocations: 31.95 kB / 0.911 GB, free: 5.953 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.649, allocations: 12 kB / 0.911 GB, free: 5.941 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0004279/0.6494, allocations: 341.2 kB / 0.9113 GB, free: 5.609 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.31e-07/0.6494, allocations: 0 / 0.9113 GB, free: 5.609 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0004976/0.6499, allocations: 159.5 kB / 0.9115 GB, free: 5.453 MB / 0.573 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 () * 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.0004431/0.6504, allocations: 270.9 kB / 0.9117 GB, free: 5.191 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0004774/0.6509, allocations: 295.6 kB / 0.912 GB, free: 4.902 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.6509, allocations: 4 kB / 0.912 GB, free: 4.898 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002182/0.6511, allocations: 163.9 kB / 0.9122 GB, free: 4.738 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005825/0.6517, allocations: 118.6 kB / 0.9123 GB, free: 4.625 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/0.6534, allocations: 0.9163 MB / 0.9132 GB, free: 3.688 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004002/0.6538, allocations: 0.8784 MB / 0.914 GB, free: 2.781 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0002031/0.654, allocations: 56.36 kB / 0.9141 GB, free: 2.723 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.073e-05/0.6541, allocations: 31.44 kB / 0.9141 GB, free: 2.691 MB / 0.573 GB Notification: Performance of SimCode: time 3.61e-07/0.6541, allocations: 4 kB / 0.9141 GB, free: 2.688 MB / 0.573 GB Notification: Performance of Templates: time 0.3969/1.051, allocations: 7.351 MB / 0.9213 GB, free: 136.1 MB / 0.573 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)