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: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBouSte.port.T|TBouCon.port.T|TBouPul.port.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBouSte.port.T|TBouCon.port.T|TBouPul.port.T",fileNamePrefix="Buildings_9_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.001084/0.001084, allocations: 96.94 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.00807/0.00807, allocations: 168.9 kB / 16.26 MB, free: 6.66 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.375/1.375, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.362/2.362, allocations: 390.9 MB / 0.6663 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003282/0.0003283, allocations: 8 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6474/0.6478, allocations: 142.4 MB / 0.9551 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.002353/0.6502, allocations: 2.036 MB / 0.957 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001427/0.6516, allocations: 0.9794 MB / 0.958 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.6518, allocations: 7.688 kB / 0.958 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002213/0.652, allocations: 51.66 kB / 0.9581 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001954/0.6522, allocations: 67.17 kB / 0.9581 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.6527, allocations: 146 kB / 0.9583 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002779/0.653, allocations: 263.4 kB / 0.9585 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.6531, allocations: 38.62 kB / 0.9585 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001935/0.6533, allocations: 96.61 kB / 0.9586 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.6534, allocations: 108 kB / 0.9587 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.26e-05/0.6535, allocations: 13.75 kB / 0.9588 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002837/0.6538, allocations: 107.8 kB / 0.9589 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.948e-05/0.6538, allocations: 35.5 kB / 0.9589 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.6539, allocations: 137 kB / 0.959 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003301/0.6543, allocations: 308 kB / 0.9593 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.6543, allocations: 0 / 0.9593 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.843e-06/0.6543, allocations: 0 / 0.9593 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.163e-06/0.6543, allocations: 1.375 kB / 0.9593 GB, free: 4.52 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.0008441/0.6552, allocations: 0.5501 MB / 0.9599 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.6552, allocations: 9.625 kB / 0.9599 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.838e-05/0.6553, allocations: 26.41 kB / 0.9599 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003663/0.6557, allocations: 301.5 kB / 0.9602 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.6557, allocations: 15.48 kB / 0.9602 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.833e-05/0.6557, allocations: 18.12 kB / 0.9602 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003855/0.6561, allocations: 212.4 kB / 0.9604 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.6562, allocations: 3.938 kB / 0.9604 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.264e-05/0.6562, allocations: 14.72 kB / 0.9604 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.6562, allocations: 2.75 kB / 0.9604 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003607/0.6566, allocations: 119.3 kB / 0.9605 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008765/0.6575, allocations: 0.8755 MB / 0.9614 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004799/0.658, allocations: 215.6 kB / 0.9616 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.6582, allocations: 84.45 kB / 0.9617 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.6582, allocations: 6.875 kB / 0.9617 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004159/0.6586, allocations: 216.3 kB / 0.9619 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=23): time 2.245e-06/0.6586, allocations: 1 kB / 0.9619 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.0008993/0.6595, allocations: 376.1 kB / 0.9623 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.6596, allocations: 118.1 kB / 0.9624 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.6598, allocations: 243.3 kB / 0.9626 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.6599, allocations: 38.16 kB / 0.9626 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.966e-05/0.6599, allocations: 143 kB / 0.9628 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.795e-05/0.66, allocations: 64.02 kB / 0.9628 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.082e-05/0.66, allocations: 48.61 kB / 0.9629 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.827e-05/0.6601, allocations: 342.1 kB / 0.9632 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002409/0.6604, allocations: 83.95 kB / 0.9633 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/0.6606, allocations: 262.1 kB / 0.9635 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005388/0.6612, allocations: 403 kB / 0.9639 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.351e-06/0.6612, allocations: 2.344 kB / 0.9639 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007385/0.662, allocations: 422.6 kB / 0.9643 GB, free: 276 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.662, allocations: 34.3 kB / 0.9644 GB, free: 244 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/0.662, allocations: 5.906 kB / 0.9644 GB, free: 244 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.6621, allocations: 12.7 kB / 0.9644 GB, free: 240 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002192/0.6623, allocations: 73.97 kB / 0.9644 GB, free: 216 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.6623, allocations: 16.83 kB / 0.9645 GB, free: 208 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.6626, allocations: 51.7 kB / 0.9645 GB, free: 180 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.6626, allocations: 22.05 kB / 0.9645 GB, free: 172 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.0001125/0.6627, allocations: 161.3 kB / 0.9647 GB, free: 24 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.766e-05/0.6628, allocations: 30.72 kB / 0.9647 GB, free: 4 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.78e-05/0.6628, allocations: 28.55 kB / 0.9647 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.6629, allocations: 1.719 kB / 0.9647 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.6629, allocations: 5.344 kB / 0.9648 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.6629, allocations: 2.656 kB / 0.9648 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.6632, allocations: 261 kB / 0.965 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.6632, allocations: 0 / 0.965 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.6633, allocations: 25.56 kB / 0.965 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.6633, allocations: 6.062 kB / 0.965 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.355e-05/0.6634, allocations: 8.031 kB / 0.965 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.6634, allocations: 1.438 kB / 0.965 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/0.6634, allocations: 8.797 kB / 0.9651 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009264/0.6643, allocations: 434.2 kB / 0.9655 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.636e-05/0.6644, allocations: 107.5 kB / 0.9656 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.646e-05/0.6645, allocations: 8.625 kB / 0.9656 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.6647, allocations: 23.59 kB / 0.9656 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.977e-05/0.6647, allocations: 26.06 kB / 0.9656 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.6648, allocations: 11.81 kB / 0.9656 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000152/0.6649, allocations: 170.8 kB / 0.9658 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6649, allocations: 0 / 0.9658 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004458/0.6654, allocations: 76.84 kB / 0.9659 GB, free: 15.17 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.0003726/0.6658, allocations: 176.2 kB / 0.966 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006781/0.6665, allocations: 311 kB / 0.9663 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.6665, allocations: 0 / 0.9663 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000292/0.6668, allocations: 123.5 kB / 0.9665 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004254/0.6672, allocations: 52.05 kB / 0.9665 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.6685, allocations: 0.7225 MB / 0.9672 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.6688, allocations: 0.7417 MB / 0.9679 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000169/0.669, allocations: 53.66 kB / 0.968 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.582e-05/0.6691, allocations: 28.03 kB / 0.968 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of SimCode: time 4.61e-07/0.6691, allocations: 0 / 0.968 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of Templates: time 0.008913/0.678, allocations: 3.723 MB / 0.9716 GB, free: 11.67 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (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 & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches