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.001382/0.001382, allocations: 108 kB / 15.6 MB, free: 132 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.001599/0.001599, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.448/1.448, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.713/1.713, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.001434/0.001434, allocations: 75.47 kB / 0.6715 GB, free: 26.03 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1892/0.1906, allocations: 114.5 MB / 0.7834 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003676/0.1943, allocations: 2.337 MB / 0.7857 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001662/0.196, allocations: 1.042 MB / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.1962, allocations: 7.938 kB / 0.7867 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.1964, allocations: 51.62 kB / 0.7867 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.1966, allocations: 79.28 kB / 0.7868 GB, free: 9.945 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.0004944/0.1971, allocations: 163.5 kB / 0.787 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002678/0.1974, allocations: 286.8 kB / 0.7872 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.1975, allocations: 40.61 kB / 0.7873 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.1977, allocations: 107.5 kB / 0.7874 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.1978, allocations: 115.5 kB / 0.7875 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.617e-05/0.1979, allocations: 20 kB / 0.7875 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002611/0.1981, allocations: 115.8 kB / 0.7876 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.505e-05/0.1982, allocations: 47.83 kB / 0.7877 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.1983, allocations: 115.4 kB / 0.7878 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003702/0.1987, allocations: 307 kB / 0.7881 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.1987, allocations: 4 kB / 0.7881 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.283e-06/0.1987, allocations: 0 / 0.7881 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.81e-06/0.1988, allocations: 0 / 0.7881 GB, free: 8.648 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.0009847/0.1997, allocations: 0.5942 MB / 0.7886 GB, free: 8 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.1998, allocations: 12.03 kB / 0.7887 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.194e-05/0.1999, allocations: 28.66 kB / 0.7887 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003958/0.2003, allocations: 291 kB / 0.789 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.2003, allocations: 12.61 kB / 0.789 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.408e-05/0.2003, allocations: 20.38 kB / 0.789 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000443/0.2008, allocations: 205.8 kB / 0.7892 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.2008, allocations: 4 kB / 0.7892 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.703e-05/0.2009, allocations: 7.984 kB / 0.7892 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.2009, allocations: 4 kB / 0.7892 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003708/0.2012, allocations: 107.8 kB / 0.7893 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.2024, allocations: 0.876 MB / 0.7902 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005051/0.2029, allocations: 199.9 kB / 0.7904 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/0.2031, allocations: 90.59 kB / 0.7904 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.2032, allocations: 4 kB / 0.7904 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005304/0.2037, allocations: 200.8 kB / 0.7906 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=23): time 1.443e-06/0.2037, allocations: 0 / 0.7906 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23): time 0.0008701/0.2046, allocations: 353.1 kB / 0.791 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.083e-05/0.2047, allocations: 126.8 kB / 0.7911 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002419/0.2049, allocations: 250.4 kB / 0.7913 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/0.205, allocations: 37.7 kB / 0.7914 GB, free: 4.977 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.2051, allocations: 140.6 kB / 0.7915 GB, free: 4.836 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.916e-05/0.2051, allocations: 59.19 kB / 0.7916 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.659e-05/0.2052, allocations: 70.08 kB / 0.7916 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.2054, allocations: 342.8 kB / 0.792 GB, free: 4.355 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.2056, allocations: 84.75 kB / 0.792 GB, free: 4.273 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003154/0.2059, allocations: 258.9 kB / 0.7923 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005587/0.2065, allocations: 384.8 kB / 0.7926 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.2065, allocations: 0 / 0.7926 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007149/0.2072, allocations: 402.5 kB / 0.793 GB, free: 3.066 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.025e-05/0.2073, allocations: 37.69 kB / 0.7931 GB, free: 3.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.2073, allocations: 7.938 kB / 0.7931 GB, free: 3.016 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.2073, allocations: 8.656 kB / 0.7931 GB, free: 3.008 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.2075, allocations: 71.84 kB / 0.7931 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.2076, allocations: 11.94 kB / 0.7932 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002335/0.2078, allocations: 43.72 kB / 0.7932 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.2078, allocations: 16 kB / 0.7932 GB, free: 2.867 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.0001547/0.208, allocations: 164.6 kB / 0.7934 GB, free: 2.699 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.208, allocations: 27.62 kB / 0.7934 GB, free: 2.672 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.319e-05/0.2081, allocations: 25.7 kB / 0.7934 GB, free: 2.645 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.2081, allocations: 4 kB / 0.7934 GB, free: 2.641 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.2081, allocations: 3.938 kB / 0.7934 GB, free: 2.637 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.2081, allocations: 7.984 kB / 0.7934 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002858/0.2084, allocations: 265.3 kB / 0.7937 GB, free: 2.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2085, allocations: 0 / 0.7937 GB, free: 2.32 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.2086, allocations: 27.91 kB / 0.7937 GB, free: 2.293 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.2086, allocations: 4 kB / 0.7937 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.2086, allocations: 7.984 kB / 0.7937 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2086, allocations: 0 / 0.7937 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.2086, allocations: 11.94 kB / 0.7937 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008438/0.2095, allocations: 402.3 kB / 0.7941 GB, free: 1.852 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.571e-05/0.2096, allocations: 100.8 kB / 0.7942 GB, free: 1.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/0.2096, allocations: 8 kB / 0.7942 GB, free: 1.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.2098, allocations: 15.97 kB / 0.7942 GB, free: 1.711 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.72e-05/0.2099, allocations: 27.86 kB / 0.7943 GB, free: 1.684 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.2099, allocations: 16.23 kB / 0.7943 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001326/0.21, allocations: 166 kB / 0.7944 GB, free: 1.504 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.21, allocations: 0 / 0.7944 GB, free: 1.504 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003919/0.2104, allocations: 83.92 kB / 0.7945 GB, free: 1.422 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.0003285/0.2108, allocations: 174.7 kB / 0.7947 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006383/0.2114, allocations: 315.1 kB / 0.795 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2114, allocations: 0 / 0.795 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002612/0.2117, allocations: 107.9 kB / 0.7951 GB, free: 0.8242 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003712/0.2121, allocations: 72 kB / 0.7952 GB, free: 0.7578 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.2131, allocations: 0.5896 MB / 0.7957 GB, free: 136 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.2134, allocations: 0.7407 MB / 0.7965 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001353/0.2136, allocations: 46.95 kB / 0.7965 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.785e-05/0.2136, allocations: 27.42 kB / 0.7965 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of SimCode: time 2.5e-07/0.2136, allocations: 0 / 0.7965 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of Templates: time 0.007943/0.2216, allocations: 3.978 MB / 0.8004 GB, free: 11.4 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)