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.001906/0.001906, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00218/0.00218, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.431/1.431, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.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.712/2.712, allocations: 437 MB / 0.7104 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 63.91 kB / 0.8692 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5735/0.5755, allocations: 151.6 MB / 1.017 GB, free: 2.422 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.004138/0.5797, allocations: 2.346 MB / 1.02 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001769/0.5815, allocations: 1.006 MB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.5817, allocations: 7.938 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002412/0.5819, allocations: 47.56 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002128/0.5822, allocations: 79.34 kB / 1.021 GB, free: 14.91 MB / 0.7794 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.0005374/0.5827, allocations: 167.5 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003395/0.5831, allocations: 286.8 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.5832, allocations: 42.34 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.5834, allocations: 107.5 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/0.5836, allocations: 111.5 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.71e-05/0.5837, allocations: 16 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003053/0.584, allocations: 119.8 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.233e-05/0.5841, allocations: 51.77 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.5842, allocations: 107.5 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004533/0.5847, allocations: 318.9 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.5847, allocations: 3.938 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.222e-06/0.5847, allocations: 0 / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.897e-06/0.5847, allocations: 0 / 1.022 GB, free: 13.6 MB / 0.7794 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.001169/0.5859, allocations: 0.5826 MB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.5859, allocations: 11.98 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.533e-05/0.586, allocations: 32.66 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004552/0.5865, allocations: 294.9 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.228e-05/0.5865, allocations: 16.59 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.959e-05/0.5866, allocations: 20.31 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004434/0.587, allocations: 205.6 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.587, allocations: 4 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.295e-05/0.5871, allocations: 11.94 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.5871, allocations: 0 / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003743/0.5875, allocations: 111.8 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.5886, allocations: 0.8683 MB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005178/0.5891, allocations: 199.9 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002166/0.5894, allocations: 86.53 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.5894, allocations: 0 / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004804/0.5899, allocations: 215.5 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=23): time 1.674e-06/0.5899, allocations: 0 / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.000938/0.5908, allocations: 357 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.442e-05/0.5909, allocations: 110.8 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.5912, allocations: 246.5 kB / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.5912, allocations: 41.7 kB / 1.025 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.5914, allocations: 144.5 kB / 1.025 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.466e-05/0.5914, allocations: 59.27 kB / 1.025 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.5915, allocations: 74.06 kB / 1.026 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5917, allocations: 338.8 kB / 1.026 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.592, allocations: 84.7 kB / 1.026 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003689/0.5923, allocations: 255.2 kB / 1.026 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006265/0.593, allocations: 388.4 kB / 1.027 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.593, allocations: 0 / 1.027 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008124/0.5938, allocations: 407.3 kB / 1.027 GB, free: 8.031 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.966e-05/0.5939, allocations: 33.7 kB / 1.027 GB, free: 7.992 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.5939, allocations: 11.98 kB / 1.027 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.5939, allocations: 8 kB / 1.027 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.5941, allocations: 67.84 kB / 1.027 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.5942, allocations: 15.88 kB / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/0.5944, allocations: 47.67 kB / 1.027 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.622e-05/0.5944, allocations: 16 kB / 1.027 GB, free: 7.828 MB / 0.7794 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.0001684/0.5946, allocations: 164 kB / 1.027 GB, free: 7.656 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.853e-05/0.5947, allocations: 23.72 kB / 1.027 GB, free: 7.633 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.161e-05/0.5947, allocations: 25.7 kB / 1.027 GB, free: 7.613 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.5947, allocations: 0 / 1.027 GB, free: 7.613 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.5948, allocations: 11.88 kB / 1.027 GB, free: 7.602 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.5948, allocations: 0 / 1.027 GB, free: 7.602 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003095/0.5951, allocations: 265.4 kB / 1.028 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.5951, allocations: 4 kB / 1.028 GB, free: 7.289 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.5952, allocations: 28.34 kB / 1.028 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.5952, allocations: 0 / 1.028 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.5953, allocations: 4 kB / 1.028 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.441e-05/0.5953, allocations: 7.984 kB / 1.028 GB, free: 7.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.5953, allocations: 7.875 kB / 1.028 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008994/0.5962, allocations: 416.6 kB / 1.028 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.591e-05/0.5963, allocations: 108.6 kB / 1.028 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.15e-05/0.5963, allocations: 8 kB / 1.028 GB, free: 6.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001645/0.5965, allocations: 15.97 kB / 1.028 GB, free: 6.664 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.982e-05/0.5966, allocations: 23.92 kB / 1.028 GB, free: 6.641 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.5966, allocations: 19.98 kB / 1.028 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000168/0.5968, allocations: 166 kB / 1.028 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5968, allocations: 0 / 1.028 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004091/0.5972, allocations: 79.98 kB / 1.028 GB, free: 6.379 MB / 0.7794 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.0003755/0.5976, allocations: 174.3 kB / 1.029 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006689/0.5983, allocations: 296.2 kB / 1.029 GB, free: 5.902 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.5983, allocations: 448 / 1.029 GB, free: 5.902 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002811/0.5986, allocations: 112.4 kB / 1.029 GB, free: 5.793 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.599, allocations: 62.23 kB / 1.029 GB, free: 5.734 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.6002, allocations: 0.6131 MB / 1.03 GB, free: 5.09 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.6006, allocations: 0.7407 MB / 1.03 GB, free: 4.32 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001533/0.6008, allocations: 50.94 kB / 1.03 GB, free: 4.27 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.836e-05/0.6008, allocations: 27.44 kB / 1.03 GB, free: 4.242 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.6009, allocations: 0 / 1.03 GB, free: 4.242 MB / 0.7794 GB Notification: Performance of Templates: time 0.009209/0.6101, allocations: 3.957 MB / 1.034 GB, free: 376 kB / 0.7794 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/jenkins/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