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.001535/0.001535, allocations: 107.7 kB / 16.27 MB, free: 6.402 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.001669/0.001669, allocations: 191 kB / 17.2 MB, free: 5.938 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.35/1.35, allocations: 222.9 MB / 240.9 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.76/2.76, allocations: 469.4 MB / 0.7427 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 64.52 kB / 0.9088 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.3422, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.004153/0.3464, allocations: 2.343 MB / 1.067 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002034/0.3484, allocations: 1.001 MB / 1.067 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002344/0.3487, allocations: 7.938 kB / 1.068 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002834/0.349, allocations: 51.56 kB / 1.068 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002995/0.3494, allocations: 87.33 kB / 1.068 GB, free: 11.5 MB / 0.8419 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.0006611/0.35, allocations: 157 kB / 1.068 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0004194/0.3505, allocations: 290.8 kB / 1.068 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.3506, allocations: 40.61 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002399/0.3509, allocations: 115.5 kB / 1.068 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.3511, allocations: 111.5 kB / 1.068 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.332e-05/0.3511, allocations: 16 kB / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003214/0.3514, allocations: 115.8 kB / 1.068 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.498e-05/0.3515, allocations: 47.83 kB / 1.068 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.3516, allocations: 111.5 kB / 1.069 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004177/0.3521, allocations: 307 kB / 1.069 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3521, allocations: 4 kB / 1.069 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.035e-06/0.3521, allocations: 0 / 1.069 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.276e-05/0.3521, allocations: 3.938 kB / 1.069 GB, free: 10.21 MB / 0.8419 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.001027/0.3531, allocations: 0.5942 MB / 1.069 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.3532, allocations: 8.031 kB / 1.069 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.22e-05/0.3533, allocations: 32.66 kB / 1.07 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004294/0.3537, allocations: 291 kB / 1.07 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.3537, allocations: 12.61 kB / 1.07 GB, free: 9.188 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.749e-05/0.3538, allocations: 20.36 kB / 1.07 GB, free: 9.168 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004016/0.3542, allocations: 204.6 kB / 1.07 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.3542, allocations: 0 / 1.07 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.3543, allocations: 15.98 kB / 1.07 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.3543, allocations: 0 / 1.07 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003506/0.3546, allocations: 107.8 kB / 1.07 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.3557, allocations: 0.8723 MB / 1.071 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004877/0.3562, allocations: 211.8 kB / 1.071 GB, free: 7.648 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/0.3564, allocations: 82.61 kB / 1.071 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.318e-05/0.3565, allocations: 0 / 1.071 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004315/0.3569, allocations: 205.7 kB / 1.071 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=23): time 2.064e-06/0.3569, allocations: 0 / 1.071 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23): time 0.0008734/0.3578, allocations: 357.1 kB / 1.072 GB, free: 6.98 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.759e-05/0.3579, allocations: 118.8 kB / 1.072 GB, free: 6.84 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/0.3581, allocations: 250.8 kB / 1.072 GB, free: 6.59 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.563e-05/0.3582, allocations: 37.7 kB / 1.072 GB, free: 6.547 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.465e-05/0.3583, allocations: 132.6 kB / 1.072 GB, free: 6.414 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.893e-05/0.3583, allocations: 67.17 kB / 1.072 GB, free: 6.348 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.3584, allocations: 82 kB / 1.072 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.3586, allocations: 338.8 kB / 1.073 GB, free: 5.918 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.3588, allocations: 80.75 kB / 1.073 GB, free: 5.84 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003048/0.3591, allocations: 255.1 kB / 1.073 GB, free: 5.508 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006192/0.3597, allocations: 380.5 kB / 1.073 GB, free: 5.047 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/0.3597, allocations: 4 kB / 1.073 GB, free: 5.043 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008166/0.3606, allocations: 403.1 kB / 1.074 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.303e-05/0.3606, allocations: 33.7 kB / 1.074 GB, free: 4.598 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.3607, allocations: 8 kB / 1.074 GB, free: 4.59 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.809e-05/0.3607, allocations: 8 kB / 1.074 GB, free: 4.582 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/0.3609, allocations: 63.84 kB / 1.074 GB, free: 4.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.648e-05/0.361, allocations: 24.25 kB / 1.074 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002896/0.3613, allocations: 43.67 kB / 1.074 GB, free: 4.453 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.3613, allocations: 16 kB / 1.074 GB, free: 4.438 MB / 0.8419 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.0002018/0.3615, allocations: 160 kB / 1.074 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.339e-05/0.3616, allocations: 31.61 kB / 1.074 GB, free: 4.242 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.177e-05/0.3617, allocations: 21.72 kB / 1.074 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.3617, allocations: 7.984 kB / 1.074 GB, free: 4.211 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.3617, allocations: 3.938 kB / 1.074 GB, free: 4.207 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.3617, allocations: 0 / 1.074 GB, free: 4.207 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003369/0.362, allocations: 269.4 kB / 1.075 GB, free: 3.895 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.3621, allocations: 0 / 1.075 GB, free: 3.895 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.3622, allocations: 27.98 kB / 1.075 GB, free: 3.867 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.3622, allocations: 0 / 1.075 GB, free: 3.867 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.3622, allocations: 7.984 kB / 1.075 GB, free: 3.859 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.3622, allocations: 7.938 kB / 1.075 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.3623, allocations: 7.922 kB / 1.075 GB, free: 3.844 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009099/0.3632, allocations: 420.2 kB / 1.075 GB, free: 3.41 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.244e-05/0.3633, allocations: 96.83 kB / 1.075 GB, free: 3.297 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.673e-05/0.3633, allocations: 16.03 kB / 1.075 GB, free: 3.281 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.3635, allocations: 11.98 kB / 1.075 GB, free: 3.27 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.77e-05/0.3636, allocations: 23.91 kB / 1.075 GB, free: 3.246 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.3636, allocations: 12 kB / 1.075 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001788/0.3638, allocations: 174 kB / 1.075 GB, free: 3.062 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.31e-07/0.3638, allocations: 0 / 1.075 GB, free: 3.062 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004814/0.3643, allocations: 79.94 kB / 1.075 GB, free: 2.984 MB / 0.8419 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.0004808/0.3648, allocations: 183 kB / 1.076 GB, free: 2.805 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007153/0.3655, allocations: 296.2 kB / 1.076 GB, free: 2.504 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.3655, allocations: 0 / 1.076 GB, free: 2.504 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002761/0.3658, allocations: 108.2 kB / 1.076 GB, free: 2.398 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.3662, allocations: 56.45 kB / 1.076 GB, free: 2.344 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.3678, allocations: 0.6421 MB / 1.077 GB, free: 1.656 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.3681, allocations: 0.7407 MB / 1.077 GB, free: 0.8867 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.789e-05/0.3682, allocations: 31.38 kB / 1.077 GB, free: 0.8555 MB / 0.8419 GB Notification: Performance of SimCode: time 5.01e-07/0.3682, allocations: 0 / 1.077 GB, free: 0.8555 MB / 0.8419 GB Notification: Performance of Templates: time 0.5508/0.919, allocations: 3.827 MB / 1.081 GB, free: 21.57 MB / 0.8419 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