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.001468/0.001468, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001495/0.001495, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.456/1.456, 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.833/2.833, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 55.91 kB / 1.055 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9588/0.9602, allocations: 157.4 MB / 1.208 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.004618/0.9649, allocations: 2.355 MB / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002123/0.9671, allocations: 1.005 MB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002782/0.9674, allocations: 7.938 kB / 1.212 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0003488/0.9677, allocations: 51.62 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003488/0.9682, allocations: 83.28 kB / 1.212 GB, free: 10.05 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.0006974/0.9689, allocations: 155.5 kB / 1.212 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003881/0.9693, allocations: 286.8 kB / 1.212 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.9694, allocations: 44.19 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002007/0.9696, allocations: 115.6 kB / 1.212 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/0.9698, allocations: 107.5 kB / 1.213 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.887e-05/0.9698, allocations: 16 kB / 1.213 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003535/0.9702, allocations: 123.9 kB / 1.213 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.297e-05/0.9702, allocations: 51.78 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.9704, allocations: 115.4 kB / 1.213 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004993/0.9709, allocations: 312.8 kB / 1.213 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.9709, allocations: 0 / 1.213 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.084e-06/0.9709, allocations: 0 / 1.213 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.597e-06/0.9709, allocations: 0 / 1.213 GB, free: 8.754 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.001165/0.9721, allocations: 0.5942 MB / 1.214 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.9721, allocations: 16.03 kB / 1.214 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.9723, allocations: 28.59 kB / 1.214 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005691/0.9728, allocations: 298.9 kB / 1.214 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.9729, allocations: 12.61 kB / 1.214 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.564e-05/0.9729, allocations: 20.36 kB / 1.214 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004273/0.9734, allocations: 208.6 kB / 1.214 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.9734, allocations: 0 / 1.214 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.9734, allocations: 11.98 kB / 1.214 GB, free: 7.465 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.9734, allocations: 0 / 1.214 GB, free: 7.465 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003707/0.9738, allocations: 103.8 kB / 1.214 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001129/0.975, allocations: 0.8723 MB / 1.215 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004966/0.9755, allocations: 211.7 kB / 1.215 GB, free: 6.188 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002039/0.9757, allocations: 78.61 kB / 1.215 GB, free: 6.102 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.11e-05/0.9757, allocations: 4 kB / 1.215 GB, free: 6.098 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004034/0.9761, allocations: 204 kB / 1.216 GB, free: 5.879 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=23): time 1.673e-06/0.9761, allocations: 0 / 1.216 GB, free: 5.879 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23): time 0.0009233/0.9771, allocations: 357.3 kB / 1.216 GB, free: 5.523 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.426e-05/0.9771, allocations: 114.8 kB / 1.216 GB, free: 5.387 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002476/0.9774, allocations: 246.5 kB / 1.216 GB, free: 5.133 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.049e-05/0.9774, allocations: 45.7 kB / 1.216 GB, free: 5.082 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.99e-05/0.9775, allocations: 136.5 kB / 1.217 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.964e-05/0.9776, allocations: 63.23 kB / 1.217 GB, free: 4.883 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.9777, allocations: 74.06 kB / 1.217 GB, free: 4.801 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.9779, allocations: 334.8 kB / 1.217 GB, free: 4.465 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/0.9781, allocations: 84.75 kB / 1.217 GB, free: 4.383 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/0.9784, allocations: 267.1 kB / 1.217 GB, free: 4.039 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006059/0.979, allocations: 380.5 kB / 1.218 GB, free: 3.578 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.9791, allocations: 4 kB / 1.218 GB, free: 3.574 MB / 0.9356 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007602/0.9798, allocations: 402.8 kB / 1.218 GB, free: 3.168 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.022e-05/0.9799, allocations: 33.7 kB / 1.218 GB, free: 3.129 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.9799, allocations: 8.375 kB / 1.218 GB, free: 3.121 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.9799, allocations: 8 kB / 1.218 GB, free: 3.113 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002167/0.9801, allocations: 59.91 kB / 1.218 GB, free: 3.055 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.726e-05/0.9802, allocations: 19.86 kB / 1.218 GB, free: 3.035 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/0.9804, allocations: 55.98 kB / 1.218 GB, free: 2.98 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.9805, allocations: 16 kB / 1.218 GB, free: 2.965 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.0001524/0.9806, allocations: 159.9 kB / 1.218 GB, free: 2.801 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.156e-05/0.9807, allocations: 31.61 kB / 1.218 GB, free: 2.77 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.945e-05/0.9808, allocations: 25.7 kB / 1.218 GB, free: 2.746 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.9808, allocations: 0 / 1.218 GB, free: 2.746 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.9808, allocations: 11.94 kB / 1.218 GB, free: 2.734 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.9808, allocations: 0 / 1.218 GB, free: 2.734 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.9811, allocations: 261.5 kB / 1.219 GB, free: 2.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.9811, allocations: 0 / 1.219 GB, free: 2.43 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.9812, allocations: 23.98 kB / 1.219 GB, free: 2.406 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-05/0.9812, allocations: 0 / 1.219 GB, free: 2.406 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.9813, allocations: 11.92 kB / 1.219 GB, free: 2.395 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.9813, allocations: 4 kB / 1.219 GB, free: 2.391 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.9813, allocations: 3.938 kB / 1.219 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008488/0.9821, allocations: 414.1 kB / 1.219 GB, free: 1.957 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.995e-05/0.9822, allocations: 100.7 kB / 1.219 GB, free: 1.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.82e-05/0.9823, allocations: 12.03 kB / 1.219 GB, free: 1.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.9825, allocations: 15.98 kB / 1.219 GB, free: 1.812 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.327e-05/0.9825, allocations: 35.92 kB / 1.219 GB, free: 1.777 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-05/0.9826, allocations: 15.98 kB / 1.219 GB, free: 1.762 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001451/0.9827, allocations: 166 kB / 1.22 GB, free: 1.602 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.7e-07/0.9827, allocations: 0 / 1.22 GB, free: 1.602 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004382/0.9832, allocations: 76 kB / 1.22 GB, free: 1.527 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.0004037/0.9836, allocations: 167.2 kB / 1.22 GB, free: 1.359 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006231/0.9842, allocations: 296.2 kB / 1.22 GB, free: 1.059 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.9842, allocations: 0 / 1.22 GB, free: 1.059 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.9845, allocations: 103.9 kB / 1.22 GB, free: 0.957 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003858/0.9849, allocations: 69.77 kB / 1.22 GB, free: 0.8906 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.9861, allocations: 0.6341 MB / 1.221 GB, free: 224 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.9865, allocations: 0.7446 MB / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.596e-05/0.9865, allocations: 23.44 kB / 1.222 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of SimCode: time 4.41e-07/0.9865, allocations: 0 / 1.222 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of Templates: time 0.007144/0.9937, allocations: 3.862 MB / 1.225 GB, free: 11.59 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