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.001849/0.001849, allocations: 110.9 kB / 16.41 MB, free: 6.492 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.00193/0.00193, allocations: 187 kB / 17.34 MB, free: 5.766 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.543/1.543, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.603/2.603, allocations: 461.9 MB / 0.7354 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 63.91 kB / 1.055 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9055/0.907, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003819/0.9109, allocations: 2.352 MB / 1.211 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001664/0.9126, allocations: 0.9971 MB / 1.212 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.9127, allocations: 7.938 kB / 1.212 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002391/0.913, allocations: 51.62 kB / 1.212 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001794/0.9132, allocations: 87.27 kB / 1.212 GB, free: 10.16 MB / 0.9356 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.0004658/0.9136, allocations: 167.5 kB / 1.212 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003025/0.914, allocations: 286.8 kB / 1.212 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.9141, allocations: 40.17 kB / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.9143, allocations: 119.5 kB / 1.212 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.9144, allocations: 115.5 kB / 1.213 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.9145, allocations: 16 kB / 1.213 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002764/0.9147, allocations: 111.9 kB / 1.213 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.407e-05/0.9148, allocations: 55.7 kB / 1.213 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.9149, allocations: 119.5 kB / 1.213 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003855/0.9153, allocations: 308.8 kB / 1.213 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.9153, allocations: 0 / 1.213 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.753e-06/0.9153, allocations: 0 / 1.213 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.9154, allocations: 0 / 1.213 GB, free: 8.844 MB / 0.9356 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.0009919/0.9163, allocations: 0.5942 MB / 1.214 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.9164, allocations: 12.03 kB / 1.214 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.449e-05/0.9165, allocations: 32.64 kB / 1.214 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004868/0.917, allocations: 290.9 kB / 1.214 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.917, allocations: 20.59 kB / 1.214 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.866e-05/0.9171, allocations: 20.38 kB / 1.214 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004191/0.9175, allocations: 204.6 kB / 1.214 GB, free: 7.566 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.9175, allocations: 4 kB / 1.214 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.049e-05/0.9175, allocations: 0 / 1.214 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.9175, allocations: 4 kB / 1.214 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003464/0.9179, allocations: 107.8 kB / 1.214 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.9189, allocations: 0.8761 MB / 1.215 GB, free: 6.508 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004822/0.9194, allocations: 203.8 kB / 1.215 GB, free: 6.281 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/0.9197, allocations: 78.61 kB / 1.215 GB, free: 6.195 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.318e-05/0.9197, allocations: 11.98 kB / 1.215 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004054/0.9201, allocations: 196 kB / 1.216 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=23): time 3.436e-06/0.9201, allocations: 3.984 kB / 1.216 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23): time 0.0008849/0.921, allocations: 357.4 kB / 1.216 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.107e-05/0.9211, allocations: 114.9 kB / 1.216 GB, free: 5.477 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.9213, allocations: 246.4 kB / 1.216 GB, free: 5.223 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.9214, allocations: 41.7 kB / 1.216 GB, free: 5.176 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.9215, allocations: 144.5 kB / 1.217 GB, free: 5.031 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.676e-05/0.9216, allocations: 63.19 kB / 1.217 GB, free: 4.969 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.727e-05/0.9217, allocations: 74.06 kB / 1.217 GB, free: 4.887 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.9218, allocations: 338.8 kB / 1.217 GB, free: 4.547 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.922, allocations: 80.75 kB / 1.217 GB, free: 4.469 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003163/0.9224, allocations: 255.1 kB / 1.217 GB, free: 4.137 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005624/0.9229, allocations: 388.5 kB / 1.218 GB, free: 3.668 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.923, allocations: 0 / 1.218 GB, free: 3.668 MB / 0.9356 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006985/0.9237, allocations: 407.4 kB / 1.218 GB, free: 3.258 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.227e-05/0.9237, allocations: 33.7 kB / 1.218 GB, free: 3.219 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.9237, allocations: 4 kB / 1.218 GB, free: 3.215 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.9238, allocations: 8 kB / 1.218 GB, free: 3.207 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/0.924, allocations: 75.83 kB / 1.218 GB, free: 3.133 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.924, allocations: 16 kB / 1.218 GB, free: 3.117 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/0.9243, allocations: 43.98 kB / 1.218 GB, free: 3.074 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/0.9243, allocations: 20 kB / 1.218 GB, free: 3.055 MB / 0.9356 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.0001619/0.9245, allocations: 167.9 kB / 1.218 GB, free: 2.883 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.476e-05/0.9245, allocations: 27.62 kB / 1.218 GB, free: 2.855 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.035e-05/0.9246, allocations: 21.7 kB / 1.218 GB, free: 2.836 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.9246, allocations: 4 kB / 1.218 GB, free: 2.832 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.9246, allocations: 3.938 kB / 1.218 GB, free: 2.828 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.9246, allocations: 8 kB / 1.218 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002926/0.9249, allocations: 261.5 kB / 1.219 GB, free: 2.516 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.9249, allocations: 0 / 1.219 GB, free: 2.516 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/0.9251, allocations: 19.92 kB / 1.219 GB, free: 2.496 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.9251, allocations: 4 kB / 1.219 GB, free: 2.492 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.098e-05/0.9251, allocations: 11.98 kB / 1.219 GB, free: 2.48 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.9251, allocations: 3.938 kB / 1.219 GB, free: 2.477 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.9251, allocations: 3.938 kB / 1.219 GB, free: 2.473 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008563/0.926, allocations: 410.1 kB / 1.219 GB, free: 2.047 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.089e-05/0.9261, allocations: 104.8 kB / 1.219 GB, free: 1.926 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.897e-05/0.9261, allocations: 8.031 kB / 1.219 GB, free: 1.918 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.9263, allocations: 15.98 kB / 1.219 GB, free: 1.902 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.118e-05/0.9264, allocations: 35.84 kB / 1.219 GB, free: 1.867 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.9264, allocations: 11.98 kB / 1.219 GB, free: 1.855 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001539/0.9266, allocations: 166 kB / 1.219 GB, free: 1.695 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9266, allocations: 0 / 1.219 GB, free: 1.695 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004251/0.927, allocations: 83.98 kB / 1.22 GB, free: 1.613 MB / 0.9356 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.0004247/0.9274, allocations: 164 kB / 1.22 GB, free: 1.449 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006583/0.9281, allocations: 296.3 kB / 1.22 GB, free: 1.148 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.9281, allocations: 4 kB / 1.22 GB, free: 1.145 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002579/0.9284, allocations: 99.89 kB / 1.22 GB, free: 1.047 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.9288, allocations: 63.2 kB / 1.22 GB, free: 0.9844 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.9301, allocations: 0.6383 MB / 1.221 GB, free: 316 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.9304, allocations: 0.7407 MB / 1.222 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.497e-05/0.9305, allocations: 27.44 kB / 1.222 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of SimCode: time 4.31e-07/0.9305, allocations: 0 / 1.222 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of Templates: time 0.006283/0.9368, allocations: 3.868 MB / 1.225 GB, free: 11.67 MB / 0.9512 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/jenkins1/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