Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001841/0.001841, allocations: 99.56 kB / 16.27 MB, free: 5.977 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.002062/0.002062, allocations: 189.9 kB / 17.2 MB, free: 5.602 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.453/1.453, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.591/2.591, allocations: 437.1 MB / 0.711 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001997/0.001998, allocations: 68.77 kB / 0.8699 GB, free: 2.199 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.3537, allocations: 151.6 MB / 1.018 GB, free: 10.63 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.00427/0.358, allocations: 2.358 MB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001817/0.3598, allocations: 1.002 MB / 1.021 GB, free: 7.246 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.36, allocations: 7.938 kB / 1.021 GB, free: 7.238 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0002651/0.3603, allocations: 47.62 kB / 1.021 GB, free: 7.191 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002019/0.3605, allocations: 83.28 kB / 1.021 GB, free: 7.109 MB / 0.795 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/Fluid/Geothermal/Boreholes/BaseClasses/temperatureDrop.mo:2:1-109: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.0005351/0.3611, allocations: 175 kB / 1.022 GB, free: 6.941 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003207/0.3614, allocations: 282.8 kB / 1.022 GB, free: 6.664 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.3615, allocations: 40.61 kB / 1.022 GB, free: 6.621 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.3617, allocations: 111.6 kB / 1.022 GB, free: 6.512 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.3619, allocations: 107.5 kB / 1.022 GB, free: 6.406 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.001e-05/0.3619, allocations: 23.94 kB / 1.022 GB, free: 6.383 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002937/0.3622, allocations: 115.9 kB / 1.022 GB, free: 6.27 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.972e-05/0.3623, allocations: 47.78 kB / 1.022 GB, free: 6.223 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.3624, allocations: 119.5 kB / 1.022 GB, free: 6.105 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004366/0.3629, allocations: 303 kB / 1.023 GB, free: 5.809 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.3629, allocations: 0 / 1.023 GB, free: 5.809 MB / 0.795 GB Notification: Performance of FrontEnd: time 5.04e-06/0.3629, allocations: 4 kB / 1.023 GB, free: 5.805 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.3629, allocations: 0 / 1.023 GB, free: 5.805 MB / 0.795 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.001106/0.364, allocations: 0.5903 MB / 1.023 GB, free: 5.156 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.3641, allocations: 16.88 kB / 1.023 GB, free: 5.141 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.22e-05/0.3642, allocations: 36.58 kB / 1.023 GB, free: 5.105 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004695/0.3646, allocations: 291 kB / 1.024 GB, free: 4.785 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.3647, allocations: 12.61 kB / 1.024 GB, free: 4.773 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.358e-05/0.3647, allocations: 24.36 kB / 1.024 GB, free: 4.75 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004415/0.3652, allocations: 209.5 kB / 1.024 GB, free: 4.523 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.3652, allocations: 4 kB / 1.024 GB, free: 4.52 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.295e-05/0.3652, allocations: 4 kB / 1.024 GB, free: 4.516 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.3653, allocations: 4 kB / 1.024 GB, free: 4.512 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003644/0.3656, allocations: 99.84 kB / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.3668, allocations: 0.8683 MB / 1.025 GB, free: 3.477 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005215/0.3673, allocations: 211.8 kB / 1.025 GB, free: 3.242 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.3675, allocations: 78.61 kB / 1.025 GB, free: 3.156 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.3675, allocations: 8 kB / 1.025 GB, free: 3.148 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004888/0.368, allocations: 212 kB / 1.025 GB, free: 2.922 MB / 0.795 GB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.368, allocations: 0 / 1.025 GB, free: 2.922 MB / 0.795 GB Notification: Performance of matching and sorting (n=23): time 0.000933/0.369, allocations: 349.2 kB / 1.026 GB, free: 2.574 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.803e-05/0.3691, allocations: 122.7 kB / 1.026 GB, free: 2.43 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.3694, allocations: 250.4 kB / 1.026 GB, free: 2.184 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.3694, allocations: 33.7 kB / 1.026 GB, free: 2.145 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.3695, allocations: 144.6 kB / 1.026 GB, free: 2 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 6.337e-05/0.3696, allocations: 63.19 kB / 1.026 GB, free: 1.938 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.3697, allocations: 74.06 kB / 1.026 GB, free: 1.855 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001633/0.3699, allocations: 338.8 kB / 1.027 GB, free: 1.516 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/0.3701, allocations: 80.75 kB / 1.027 GB, free: 1.438 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003628/0.3705, allocations: 255.1 kB / 1.027 GB, free: 1.109 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006286/0.3711, allocations: 380.8 kB / 1.027 GB, free: 0.6484 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3711, allocations: 4 kB / 1.027 GB, free: 0.6445 MB / 0.795 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000794/0.3719, allocations: 406.9 kB / 1.028 GB, free: 240 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.383e-05/0.372, allocations: 37.7 kB / 1.028 GB, free: 196 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.372, allocations: 4 kB / 1.028 GB, free: 192 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/0.372, allocations: 11.98 kB / 1.028 GB, free: 180 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002257/0.3723, allocations: 68.52 kB / 1.028 GB, free: 112 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.948e-05/0.3723, allocations: 15.88 kB / 1.028 GB, free: 96 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.3726, allocations: 47.67 kB / 1.028 GB, free: 48 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.866e-05/0.3726, allocations: 20.22 kB / 1.028 GB, free: 28 kB / 0.795 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.0001928/0.3728, allocations: 167.8 kB / 1.028 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.042e-05/0.3728, allocations: 27.72 kB / 1.028 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.193e-05/0.3729, allocations: 21.7 kB / 1.028 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3729, allocations: 4 kB / 1.028 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.3729, allocations: 3.938 kB / 1.028 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.3729, allocations: 4 kB / 1.028 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003276/0.3733, allocations: 273.3 kB / 1.028 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.3733, allocations: 0 / 1.028 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.3734, allocations: 19.98 kB / 1.028 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.3734, allocations: 4 kB / 1.028 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.3735, allocations: 7.984 kB / 1.028 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.3735, allocations: 0 / 1.028 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3735, allocations: 11.81 kB / 1.028 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008893/0.3744, allocations: 418.1 kB / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.21e-05/0.3745, allocations: 96.83 kB / 1.029 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.128e-05/0.3745, allocations: 12.03 kB / 1.029 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.3747, allocations: 11.98 kB / 1.029 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.241e-05/0.3748, allocations: 27.91 kB / 1.029 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.057e-05/0.3748, allocations: 15.98 kB / 1.029 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001602/0.375, allocations: 173.9 kB / 1.029 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.375, allocations: 0 / 1.029 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000408/0.3754, allocations: 83.92 kB / 1.029 GB, free: 14.57 MB / 0.8106 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.0003796/0.3758, allocations: 153.6 kB / 1.029 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006585/0.3764, allocations: 310.2 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3765, allocations: 4.125 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002663/0.3767, allocations: 99.89 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.3771, allocations: 60.77 kB / 1.03 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.3785, allocations: 0.6386 MB / 1.03 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.3788, allocations: 0.7406 MB / 1.031 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.987e-05/0.3789, allocations: 31.44 kB / 1.031 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.3789, allocations: 4 kB / 1.031 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of Templates: time 0.006941/0.3859, allocations: 3.834 MB / 1.035 GB, free: 8.652 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches