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.001207/0.001207, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001246/0.001246, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.411/1.411, allocations: 222.9 MB / 240.9 MB, free: 15.28 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.527/2.527, allocations: 437 MB / 0.711 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00177/0.00177, allocations: 69.2 kB / 0.8699 GB, free: 2.164 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3426, allocations: 151.6 MB / 1.018 GB, free: 10.61 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.005144/0.3478, allocations: 2.364 MB / 1.02 GB, free: 8.23 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002206/0.35, allocations: 0.994 MB / 1.021 GB, free: 7.227 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003053/0.3504, allocations: 7.938 kB / 1.021 GB, free: 7.219 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.000369/0.3508, allocations: 55.62 kB / 1.021 GB, free: 7.164 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003584/0.3512, allocations: 75.28 kB / 1.021 GB, free: 7.09 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.0008035/0.352, allocations: 164.3 kB / 1.022 GB, free: 6.93 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004668/0.3525, allocations: 286.8 kB / 1.022 GB, free: 6.648 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001975/0.3527, allocations: 40.61 kB / 1.022 GB, free: 6.605 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003088/0.353, allocations: 107.5 kB / 1.022 GB, free: 6.5 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002098/0.3532, allocations: 115.5 kB / 1.022 GB, free: 6.387 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.327e-05/0.3533, allocations: 16 kB / 1.022 GB, free: 6.371 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004642/0.3538, allocations: 115.8 kB / 1.022 GB, free: 6.258 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.916e-05/0.3538, allocations: 59.75 kB / 1.022 GB, free: 6.199 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.354, allocations: 111.5 kB / 1.022 GB, free: 6.09 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005628/0.3546, allocations: 315 kB / 1.023 GB, free: 5.781 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3546, allocations: 0 / 1.023 GB, free: 5.781 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3546, allocations: 0 / 1.023 GB, free: 5.781 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.199e-05/0.3546, allocations: 0 / 1.023 GB, free: 5.781 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.001312/0.3559, allocations: 0.5921 MB / 1.023 GB, free: 5.133 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.356, allocations: 16.88 kB / 1.023 GB, free: 5.117 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.3561, allocations: 24.66 kB / 1.023 GB, free: 5.094 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005613/0.3567, allocations: 291 kB / 1.024 GB, free: 4.773 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/0.3567, allocations: 16.59 kB / 1.024 GB, free: 4.758 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.962e-05/0.3568, allocations: 20.38 kB / 1.024 GB, free: 4.738 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004747/0.3573, allocations: 213.5 kB / 1.024 GB, free: 4.508 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3573, allocations: 0 / 1.024 GB, free: 4.508 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/0.3574, allocations: 3.984 kB / 1.024 GB, free: 4.504 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.3574, allocations: 4 kB / 1.024 GB, free: 4.5 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/0.3578, allocations: 115.8 kB / 1.024 GB, free: 4.387 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001208/0.359, allocations: 0.8645 MB / 1.025 GB, free: 3.453 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000524/0.3596, allocations: 207.8 kB / 1.025 GB, free: 3.223 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000207/0.3598, allocations: 78.56 kB / 1.025 GB, free: 3.137 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.3598, allocations: 8 kB / 1.025 GB, free: 3.129 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005036/0.3603, allocations: 212.2 kB / 1.025 GB, free: 2.902 MB / 0.795 GB Notification: Performance of pre-optimization done (n=23): time 1.884e-06/0.3603, allocations: 0 / 1.025 GB, free: 2.902 MB / 0.795 GB Notification: Performance of matching and sorting (n=23): time 0.0009442/0.3613, allocations: 353.1 kB / 1.026 GB, free: 2.551 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.012e-05/0.3614, allocations: 110.8 kB / 1.026 GB, free: 2.418 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002682/0.3616, allocations: 250.4 kB / 1.026 GB, free: 2.172 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.135e-05/0.3617, allocations: 41.7 kB / 1.026 GB, free: 2.125 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.3618, allocations: 144.6 kB / 1.026 GB, free: 1.98 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 6.218e-05/0.3619, allocations: 55.27 kB / 1.026 GB, free: 1.926 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.362, allocations: 82 kB / 1.026 GB, free: 1.836 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3622, allocations: 338.8 kB / 1.027 GB, free: 1.496 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/0.3624, allocations: 77.14 kB / 1.027 GB, free: 1.422 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003393/0.3627, allocations: 259.4 kB / 1.027 GB, free: 1.09 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006823/0.3634, allocations: 380.5 kB / 1.027 GB, free: 0.6289 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.325e-05/0.3635, allocations: 8 kB / 1.027 GB, free: 0.6211 MB / 0.795 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008173/0.3643, allocations: 410.6 kB / 1.028 GB, free: 212 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.04e-05/0.3643, allocations: 33.7 kB / 1.028 GB, free: 172 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.3644, allocations: 4 kB / 1.028 GB, free: 168 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.123e-05/0.3644, allocations: 15.98 kB / 1.028 GB, free: 152 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002196/0.3646, allocations: 63.84 kB / 1.028 GB, free: 88 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.981e-05/0.3647, allocations: 11.94 kB / 1.028 GB, free: 76 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.3649, allocations: 48.08 kB / 1.028 GB, free: 28 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.088e-05/0.365, allocations: 20 kB / 1.028 GB, free: 8 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.0001887/0.3652, allocations: 159.9 kB / 1.028 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.225e-05/0.3652, allocations: 27.72 kB / 1.028 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.227e-05/0.3653, allocations: 21.7 kB / 1.028 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.3653, allocations: 4 kB / 1.028 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.3653, allocations: 11.94 kB / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.3653, allocations: 0 / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003058/0.3656, allocations: 265.4 kB / 1.028 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-06/0.3656, allocations: 0 / 1.028 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.3658, allocations: 27.91 kB / 1.028 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.3658, allocations: 0 / 1.028 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.639e-05/0.3658, allocations: 11.98 kB / 1.028 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3658, allocations: 0 / 1.028 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.3658, allocations: 11.92 kB / 1.028 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008507/0.3667, allocations: 414.4 kB / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.781e-05/0.3668, allocations: 100.9 kB / 1.029 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.971e-05/0.3668, allocations: 8 kB / 1.029 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.367, allocations: 19.98 kB / 1.029 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.814e-05/0.3671, allocations: 27.91 kB / 1.029 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.3671, allocations: 11.98 kB / 1.029 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001585/0.3673, allocations: 166 kB / 1.029 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3673, allocations: 0 / 1.029 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004024/0.3677, 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.000419/0.3681, allocations: 173.6 kB / 1.029 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006548/0.3688, allocations: 300.2 kB / 1.03 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3688, allocations: 0 / 1.03 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002678/0.3691, allocations: 103.9 kB / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.3695, allocations: 68.36 kB / 1.03 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.3708, allocations: 0.6304 MB / 1.03 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.3712, allocations: 0.7406 MB / 1.031 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.126e-05/0.3712, allocations: 31.38 kB / 1.031 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.3712, allocations: 0 / 1.031 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of Templates: time 0.006708/0.378, allocations: 3.846 MB / 1.035 GB, free: 8.637 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=480 -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