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.001541/0.001541, allocations: 109.4 kB / 15.69 MB, free: 124 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 188.6 kB / 16.62 MB, free: 6.613 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.405/1.405, allocations: 205.1 MB / 222.5 MB, free: 4.547 MB / 174.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.732/1.732, allocations: 292.3 MB / 0.5489 GB, free: 12.75 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.001524/0.001525, allocations: 73.56 kB / 0.6723 GB, free: 26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2359, allocations: 114.5 MB / 0.7841 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.004849/0.2408, allocations: 2.333 MB / 0.7864 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002324/0.2431, allocations: 1.042 MB / 0.7874 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002324/0.2434, allocations: 7.938 kB / 0.7874 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002968/0.2437, allocations: 51.62 kB / 0.7875 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002583/0.244, allocations: 79.28 kB / 0.7876 GB, free: 9.141 MB / 0.6075 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.000591/0.2446, allocations: 167.5 kB / 0.7877 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003725/0.245, allocations: 290.8 kB / 0.788 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.2451, allocations: 36.33 kB / 0.788 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.2453, allocations: 107.6 kB / 0.7881 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001481/0.2455, allocations: 119.4 kB / 0.7882 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.2455, allocations: 16 kB / 0.7883 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002795/0.2458, allocations: 115.9 kB / 0.7884 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.561e-05/0.2459, allocations: 51.77 kB / 0.7884 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.246, allocations: 111.4 kB / 0.7885 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003777/0.2464, allocations: 311.1 kB / 0.7888 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2464, allocations: 0 / 0.7888 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.675e-06/0.2464, allocations: 8 kB / 0.7888 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.2464, allocations: 3.938 kB / 0.7888 GB, free: 7.828 MB / 0.6075 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.0009141/0.2473, allocations: 0.5826 MB / 0.7894 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.2474, allocations: 12.03 kB / 0.7894 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.379e-05/0.2474, allocations: 28.64 kB / 0.7894 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004374/0.2479, allocations: 299 kB / 0.7897 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.2479, allocations: 16.59 kB / 0.7897 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.248, allocations: 16.38 kB / 0.7898 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003847/0.2484, allocations: 209.8 kB / 0.79 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.2484, allocations: 0 / 0.79 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.2484, allocations: 8 kB / 0.79 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.2484, allocations: 4 kB / 0.79 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003418/0.2488, allocations: 111.8 kB / 0.7901 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009583/0.2497, allocations: 0.8721 MB / 0.7909 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004607/0.2502, allocations: 204 kB / 0.7911 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002081/0.2504, allocations: 86.55 kB / 0.7912 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.2504, allocations: 7.938 kB / 0.7912 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003848/0.2508, allocations: 200.6 kB / 0.7914 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.2508, allocations: 0 / 0.7914 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23): time 0.0008343/0.2517, allocations: 353.1 kB / 0.7917 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.49e-05/0.2518, allocations: 119.2 kB / 0.7919 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.252, allocations: 250.4 kB / 0.7921 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.252, allocations: 33.7 kB / 0.7921 GB, free: 4.168 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.58e-05/0.2521, allocations: 140.6 kB / 0.7923 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.238e-05/0.2522, allocations: 63.14 kB / 0.7923 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.994e-05/0.2523, allocations: 82.06 kB / 0.7924 GB, free: 3.875 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2524, allocations: 338.8 kB / 0.7927 GB, free: 3.535 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.2526, allocations: 76.77 kB / 0.7928 GB, free: 3.461 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000315/0.253, allocations: 254.9 kB / 0.793 GB, free: 3.129 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005324/0.2535, allocations: 388.5 kB / 0.7934 GB, free: 2.66 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2535, allocations: 0 / 0.7934 GB, free: 2.66 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007121/0.2542, allocations: 407 kB / 0.7938 GB, free: 2.25 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.932e-05/0.2543, allocations: 37.8 kB / 0.7938 GB, free: 2.207 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.2543, allocations: 4 kB / 0.7938 GB, free: 2.203 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.653e-05/0.2544, allocations: 8 kB / 0.7938 GB, free: 2.195 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.2546, allocations: 71.83 kB / 0.7939 GB, free: 2.125 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.2546, allocations: 11.94 kB / 0.7939 GB, free: 2.113 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00024/0.2548, allocations: 43.73 kB / 0.794 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.2549, allocations: 16 kB / 0.794 GB, free: 2.055 MB / 0.6075 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.0001402/0.255, allocations: 167.9 kB / 0.7941 GB, free: 1.883 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.191e-05/0.2551, allocations: 31.56 kB / 0.7942 GB, free: 1.852 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.816e-05/0.2551, allocations: 21.7 kB / 0.7942 GB, free: 1.828 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2551, allocations: 4 kB / 0.7942 GB, free: 1.824 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.2552, allocations: 3.938 kB / 0.7942 GB, free: 1.82 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.2552, allocations: 4 kB / 0.7942 GB, free: 1.816 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002612/0.2554, allocations: 265.6 kB / 0.7945 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.2554, allocations: 0 / 0.7945 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001265/0.2556, allocations: 39.91 kB / 0.7945 GB, free: 1.469 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2556, allocations: 0 / 0.7945 GB, free: 1.469 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.2556, allocations: 4 kB / 0.7945 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.2556, allocations: 0 / 0.7945 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.2556, allocations: 7.938 kB / 0.7945 GB, free: 1.457 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008187/0.2565, allocations: 409.1 kB / 0.7949 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.578e-05/0.2565, allocations: 100.9 kB / 0.795 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.562e-05/0.2566, allocations: 8 kB / 0.795 GB, free: 0.9102 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.2567, allocations: 11.98 kB / 0.795 GB, free: 0.8984 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.057e-05/0.2568, allocations: 31.84 kB / 0.795 GB, free: 0.8672 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/0.2568, allocations: 15.98 kB / 0.7951 GB, free: 0.8516 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001348/0.257, allocations: 170 kB / 0.7952 GB, free: 0.6836 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.257, allocations: 0 / 0.7952 GB, free: 0.6836 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003995/0.2574, allocations: 83.92 kB / 0.7953 GB, free: 0.6016 MB / 0.6075 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.0003404/0.2577, allocations: 166.3 kB / 0.7955 GB, free: 444 kB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005874/0.2583, allocations: 312.2 kB / 0.7958 GB, free: 120 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2584, allocations: 0 / 0.7958 GB, free: 120 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.2586, allocations: 108 kB / 0.7959 GB, free: 12 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003683/0.259, allocations: 63.08 kB / 0.7959 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.2601, allocations: 0.5856 MB / 0.7965 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.2604, allocations: 0.7407 MB / 0.7972 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001238/0.2605, allocations: 51.06 kB / 0.7973 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.934e-05/0.2606, allocations: 31.44 kB / 0.7973 GB, free: 14.49 MB / 0.6231 GB Notification: Performance of SimCode: time 2.41e-07/0.2606, allocations: 0 / 0.7973 GB, free: 14.49 MB / 0.6231 GB Notification: Performance of Templates: time 0.009886/0.2705, allocations: 3.968 MB / 0.8012 GB, free: 10.6 MB / 0.6231 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 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)