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.001272/0.001272, allocations: 110.7 kB / 16.41 MB, free: 6.496 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.001137/0.001137, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.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.276/2.276, allocations: 390.2 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 63.91 kB / 0.9515 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9609/0.9625, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003789/0.9663, allocations: 2.339 MB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001722/0.9681, allocations: 1.006 MB / 1.092 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.9682, allocations: 8.094 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002737/0.9685, allocations: 51.02 kB / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001891/0.9687, allocations: 80.42 kB / 1.092 GB, free: 3.086 MB / 0.8575 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.0005761/0.9693, allocations: 169.2 kB / 1.092 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003501/0.9697, allocations: 292.4 kB / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.9698, allocations: 36.17 kB / 1.092 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.97, allocations: 118 kB / 1.093 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001573/0.9702, allocations: 113.5 kB / 1.093 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.282e-05/0.9702, allocations: 17.03 kB / 1.093 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003447/0.9706, allocations: 123.3 kB / 1.093 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.839e-05/0.9706, allocations: 40.14 kB / 1.093 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001278/0.9708, allocations: 122.8 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004703/0.9712, allocations: 313.5 kB / 1.093 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.9713, allocations: 0 / 1.093 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.563e-06/0.9713, allocations: 3.938 kB / 1.093 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.965e-06/0.9713, allocations: 0.875 kB / 1.093 GB, free: 2.477 MB / 0.8575 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.0009199/0.9722, allocations: 0.5928 MB / 1.094 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.9722, allocations: 10.02 kB / 1.094 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.879e-05/0.9723, allocations: 27.94 kB / 1.094 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004351/0.9728, allocations: 291.5 kB / 1.094 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.9728, allocations: 16.97 kB / 1.094 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.923e-05/0.9729, allocations: 27.94 kB / 1.094 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004212/0.9733, allocations: 202.2 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.9733, allocations: 1.578 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.9733, allocations: 3.172 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.9734, allocations: 11.78 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003663/0.9737, allocations: 110.3 kB / 1.095 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009265/0.9747, allocations: 0.8689 MB / 1.095 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004954/0.9752, allocations: 210.3 kB / 1.096 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.9754, allocations: 79.17 kB / 1.096 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.9754, allocations: 1.25 kB / 1.096 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000428/0.9758, allocations: 205.7 kB / 1.096 GB, free: 488 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.9759, allocations: 0 / 1.096 GB, free: 488 kB / 0.8575 GB Notification: Performance of matching and sorting (n=23): time 0.001009/0.9769, allocations: 356.9 kB / 1.096 GB, free: 364 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/0.9769, allocations: 117 kB / 1.096 GB, free: 232 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.9772, allocations: 241.1 kB / 1.097 GB, free: 84 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.172e-05/0.9773, allocations: 39.97 kB / 1.097 GB, free: 44 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.9774, allocations: 141.7 kB / 1.097 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.53e-05/0.9775, allocations: 65.97 kB / 1.097 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.9776, allocations: 74.06 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001707/0.9778, allocations: 342.8 kB / 1.097 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002549/0.9781, allocations: 84.67 kB / 1.097 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003746/0.9784, allocations: 248.2 kB / 1.098 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006529/0.9791, allocations: 389.7 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.9791, allocations: 1.344 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008607/0.98, allocations: 398.9 kB / 1.098 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.822e-05/0.9801, allocations: 37.23 kB / 1.098 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.9801, allocations: 5.719 kB / 1.098 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.572e-05/0.9801, allocations: 12 kB / 1.098 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002429/0.9804, allocations: 68.39 kB / 1.098 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.164e-05/0.9804, allocations: 17.86 kB / 1.098 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.9807, allocations: 45.27 kB / 1.098 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.954e-05/0.9807, allocations: 20.77 kB / 1.098 GB, free: 14.62 MB / 0.8731 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.0001865/0.9809, allocations: 162 kB / 1.099 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.438e-05/0.981, allocations: 26.39 kB / 1.099 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.473e-05/0.981, allocations: 22.27 kB / 1.099 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.981, allocations: 3.281 kB / 1.099 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.9811, allocations: 5.031 kB / 1.099 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.9811, allocations: 6.344 kB / 1.099 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003646/0.9814, allocations: 265.9 kB / 1.099 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.9815, allocations: 0.75 kB / 1.099 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.9816, allocations: 19.66 kB / 1.099 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.9816, allocations: 1.188 kB / 1.099 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.9816, allocations: 15 kB / 1.099 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.9816, allocations: 2.281 kB / 1.099 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.9817, allocations: 5.734 kB / 1.099 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009659/0.9826, allocations: 422.5 kB / 1.099 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.815e-05/0.9827, allocations: 105.2 kB / 1.099 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.946e-05/0.9828, allocations: 5.797 kB / 1.099 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.9829, allocations: 17.64 kB / 1.1 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.972e-05/0.983, allocations: 25.05 kB / 1.1 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.9831, allocations: 14.59 kB / 1.1 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001963/0.9833, allocations: 167.5 kB / 1.1 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9833, allocations: 0 / 1.1 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000463/0.9838, allocations: 83.62 kB / 1.1 GB, free: 13.75 MB / 0.8731 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.0004188/0.9842, allocations: 178.9 kB / 1.1 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006676/0.9849, allocations: 296.9 kB / 1.1 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.9849, allocations: 1.625 kB / 1.1 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002737/0.9852, allocations: 103.4 kB / 1.1 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003868/0.9856, allocations: 59.73 kB / 1.1 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.9869, allocations: 0.6192 MB / 1.101 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.9872, allocations: 0.746 MB / 1.102 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.029e-05/0.9873, allocations: 26.47 kB / 1.102 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of SimCode: time 3.61e-07/0.9873, allocations: 0 / 1.102 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of Templates: time 0.009058/0.9964, allocations: 3.868 MB / 1.106 GB, free: 11.92 MB / 0.8731 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/jenkins1/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