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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001259/0.001259, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 200 kB / 16.79 MB, free: 6.828 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.386/1.386, allocations: 222.9 MB / 240.5 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.832/2.832, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 70.38 kB / 0.8991 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3452, allocations: 157.4 MB / 1.053 GB, free: 8.285 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.004433/0.3496, allocations: 2.403 MB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001884/0.3516, allocations: 1.017 MB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002547/0.3519, allocations: 7.938 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003147/0.3522, allocations: 39.75 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003005/0.3526, allocations: 71.41 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005981/0.3532, allocations: 143.7 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003485/0.3536, allocations: 270.8 kB / 1.057 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.3537, allocations: 32.61 kB / 1.057 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000238/0.354, allocations: 103.5 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.3542, allocations: 119.5 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.092e-05/0.3542, allocations: 11.94 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003587/0.3546, allocations: 99.91 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.699e-05/0.3546, allocations: 35.84 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.3548, allocations: 107.4 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003814/0.3552, allocations: 235.4 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3552, allocations: 0 / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3552, allocations: 0 / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.3552, allocations: 0 / 1.057 GB, free: 3.59 MB / 0.8106 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.001301/0.3565, allocations: 0.5904 MB / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.3566, allocations: 15.97 kB / 1.058 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.3567, allocations: 24.66 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005264/0.3572, allocations: 291 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.3573, allocations: 12.55 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.056e-05/0.3573, allocations: 28.36 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004618/0.3578, allocations: 204.6 kB / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.3578, allocations: 3.938 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.395e-05/0.3579, allocations: 7.922 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.3579, allocations: 4 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003703/0.3583, allocations: 107.8 kB / 1.059 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.3595, allocations: 0.8683 MB / 1.059 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005304/0.3601, allocations: 207.9 kB / 1.06 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.3603, allocations: 74.58 kB / 1.06 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.3604, allocations: 4 kB / 1.06 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004798/0.3608, allocations: 212.6 kB / 1.06 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=23): time 3.316e-06/0.3609, allocations: 0 / 1.06 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.0009479/0.3618, allocations: 353.1 kB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.067e-05/0.3619, allocations: 114.8 kB / 1.06 GB, free: 236 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002721/0.3622, allocations: 250.6 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.362e-05/0.3622, allocations: 37.7 kB / 1.061 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3624, allocations: 140.6 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.898e-05/0.3624, allocations: 59.25 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.3626, allocations: 78.06 kB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.3627, allocations: 338.8 kB / 1.061 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002406/0.363, allocations: 84.75 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003325/0.3633, allocations: 247.2 kB / 1.062 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005914/0.3639, allocations: 393.1 kB / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.3639, allocations: 0 / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008063/0.3647, allocations: 406.3 kB / 1.062 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.808e-05/0.3648, allocations: 33.7 kB / 1.062 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.3648, allocations: 8.719 kB / 1.062 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.472e-05/0.3648, allocations: 8 kB / 1.062 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002293/0.3651, allocations: 71.84 kB / 1.062 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.292e-05/0.3651, allocations: 19.86 kB / 1.062 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002838/0.3654, allocations: 43.61 kB / 1.062 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.627e-05/0.3654, allocations: 24 kB / 1.062 GB, free: 13.82 MB / 0.8262 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.0001754/0.3656, allocations: 156 kB / 1.063 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.3657, allocations: 35.7 kB / 1.063 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.218e-05/0.3658, allocations: 21.66 kB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.3658, allocations: 7.984 kB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.577e-06/0.3658, allocations: 3.938 kB / 1.063 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.3658, allocations: 4 kB / 1.063 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003224/0.3661, allocations: 265.4 kB / 1.063 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3661, allocations: 0 / 1.063 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.3663, allocations: 15.98 kB / 1.063 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.3663, allocations: 4 kB / 1.063 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.3663, allocations: 11.98 kB / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.3663, allocations: 4 kB / 1.063 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.3663, allocations: 7.938 kB / 1.063 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008789/0.3672, allocations: 414.3 kB / 1.063 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.357e-05/0.3673, allocations: 96.83 kB / 1.063 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/0.3674, allocations: 16.03 kB / 1.063 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.3676, allocations: 15.98 kB / 1.063 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.984e-05/0.3677, allocations: 27.91 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/0.3677, allocations: 11.98 kB / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001604/0.3679, allocations: 166 kB / 1.064 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3679, allocations: 0 / 1.064 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004603/0.3683, allocations: 83.88 kB / 1.064 GB, free: 12.37 MB / 0.8262 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.0004291/0.3688, allocations: 165.5 kB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006541/0.3694, allocations: 291.2 kB / 1.064 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3694, allocations: 4 kB / 1.064 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002778/0.3697, allocations: 109.2 kB / 1.064 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004337/0.3702, allocations: 58.08 kB / 1.064 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.3715, allocations: 0.6908 MB / 1.065 GB, free: 11 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.3718, allocations: 0.741 MB / 1.066 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.532e-05/0.3719, allocations: 23.44 kB / 1.066 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of SimCode: time 1.794e-06/0.3719, allocations: 0 / 1.066 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of Templates: time 0.007374/0.3793, allocations: 3.838 MB / 1.07 GB, free: 6.406 MB / 0.8262 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