Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001313/0.001313, allocations: 192.8 kB / 16.25 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.171/2.171, allocations: 390.2 MB / 0.6644 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 75.88 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.528/0.5293, allocations: 140.4 MB / 0.9492 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.002803/0.5321, allocations: 2.389 MB / 0.9516 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.5331, allocations: 0.9946 MB / 0.9525 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.29e-05/0.5332, allocations: 8 kB / 0.9526 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001882/0.5334, allocations: 42.75 kB / 0.9526 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.5336, allocations: 67.83 kB / 0.9527 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.5339, allocations: 140.6 kB / 0.9528 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000205/0.5341, allocations: 287.8 kB / 0.9531 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.376e-05/0.5342, allocations: 44.09 kB / 0.9531 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/0.5344, allocations: 117.7 kB / 0.9532 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.5345, allocations: 108.9 kB / 0.9533 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.053e-05/0.5345, allocations: 17.41 kB / 0.9533 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.5347, allocations: 113.9 kB / 0.9535 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.359e-05/0.5348, allocations: 47.47 kB / 0.9535 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.691e-05/0.5349, allocations: 119.6 kB / 0.9536 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.5351, allocations: 309.2 kB / 0.9539 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.5352, allocations: 5.5 kB / 0.9539 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5352, allocations: 0 / 0.9539 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.5352, allocations: 0 / 0.9539 GB, free: 5.613 MB / 0.7169 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.00076/0.5359, allocations: 0.5936 MB / 0.9545 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.536, allocations: 9.406 kB / 0.9545 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.299e-05/0.536, allocations: 42.86 kB / 0.9545 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.499e-05/0.5361, allocations: 29.98 kB / 0.9546 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.5364, allocations: 295.7 kB / 0.9549 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.5364, allocations: 12.39 kB / 0.9549 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.98e-05/0.5365, allocations: 26.02 kB / 0.9549 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003325/0.5368, allocations: 208.5 kB / 0.9551 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.5368, allocations: 13.16 kB / 0.9551 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.5368, allocations: 2.281 kB / 0.9551 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.5369, allocations: 6.688 kB / 0.9551 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003004/0.5372, allocations: 105.4 kB / 0.9552 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006886/0.5379, allocations: 0.8651 MB / 0.9561 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003919/0.5383, allocations: 211.9 kB / 0.9563 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.5384, allocations: 77.77 kB / 0.9563 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.5385, allocations: 6.047 kB / 0.9563 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000345/0.5388, allocations: 196.4 kB / 0.9565 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=23): time 1.833e-06/0.5388, allocations: 0 / 0.9565 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.0007615/0.5396, allocations: 364.2 kB / 0.9569 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.5396, allocations: 122.8 kB / 0.957 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.5398, allocations: 242.8 kB / 0.9572 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.5398, allocations: 37.3 kB / 0.9573 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.681e-05/0.5399, allocations: 144.2 kB / 0.9574 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.731e-05/0.5399, allocations: 63.44 kB / 0.9575 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-05/0.54, allocations: 76.5 kB / 0.9575 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.596e-05/0.5401, allocations: 336.7 kB / 0.9578 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001927/0.5403, allocations: 81.03 kB / 0.9579 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.5405, allocations: 263.1 kB / 0.9582 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004201/0.5409, allocations: 382.4 kB / 0.9585 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.5409, allocations: 1.375 kB / 0.9585 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005922/0.5415, allocations: 405.5 kB / 0.9589 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.5416, allocations: 33.77 kB / 0.959 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.5416, allocations: 6.062 kB / 0.959 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.5416, allocations: 8.031 kB / 0.959 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.5418, allocations: 66.3 kB / 0.959 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.5418, allocations: 20.69 kB / 0.9591 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.542, allocations: 40.05 kB / 0.9591 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.5421, allocations: 21.06 kB / 0.9591 GB, free: 1.18 MB / 0.7169 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.0001021/0.5422, allocations: 167.8 kB / 0.9593 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.959e-05/0.5422, allocations: 24.84 kB / 0.9593 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.353e-05/0.5423, allocations: 24.36 kB / 0.9593 GB, free: 1 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.5423, allocations: 3.75 kB / 0.9593 GB, free: 1 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.5423, allocations: 3.938 kB / 0.9593 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.5423, allocations: 5.344 kB / 0.9593 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001888/0.5425, allocations: 266.4 kB / 0.9596 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.5425, allocations: 4.875 kB / 0.9596 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.5426, allocations: 18.08 kB / 0.9596 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.5426, allocations: 1.062 kB / 0.9596 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.5427, allocations: 16.36 kB / 0.9596 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.5427, allocations: 6.094 kB / 0.9596 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5427, allocations: 3.938 kB / 0.9596 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007356/0.5434, allocations: 406.8 kB / 0.96 GB, free: 480 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.512e-05/0.5435, allocations: 100.7 kB / 0.9601 GB, free: 368 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.523e-05/0.5435, allocations: 11.44 kB / 0.9601 GB, free: 360 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.5437, allocations: 16.58 kB / 0.9601 GB, free: 352 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.25e-05/0.5437, allocations: 29.72 kB / 0.9602 GB, free: 332 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.5438, allocations: 15.61 kB / 0.9602 GB, free: 324 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001038/0.5439, allocations: 166.8 kB / 0.9604 GB, free: 200 kB / 0.7169 GB Notification: Performance of sort global known variables: time 6.51e-07/0.5439, allocations: 0 / 0.9604 GB, free: 200 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003568/0.5442, allocations: 93.42 kB / 0.9604 GB, free: 172 kB / 0.7169 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.001232/0.5455, allocations: 1.008 MB / 0.9614 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005502/0.546, allocations: 306.9 kB / 0.9617 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.546, allocations: 0 / 0.9617 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002437/0.5463, allocations: 100.4 kB / 0.9618 GB, free: 15.17 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.5467, allocations: 71.09 kB / 0.9619 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.5503, allocations: 3.065 MB / 0.9649 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000282/0.5506, allocations: 0.7375 MB / 0.9656 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001422/0.5507, allocations: 57.28 kB / 0.9656 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.332e-05/0.5508, allocations: 68.23 kB / 0.9657 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.5508, allocations: 0 / 0.9657 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03684/0.5877, allocations: 6.332 MB / 0.9719 GB, free: 8.809 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002322/0.5879, allocations: 245.8 kB / 0.9721 GB, free: 8.559 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/2.494, allocations: 0 / 0.9721 GB, free: 8.559 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.fmu > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)