Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001885/0.001885, allocations: 105.1 kB / 16.29 MB, free: 6.031 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.002131/0.002131, allocations: 179.3 kB / 17.22 MB, free: 5.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.425/1.425, allocations: 205.1 MB / 223.1 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.791/1.791, allocations: 292.3 MB / 0.5495 GB, free: 17.69 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 71.89 kB / 0.6722 GB, free: 6.574 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2127, allocations: 114.6 MB / 0.7841 GB, free: 3.906 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003892/0.2166, allocations: 2.332 MB / 0.7864 GB, free: 1.555 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001663/0.2183, allocations: 1.038 MB / 0.7874 GB, free: 0.5078 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.2184, allocations: 7.938 kB / 0.7874 GB, free: 0.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002136/0.2187, allocations: 55.62 kB / 0.7874 GB, free: 456 kB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.2189, allocations: 71.34 kB / 0.7875 GB, free: 384 kB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Fluid/Geothermal/Boreholes/BaseClasses/temperatureDrop.mo:2:1-107:20:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.temperatureDrop' contains a call to impure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.exchangeValues'. Notification: Performance of NFTyping.typeClassSections: time 0.0004912/0.2194, allocations: 163.5 kB / 0.7877 GB, free: 220 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.3317/0.5511, allocations: 292.7 kB / 0.7879 GB, free: 45.9 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.5513, allocations: 39.22 kB / 0.788 GB, free: 45.9 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002375/0.5516, allocations: 109.8 kB / 0.7881 GB, free: 45.9 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/0.5517, allocations: 109.6 kB / 0.7882 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.708e-05/0.5518, allocations: 21.11 kB / 0.7882 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003652/0.5522, allocations: 113.7 kB / 0.7883 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.505e-05/0.5522, allocations: 48.72 kB / 0.7884 GB, free: 45.87 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.5523, allocations: 113.2 kB / 0.7885 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003987/0.5527, allocations: 318.9 kB / 0.7888 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.5528, allocations: 1 kB / 0.7888 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.383e-06/0.5528, allocations: 0 / 0.7888 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.266e-05/0.5528, allocations: 0 / 0.7888 GB, free: 45.8 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0008695/0.5537, allocations: 0.5929 MB / 0.7894 GB, free: 45.33 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.5537, allocations: 10.81 kB / 0.7894 GB, free: 45.33 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.337e-05/0.5538, allocations: 27.31 kB / 0.7894 GB, free: 45.32 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.5541, allocations: 293.8 kB / 0.7897 GB, free: 45.1 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.5542, allocations: 17.08 kB / 0.7897 GB, free: 45.1 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.088e-05/0.5542, allocations: 21.5 kB / 0.7897 GB, free: 45.1 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003492/0.5546, allocations: 203.5 kB / 0.7899 GB, free: 45.02 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.5546, allocations: 9.062 kB / 0.7899 GB, free: 45.01 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.5546, allocations: 5.062 kB / 0.7899 GB, free: 45.01 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.5546, allocations: 2.625 kB / 0.7899 GB, free: 45.01 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003128/0.555, allocations: 111.6 kB / 0.79 GB, free: 45.01 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000814/0.5558, allocations: 0.8717 MB / 0.7909 GB, free: 44.32 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004138/0.5562, allocations: 208 kB / 0.7911 GB, free: 44.25 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/0.5564, allocations: 80.62 kB / 0.7912 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.5564, allocations: 0 / 0.7912 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004097/0.5568, allocations: 204.8 kB / 0.7913 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=23): time 1.733e-06/0.5568, allocations: 0 / 0.7913 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of matching and sorting (n=23): time 0.0007746/0.5576, allocations: 356.1 kB / 0.7917 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.744e-05/0.5577, allocations: 119 kB / 0.7918 GB, free: 43.99 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.5579, allocations: 244.2 kB / 0.792 GB, free: 43.88 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.5579, allocations: 38.8 kB / 0.7921 GB, free: 43.85 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.288e-05/0.558, allocations: 140.1 kB / 0.7922 GB, free: 43.76 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.877e-05/0.558, allocations: 68.94 kB / 0.7923 GB, free: 43.72 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.02e-05/0.5581, allocations: 79.44 kB / 0.7923 GB, free: 43.7 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.29e-05/0.5582, allocations: 340.1 kB / 0.7927 GB, free: 43.39 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/0.5584, allocations: 80.12 kB / 0.7927 GB, free: 43.39 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.5586, allocations: 257.4 kB / 0.793 GB, free: 43.17 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004348/0.559, allocations: 383.2 kB / 0.7934 GB, free: 42.93 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.5591, allocations: 3.5 kB / 0.7934 GB, free: 42.93 MB / 0.6544 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006378/0.5597, allocations: 399.6 kB / 0.7937 GB, free: 42.84 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.931e-05/0.5597, allocations: 36.58 kB / 0.7938 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.5598, allocations: 8.312 kB / 0.7938 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.5598, allocations: 10.41 kB / 0.7938 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.56, allocations: 60.39 kB / 0.7939 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.56, allocations: 17.86 kB / 0.7939 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.5602, allocations: 48.03 kB / 0.7939 GB, free: 42.79 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.5603, allocations: 20.78 kB / 0.7939 GB, free: 42.79 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 32 (TBouSte.QAve_flow,$PRE.TBouSte.QAve_flow,TBouSte.UOld,$PRE.TBouSte.UOld,TBouSte.port.T,$PRE.TBouSte.port.T,TBouSte.iSam,$PRE.TBouSte.iSam,$whenCondition4,TBouCon.QAve_flow,$PRE.TBouCon.QAve_flow,TBouCon.UOld,$PRE.TBouCon.UOld,TBouCon.port.T,$PRE.TBouCon.port.T,TBouCon.iSam,$PRE.TBouCon.iSam,$whenCondition3,TBouPul.QAve_flow,$PRE.TBouPul.QAve_flow,TBouPul.UOld,$PRE.TBouPul.UOld,TBouPul.port.T,$PRE.TBouPul.port.T,TBouPul.iSam,$PRE.TBouPul.iSam,$whenCondition1,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * 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.0001139/0.5604, allocations: 160.8 kB / 0.7941 GB, free: 42.67 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.117e-05/0.5604, allocations: 29.25 kB / 0.7941 GB, free: 42.66 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.736e-05/0.5605, allocations: 21.27 kB / 0.7941 GB, free: 42.65 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.5605, allocations: 11.25 kB / 0.7941 GB, free: 42.65 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.5605, allocations: 1.688 kB / 0.7941 GB, free: 42.65 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.5605, allocations: 6.281 kB / 0.7942 GB, free: 42.65 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002189/0.5608, allocations: 264.4 kB / 0.7944 GB, free: 42.46 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5608, allocations: 0 / 0.7944 GB, free: 42.46 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.5609, allocations: 26.59 kB / 0.7944 GB, free: 42.45 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.5609, allocations: 2.625 kB / 0.7944 GB, free: 42.45 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.5609, allocations: 8.391 kB / 0.7944 GB, free: 42.45 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.5609, allocations: 3.938 kB / 0.7944 GB, free: 42.45 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5609, allocations: 2.75 kB / 0.7944 GB, free: 42.45 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007203/0.5617, allocations: 417.2 kB / 0.7948 GB, free: 42.35 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.047e-05/0.5617, allocations: 99.61 kB / 0.7949 GB, free: 42.24 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.692e-05/0.5618, allocations: 10.33 kB / 0.795 GB, free: 42.24 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.5619, allocations: 20.19 kB / 0.795 GB, free: 42.24 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.687e-05/0.562, allocations: 27.77 kB / 0.795 GB, free: 42.24 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.562, allocations: 6.562 kB / 0.795 GB, free: 42.24 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001066/0.5621, allocations: 171.7 kB / 0.7952 GB, free: 42.15 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5622, allocations: 0.75 kB / 0.7952 GB, free: 42.15 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003848/0.5625, allocations: 83.56 kB / 0.7952 GB, free: 42.14 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (TBouSte.U,TBouCon.U,TBouPul.U) * Number of discrete variables: 18 ($whenCondition4,TBouSte.QAve_flow,TBouSte.port.T,TBouSte.UOld,TBouSte.iSam,$whenCondition3,TBouCon.QAve_flow,TBouCon.port.T,TBouCon.UOld,TBouCon.iSam,$whenCondition2,$whenCondition1,TBouPul.QAve_flow,TBouPul.port.T,TBouPul.UOld,TBouPul.iSam,pulse.T_start,pulse.count) * Number of discrete states: 7 (TBouPul.iSam,TBouPul.UOld,pulse.count,TBouCon.iSam,TBouCon.UOld,TBouSte.iSam,TBouSte.UOld) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.0002903/0.5628, allocations: 165.7 kB / 0.7954 GB, free: 42.05 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005374/0.5634, allocations: 296.8 kB / 0.7957 GB, free: 41.98 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.5634, allocations: 3.812 kB / 0.7957 GB, free: 41.98 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002303/0.5636, allocations: 109.8 kB / 0.7958 GB, free: 41.98 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.564, allocations: 58.92 kB / 0.7959 GB, free: 41.98 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008986/0.5649, allocations: 0.5804 MB / 0.7964 GB, free: 41.63 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001514/0.5651, allocations: 0.7425 MB / 0.7971 GB, free: 40.93 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001248/0.5652, allocations: 52.44 kB / 0.7972 GB, free: 40.93 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.334e-05/0.5652, allocations: 28.28 kB / 0.7972 GB, free: 40.92 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.5652, allocations: 0 / 0.7972 GB, free: 40.92 MB / 0.6544 GB Notification: Performance of Templates: time 0.008255/0.5735, allocations: 3.97 MB / 0.8011 GB, free: 40.74 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)