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.001828/0.001828, allocations: 110.3 kB / 16.41 MB, free: 6.504 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.001976/0.001976, allocations: 185.2 kB / 17.34 MB, free: 5.738 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.459/1.459, 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 10.1.1-maint.10.0.x/package.mo): time 2.581/2.581, allocations: 437.1 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 71.88 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7536/0.7556, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.00394/0.7595, allocations: 2.347 MB / 1.17 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001717/0.7613, allocations: 1.002 MB / 1.171 GB, free: 484 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.7614, allocations: 4 kB / 1.171 GB, free: 480 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000221/0.7616, allocations: 59.56 kB / 1.171 GB, free: 420 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0003182/0.762, allocations: 83.34 kB / 1.171 GB, free: 336 kB / 0.8887 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.0004969/0.7625, allocations: 161.3 kB / 1.171 GB, free: 176 kB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003547/0.7629, allocations: 286.8 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.763, allocations: 44.36 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001707/0.7632, allocations: 115.5 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001461/0.7633, allocations: 111.5 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.388e-05/0.7634, allocations: 16 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002871/0.7637, allocations: 119.8 kB / 1.172 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 5.422e-05/0.7637, allocations: 47.83 kB / 1.172 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.7638, allocations: 111.4 kB / 1.172 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004339/0.7643, allocations: 327.2 kB / 1.172 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.7643, allocations: 4 kB / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.302e-06/0.7643, allocations: 0 / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.7643, allocations: 0 / 1.172 GB, free: 15.01 MB / 0.9044 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.001032/0.7654, allocations: 0.5979 MB / 1.173 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.7654, allocations: 12.58 kB / 1.173 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.892e-05/0.7655, allocations: 28.75 kB / 1.173 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004835/0.766, allocations: 303.1 kB / 1.173 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.766, allocations: 12.61 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.719e-05/0.7661, allocations: 24.36 kB / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004329/0.7665, allocations: 204.6 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.7665, allocations: 4 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.7666, allocations: 4 kB / 1.173 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.7666, allocations: 3.938 kB / 1.173 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003996/0.767, allocations: 107.8 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.7682, allocations: 0.8684 MB / 1.174 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005401/0.7687, allocations: 207.9 kB / 1.174 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002212/0.769, allocations: 74.61 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.769, allocations: 7.938 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004323/0.7694, allocations: 205.7 kB / 1.175 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=23): time 1.953e-06/0.7695, allocations: 0 / 1.175 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of matching and sorting (n=23): time 0.0009479/0.7704, allocations: 361.2 kB / 1.175 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.627e-05/0.7705, allocations: 110.8 kB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002664/0.7708, allocations: 254.4 kB / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.7708, allocations: 41.7 kB / 1.175 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.771, allocations: 144.6 kB / 1.175 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.401e-05/0.771, allocations: 63.53 kB / 1.176 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.7712, allocations: 82.02 kB / 1.176 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001684/0.7714, allocations: 334.8 kB / 1.176 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.7716, allocations: 84.75 kB / 1.176 GB, free: 10.63 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003851/0.772, allocations: 247.2 kB / 1.176 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006934/0.7727, allocations: 392.4 kB / 1.177 GB, free: 9.832 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.7727, allocations: 0 / 1.177 GB, free: 9.832 MB / 0.9044 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009019/0.7736, allocations: 411.2 kB / 1.177 GB, free: 9.418 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.665e-05/0.7737, allocations: 33.7 kB / 1.177 GB, free: 9.379 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.7737, allocations: 8 kB / 1.177 GB, free: 9.371 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.7737, allocations: 8 kB / 1.177 GB, free: 9.363 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002324/0.774, allocations: 67.83 kB / 1.177 GB, free: 9.297 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.715e-05/0.774, allocations: 15.88 kB / 1.177 GB, free: 9.281 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.7743, allocations: 39.83 kB / 1.177 GB, free: 9.242 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.7743, allocations: 20 kB / 1.177 GB, free: 9.223 MB / 0.9044 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.0001744/0.7745, allocations: 167.9 kB / 1.177 GB, free: 9.051 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.607e-05/0.7745, allocations: 31.81 kB / 1.177 GB, free: 9.02 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.322e-05/0.7746, allocations: 25.7 kB / 1.177 GB, free: 8.992 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.7746, allocations: 384 / 1.177 GB, free: 8.992 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.7746, allocations: 7.938 kB / 1.177 GB, free: 8.984 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.7747, allocations: 0 / 1.177 GB, free: 8.984 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003229/0.775, allocations: 261.5 kB / 1.178 GB, free: 8.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.775, allocations: 3.938 kB / 1.178 GB, free: 8.676 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000129/0.7751, allocations: 24.23 kB / 1.178 GB, free: 8.652 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.7751, allocations: 0 / 1.178 GB, free: 8.652 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.058e-05/0.7752, allocations: 15.98 kB / 1.178 GB, free: 8.637 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.7752, allocations: 4 kB / 1.178 GB, free: 8.633 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.7752, allocations: 3.938 kB / 1.178 GB, free: 8.629 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009307/0.7761, allocations: 415.5 kB / 1.178 GB, free: 8.199 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 8.599e-05/0.7762, allocations: 104.8 kB / 1.178 GB, free: 8.078 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/0.7763, allocations: 12.03 kB / 1.178 GB, free: 8.066 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.7765, allocations: 15.98 kB / 1.178 GB, free: 8.051 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.428e-05/0.7765, allocations: 27.91 kB / 1.178 GB, free: 8.023 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.7766, allocations: 11.98 kB / 1.178 GB, free: 8.012 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001751/0.7767, allocations: 170 kB / 1.178 GB, free: 7.84 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7768, allocations: 0 / 1.178 GB, free: 7.84 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004212/0.7772, allocations: 75.94 kB / 1.179 GB, free: 7.766 MB / 0.9044 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.0003894/0.7776, allocations: 180.3 kB / 1.179 GB, free: 7.586 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006518/0.7783, allocations: 290.5 kB / 1.179 GB, free: 7.293 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.7783, allocations: 0 / 1.179 GB, free: 7.293 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002839/0.7786, allocations: 112.2 kB / 1.179 GB, free: 7.184 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.7789, allocations: 65.45 kB / 1.179 GB, free: 7.121 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.7802, allocations: 0.6084 MB / 1.18 GB, free: 6.48 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003722/0.7806, allocations: 0.7446 MB / 1.18 GB, free: 5.711 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001409/0.7807, allocations: 50.89 kB / 1.181 GB, free: 5.66 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.589e-05/0.7808, allocations: 27.44 kB / 1.181 GB, free: 5.633 MB / 0.9044 GB Notification: Performance of SimCode: time 2.31e-07/0.7808, allocations: 0 / 1.181 GB, free: 5.633 MB / 0.9044 GB Notification: Performance of Templates: time 0.009447/0.7903, allocations: 4.001 MB / 1.184 GB, free: 1.711 MB / 0.9044 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=480 -s cvode -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/jenkins1/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