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.8595/0.8595, allocations: 141.8 MB / 149.3 MB, free: 9.246 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.001064/0.001064, allocations: 184 kB / 182.2 MB, free: 9.465 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.502/1.502, allocations: 221.5 MB / 436.4 MB, free: 13.35 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.0008954/0.0008953, allocations: 88.06 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001898/0.001898, allocations: 274.6 kB / 0.5889 GB, free: 54.67 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.019e-05/2.021e-05, allocations: 7.984 kB / 0.6766 GB, free: 12.8 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4665/0.4666, allocations: 82.78 MB / 0.7574 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1564/0.623, allocations: 118.6 MB / 0.8732 GB, free: 9.273 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/0.6234, allocations: 111.8 kB / 0.8733 GB, free: 9.168 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.05982/0.6833, allocations: 21.94 MB / 0.8948 GB, free: 3.16 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.403e-06/0.6833, allocations: 0 / 0.8948 GB, free: 3.16 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 2.553e-05/0.6833, allocations: 12 kB / 0.8948 GB, free: 3.148 MB / 0.5573 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.00138/0.6847, allocations: 0.7517 MB / 0.8955 GB, free: 2.348 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.6848, allocations: 8.031 kB / 0.8955 GB, free: 2.34 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001783/0.685, allocations: 75.16 kB / 0.8956 GB, free: 2.266 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000859/0.6858, allocations: 435 kB / 0.896 GB, free: 1.797 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.6859, allocations: 16 kB / 0.896 GB, free: 1.781 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.449e-05/0.686, allocations: 35.98 kB / 0.896 GB, free: 1.746 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007009/0.6867, allocations: 302.6 kB / 0.8963 GB, free: 1.453 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007488/0.6874, allocations: 336 kB / 0.8966 GB, free: 1.117 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.6875, allocations: 0 / 0.8966 GB, free: 1.117 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.6875, allocations: 3.953 kB / 0.8967 GB, free: 1.113 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.6876, allocations: 15.98 kB / 0.8967 GB, free: 1.098 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3931/1.081, allocations: 1.428 MB / 0.8981 GB, free: 126.4 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005691/1.081, allocations: 300.4 kB / 0.8983 GB, free: 126.4 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004584/1.082, allocations: 274.5 kB / 0.8986 GB, free: 126.3 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.661e-05/1.082, allocations: 12.12 kB / 0.8986 GB, free: 126.3 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/1.082, allocations: 36.16 kB / 0.8987 GB, free: 126.3 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=42): time 2.915e-06/1.082, allocations: 0 / 0.8987 GB, free: 126.3 MB / 0.5573 GB Notification: Performance of matching and sorting (n=42): time 0.0006336/1.082, allocations: 313.6 kB / 0.899 GB, free: 126.3 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/1.082, allocations: 55.66 kB / 0.899 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00055/1.083, allocations: 372.5 kB / 0.8994 GB, free: 126.1 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/1.083, allocations: 26.67 kB / 0.8994 GB, free: 126.1 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001854/1.083, allocations: 276 kB / 0.8997 GB, free: 126 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/1.083, allocations: 140 kB / 0.8998 GB, free: 125.9 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.408e-05/1.083, allocations: 0 / 0.8998 GB, free: 125.9 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001164/1.084, allocations: 361.3 kB / 0.9001 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/1.084, allocations: 99.06 kB / 0.9002 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001936/1.084, allocations: 105.4 kB / 0.9003 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002353/1.084, allocations: 118.7 kB / 0.9004 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/1.084, allocations: 0 / 0.9004 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006034/1.085, allocations: 333.9 kB / 0.9008 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/1.085, allocations: 12.2 kB / 0.9008 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/1.085, allocations: 0 / 0.9008 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/1.085, allocations: 1.875 kB / 0.9008 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005914/1.085, allocations: 125.3 kB / 0.9009 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/1.085, allocations: 1.156 kB / 0.9009 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/1.086, allocations: 41.3 kB / 0.9009 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/1.086, allocations: 13.16 kB / 0.9009 GB, free: 125.5 MB / 0.5573 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 8.742e-05/1.086, allocations: 114.6 kB / 0.9011 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.655e-05/1.086, allocations: 44.44 kB / 0.9011 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/1.086, allocations: 56.14 kB / 0.9011 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/1.086, allocations: 4.172 kB / 0.9012 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/1.086, allocations: 0.8125 kB / 0.9012 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.998e-06/1.086, allocations: 6.578 kB / 0.9012 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007453/1.087, allocations: 0.493 MB / 0.9016 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/1.087, allocations: 0 / 0.9016 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005807/1.088, allocations: 129.3 kB / 0.9018 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/1.088, allocations: 1.859 kB / 0.9018 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/1.088, allocations: 1.062 kB / 0.9018 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/1.088, allocations: 2.797 kB / 0.9018 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.088, allocations: 0 / 0.9018 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007748/1.088, allocations: 0.5699 MB / 0.9023 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/1.089, allocations: 131.7 kB / 0.9025 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.32e-05/1.089, allocations: 9.172 kB / 0.9025 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002381/1.089, allocations: 16.28 kB / 0.9025 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.239e-05/1.089, allocations: 23.05 kB / 0.9025 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-05/1.089, allocations: 13.69 kB / 0.9025 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004547/1.089, allocations: 300.3 kB / 0.9028 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.5e-07/1.089, allocations: 0 / 0.9028 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0005745/1.09, allocations: 144.7 kB / 0.9029 GB, free: 124.8 MB / 0.5573 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.0005219/1.091, allocations: 261 kB / 0.9032 GB, free: 124.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.000527/1.091, allocations: 278.2 kB / 0.9035 GB, free: 124.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/1.091, allocations: 3.562 kB / 0.9035 GB, free: 124.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002523/1.091, allocations: 156.7 kB / 0.9036 GB, free: 124.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006008/1.092, allocations: 86.38 kB / 0.9037 GB, free: 124.7 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/1.094, allocations: 0.8864 MB / 0.9046 GB, free: 124.4 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004516/1.094, allocations: 0.8813 MB / 0.9054 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0002303/1.094, allocations: 45.66 kB / 0.9055 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.864e-05/1.095, allocations: 31.88 kB / 0.9055 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of SimCode: time 3.2e-07/1.095, allocations: 1.344 kB / 0.9055 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of Templates: time 0.01237/1.107, allocations: 4.84 MB / 0.9102 GB, free: 123.3 MB / 0.5573 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)