Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.004509/0.004509, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.001062/0.001062, allocations: 192.8 kB / 16.67 MB, free: 5.973 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.662/2.662, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 67.89 kB / 1.054 GB, free: 7.156 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.261, allocations: 157.4 MB / 1.208 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003349/0.2644, allocations: 2.347 MB / 1.21 GB, free: 7.289 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001489/0.2659, allocations: 0.997 MB / 1.211 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.798e-05/0.266, allocations: 11.94 kB / 1.211 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002104/0.2662, allocations: 47.62 kB / 1.211 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001756/0.2664, allocations: 87.27 kB / 1.211 GB, free: 6.141 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.0004591/0.2669, allocations: 164.3 kB / 1.211 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002732/0.2672, allocations: 294.8 kB / 1.212 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.2673, allocations: 36.33 kB / 1.212 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001464/0.2675, allocations: 119.5 kB / 1.212 GB, free: 5.535 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.2676, allocations: 107.5 kB / 1.212 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.092e-05/0.2676, allocations: 20 kB / 1.212 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002866/0.2679, allocations: 111.9 kB / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.383e-05/0.268, allocations: 59.69 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.2681, allocations: 111.5 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004149/0.2685, allocations: 311 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2686, allocations: 3.984 kB / 1.212 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2686, allocations: 3.938 kB / 1.212 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.2686, allocations: 0 / 1.212 GB, free: 4.82 MB / 0.9669 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.0009149/0.2695, allocations: 0.602 MB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.2695, allocations: 12.62 kB / 1.213 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.757e-05/0.2696, allocations: 24.66 kB / 1.213 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003871/0.27, allocations: 291 kB / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.27, allocations: 16.61 kB / 1.213 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.473e-05/0.2701, allocations: 20.38 kB / 1.213 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003851/0.2705, allocations: 208.6 kB / 1.214 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.2705, allocations: 7.906 kB / 1.214 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.2705, allocations: 4 kB / 1.214 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.2705, allocations: 7.984 kB / 1.214 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003452/0.2709, allocations: 107.8 kB / 1.214 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009142/0.2718, allocations: 0.8763 MB / 1.215 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004653/0.2723, allocations: 195.8 kB / 1.215 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001971/0.2725, allocations: 82.56 kB / 1.215 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.226e-05/0.2725, allocations: 4 kB / 1.215 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003814/0.2729, allocations: 197.8 kB / 1.215 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.2729, allocations: 0 / 1.215 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23): time 0.0008316/0.2738, allocations: 349.1 kB / 1.215 GB, free: 1.602 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.2738, allocations: 122.8 kB / 1.215 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.274, allocations: 250.4 kB / 1.216 GB, free: 1.203 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.2741, allocations: 33.7 kB / 1.216 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.437e-05/0.2742, allocations: 140.6 kB / 1.216 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.875e-05/0.2742, allocations: 63.19 kB / 1.216 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.491e-05/0.2743, allocations: 77.97 kB / 1.216 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.2744, allocations: 342.8 kB / 1.216 GB, free: 0.5312 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.2747, allocations: 80.77 kB / 1.216 GB, free: 464 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002984/0.275, allocations: 255.1 kB / 1.217 GB, free: 120 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005404/0.2755, allocations: 392.8 kB / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2755, allocations: 0 / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007164/0.2763, allocations: 395 kB / 1.217 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.35e-05/0.2763, allocations: 37.69 kB / 1.217 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.2763, allocations: 4.25 kB / 1.217 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.2763, allocations: 8 kB / 1.217 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.2766, allocations: 76.34 kB / 1.218 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.2766, allocations: 15.94 kB / 1.218 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/0.2768, allocations: 43.58 kB / 1.218 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.118e-05/0.2769, allocations: 23.98 kB / 1.218 GB, free: 15.03 MB / 0.9825 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.0001306/0.277, allocations: 167.9 kB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.356e-05/0.2771, allocations: 23.72 kB / 1.218 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.178e-05/0.2771, allocations: 25.7 kB / 1.218 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2771, allocations: 4 kB / 1.218 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.2771, allocations: 3.938 kB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.2772, allocations: 7.984 kB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002498/0.2774, allocations: 261.3 kB / 1.218 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2774, allocations: 0 / 1.218 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.2776, allocations: 23.91 kB / 1.218 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.2776, allocations: 7.938 kB / 1.218 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.2776, allocations: 11.98 kB / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.2776, allocations: 0 / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.2776, allocations: 11.94 kB / 1.218 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008341/0.2785, allocations: 408.8 kB / 1.219 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.015e-05/0.2785, allocations: 100.9 kB / 1.219 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.869e-05/0.2786, allocations: 12 kB / 1.219 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.2787, allocations: 15.97 kB / 1.219 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.027e-05/0.2788, allocations: 23.92 kB / 1.219 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/0.2789, allocations: 15.98 kB / 1.219 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001321/0.279, allocations: 166 kB / 1.219 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.51e-07/0.279, allocations: 0 / 1.219 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004057/0.2794, allocations: 87.92 kB / 1.219 GB, free: 13.59 MB / 0.9825 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.000311/0.2797, allocations: 159.4 kB / 1.219 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005934/0.2803, allocations: 295.6 kB / 1.219 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2803, allocations: 4 kB / 1.219 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002623/0.2806, allocations: 107.8 kB / 1.219 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.281, allocations: 55.14 kB / 1.219 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.2821, allocations: 0.6129 MB / 1.22 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.2824, allocations: 0.7368 MB / 1.221 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001264/0.2825, allocations: 59.06 kB / 1.221 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.832e-05/0.2826, allocations: 23.44 kB / 1.221 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of SimCode: time 1.433e-06/0.2826, allocations: 0 / 1.221 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of Templates: time 0.007927/0.2905, allocations: 4.008 MB / 1.225 GB, free: 7.547 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches