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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0007566/0.0007568, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.004351/0.004351, allocations: 170.4 kB / 16.27 MB, free: 6.652 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.291/1.291, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.212/2.212, allocations: 390.9 MB / 0.6664 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002952/0.0002952, allocations: 12 kB / 0.8161 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5507/0.551, allocations: 142.4 MB / 0.9552 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.002007/0.5531, allocations: 2.032 MB / 0.9572 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001246/0.5543, allocations: 0.98 MB / 0.9581 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.5545, allocations: 8.562 kB / 0.9581 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001866/0.5547, allocations: 46.75 kB / 0.9582 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001668/0.5549, allocations: 75.73 kB / 0.9582 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003785/0.5552, allocations: 133.1 kB / 0.9584 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.5555, allocations: 271.9 kB / 0.9586 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.495e-05/0.5556, allocations: 46.3 kB / 0.9587 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.5558, allocations: 100.5 kB / 0.9588 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.5559, allocations: 105.9 kB / 0.9589 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/0.5559, allocations: 8.75 kB / 0.9589 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002348/0.5562, allocations: 99.11 kB / 0.959 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.628e-05/0.5562, allocations: 36.77 kB / 0.959 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.5563, allocations: 140.7 kB / 0.9591 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002848/0.5566, allocations: 303.1 kB / 0.9594 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.5566, allocations: 1.375 kB / 0.9594 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.062e-06/0.5566, allocations: 3.938 kB / 0.9594 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.062e-06/0.5566, allocations: 0 / 0.9594 GB, free: 4.469 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.0007339/0.5574, allocations: 0.5462 MB / 0.96 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.5574, allocations: 13.62 kB / 0.96 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.133e-05/0.5575, allocations: 50.8 kB / 0.96 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.652e-05/0.5575, allocations: 30.39 kB / 0.9601 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003102/0.5578, allocations: 293.5 kB / 0.9603 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.5579, allocations: 12.86 kB / 0.9604 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.208e-05/0.5579, allocations: 22.11 kB / 0.9604 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/0.5583, allocations: 214.8 kB / 0.9606 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.5583, allocations: 5.312 kB / 0.9606 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.5583, allocations: 5.375 kB / 0.9606 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.5583, allocations: 4.125 kB / 0.9606 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003236/0.5586, allocations: 126.2 kB / 0.9607 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007451/0.5594, allocations: 0.8761 MB / 0.9616 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004383/0.5598, allocations: 215 kB / 0.9618 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.56, allocations: 88.8 kB / 0.9619 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.5601, allocations: 3 kB / 0.9619 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003681/0.5604, allocations: 212.9 kB / 0.9621 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=23): time 2.284e-06/0.5604, allocations: 3.984 kB / 0.9621 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.0008182/0.5613, allocations: 376.7 kB / 0.9624 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.5613, allocations: 126.2 kB / 0.9625 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.5615, allocations: 242.7 kB / 0.9628 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.789e-05/0.5615, allocations: 38.73 kB / 0.9628 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.093e-05/0.5616, allocations: 142.1 kB / 0.963 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.072e-05/0.5617, allocations: 60.69 kB / 0.963 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.715e-05/0.5617, allocations: 48.03 kB / 0.9631 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.011e-05/0.5618, allocations: 337.9 kB / 0.9634 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.562, allocations: 91.84 kB / 0.9635 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00025/0.5622, allocations: 270.1 kB / 0.9637 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004671/0.5627, allocations: 395.8 kB / 0.9641 GB, free: 396 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.5627, allocations: 2.469 kB / 0.9641 GB, free: 396 kB / 0.7169 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006595/0.5634, allocations: 415.2 kB / 0.9645 GB, free: 168 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.5634, allocations: 41.02 kB / 0.9645 GB, free: 128 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.5634, allocations: 6.031 kB / 0.9645 GB, free: 128 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.5635, allocations: 9.156 kB / 0.9646 GB, free: 128 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002012/0.5637, allocations: 72.66 kB / 0.9646 GB, free: 108 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.5637, allocations: 19.2 kB / 0.9646 GB, free: 96 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/0.5639, allocations: 49.17 kB / 0.9647 GB, free: 68 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.5639, allocations: 18.34 kB / 0.9647 GB, free: 64 kB / 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.0001341/0.5641, allocations: 160.1 kB / 0.9649 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.819e-05/0.5641, allocations: 33.95 kB / 0.9649 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.186e-05/0.5642, allocations: 19.66 kB / 0.9649 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.5642, allocations: 2.688 kB / 0.9649 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.5642, allocations: 7.922 kB / 0.9649 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.5642, allocations: 3.562 kB / 0.9649 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00023/0.5644, allocations: 264.1 kB / 0.9652 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.5645, allocations: 0 / 0.9652 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.5646, allocations: 25.39 kB / 0.9652 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.5646, allocations: 1.812 kB / 0.9652 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.282e-05/0.5646, allocations: 8.266 kB / 0.9652 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.5646, allocations: 1.375 kB / 0.9652 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.5646, allocations: 5.281 kB / 0.9652 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008213/0.5655, allocations: 441.7 kB / 0.9656 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.804e-05/0.5655, allocations: 104.5 kB / 0.9657 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.631e-05/0.5656, allocations: 15.5 kB / 0.9658 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/0.5657, allocations: 20.02 kB / 0.9658 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.181e-05/0.5658, allocations: 26.03 kB / 0.9658 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.5658, allocations: 16.2 kB / 0.9658 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001342/0.566, allocations: 166.5 kB / 0.966 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.566, allocations: 3.938 kB / 0.966 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003786/0.5664, allocations: 80.61 kB / 0.966 GB, free: 15.05 MB / 0.7325 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.001263/0.5676, allocations: 1.026 MB / 0.9671 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005789/0.5682, allocations: 308.6 kB / 0.9673 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.5682, allocations: 0.9688 kB / 0.9673 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002566/0.5685, allocations: 115.4 kB / 0.9675 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003667/0.5689, allocations: 64.09 kB / 0.9675 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003821/0.5727, allocations: 3.175 MB / 0.9706 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.573, allocations: 0.7457 MB / 0.9713 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001469/0.5731, allocations: 53.42 kB / 0.9714 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.319e-05/0.5732, allocations: 73.58 kB / 0.9715 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.5732, allocations: 4 kB / 0.9715 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.297/1.87, allocations: 6.045 MB / 0.9774 GB, free: 7.816 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002123/1.871, allocations: 243.1 kB / 0.9776 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.072/4.943, allocations: 0 / 0.9776 GB, free: 7.566 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)