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.001359/0.001359, allocations: 106.6 kB / 15.99 MB, free: 6.359 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.001279/0.001279, allocations: 193.8 kB / 16.91 MB, free: 6.195 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.315/1.315, allocations: 222.9 MB / 240.6 MB, free: 15.42 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.432/2.432, allocations: 437 MB / 0.7107 GB, free: 4.711 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 68.16 kB / 0.8694 GB, free: 2.598 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3456, allocations: 151.6 MB / 1.017 GB, free: 11.05 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.004614/0.3502, allocations: 2.391 MB / 1.02 GB, free: 8.637 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001935/0.3522, allocations: 1.006 MB / 1.021 GB, free: 7.621 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002227/0.3524, allocations: 7.938 kB / 1.021 GB, free: 7.613 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0003015/0.3528, allocations: 43.75 kB / 1.021 GB, free: 7.57 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002829/0.3531, allocations: 71.41 kB / 1.021 GB, free: 7.5 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006046/0.3537, allocations: 147.7 kB / 1.021 GB, free: 7.355 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003819/0.3541, allocations: 278.8 kB / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.3543, allocations: 40.61 kB / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002264/0.3545, allocations: 115.4 kB / 1.021 GB, free: 6.926 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.3547, allocations: 111.5 kB / 1.022 GB, free: 6.816 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.344e-05/0.3547, allocations: 23.94 kB / 1.022 GB, free: 6.793 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003783/0.3551, allocations: 115.8 kB / 1.022 GB, free: 6.68 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.946e-05/0.3552, allocations: 43.84 kB / 1.022 GB, free: 6.637 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.3553, allocations: 115.5 kB / 1.022 GB, free: 6.523 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003503/0.3557, allocations: 231.4 kB / 1.022 GB, free: 6.297 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3557, allocations: 0 / 1.022 GB, free: 6.297 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3557, allocations: 0 / 1.022 GB, free: 6.297 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.796e-06/0.3557, allocations: 0 / 1.022 GB, free: 6.297 MB / 0.795 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.00119/0.3569, allocations: 0.5943 MB / 1.023 GB, free: 5.645 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.357, allocations: 12.88 kB / 1.023 GB, free: 5.633 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.3571, allocations: 28.66 kB / 1.023 GB, free: 5.605 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004871/0.3576, allocations: 287 kB / 1.023 GB, free: 5.289 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.819e-05/0.3576, allocations: 16.59 kB / 1.023 GB, free: 5.273 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.302e-05/0.3577, allocations: 16.38 kB / 1.023 GB, free: 5.258 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004619/0.3582, allocations: 209.3 kB / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.3582, allocations: 0 / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.573e-05/0.3582, allocations: 8 kB / 1.023 GB, free: 5.023 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.3582, allocations: 0 / 1.023 GB, free: 5.023 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003789/0.3586, allocations: 127.7 kB / 1.023 GB, free: 4.898 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.3598, allocations: 0.8644 MB / 1.024 GB, free: 3.965 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004965/0.3603, allocations: 203.9 kB / 1.024 GB, free: 3.738 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.3605, allocations: 86.59 kB / 1.024 GB, free: 3.645 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.3605, allocations: 0 / 1.024 GB, free: 3.645 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005149/0.3611, allocations: 212 kB / 1.025 GB, free: 3.418 MB / 0.795 GB Notification: Performance of pre-optimization done (n=23): time 1.923e-06/0.3611, allocations: 0 / 1.025 GB, free: 3.418 MB / 0.795 GB Notification: Performance of matching and sorting (n=23): time 0.000879/0.362, allocations: 349.1 kB / 1.025 GB, free: 3.07 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.117e-05/0.3621, allocations: 122.8 kB / 1.025 GB, free: 2.926 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002583/0.3623, allocations: 250.4 kB / 1.025 GB, free: 2.676 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.018e-05/0.3624, allocations: 37.7 kB / 1.025 GB, free: 2.633 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.3625, allocations: 137 kB / 1.026 GB, free: 2.496 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 6.259e-05/0.3626, allocations: 59.27 kB / 1.026 GB, free: 2.438 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.3627, allocations: 70.06 kB / 1.026 GB, free: 2.359 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0002172/0.3629, allocations: 346.8 kB / 1.026 GB, free: 2.012 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002219/0.3631, allocations: 80.7 kB / 1.026 GB, free: 1.934 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003584/0.3635, allocations: 259.4 kB / 1.026 GB, free: 1.602 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006744/0.3642, allocations: 388.4 kB / 1.027 GB, free: 1.133 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.3642, allocations: 8 kB / 1.027 GB, free: 1.125 MB / 0.795 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008065/0.365, allocations: 390.5 kB / 1.027 GB, free: 0.7305 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.347e-05/0.3651, allocations: 37.7 kB / 1.027 GB, free: 0.6875 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.3651, allocations: 11.98 kB / 1.027 GB, free: 0.6758 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.3651, allocations: 8.688 kB / 1.027 GB, free: 0.668 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.3653, allocations: 63.84 kB / 1.027 GB, free: 0.6055 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/0.3654, allocations: 15.94 kB / 1.027 GB, free: 0.5898 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002657/0.3656, allocations: 47.61 kB / 1.027 GB, free: 0.543 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.302e-05/0.3657, allocations: 23.98 kB / 1.027 GB, free: 0.5195 MB / 0.795 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.000159/0.3658, allocations: 158.3 kB / 1.027 GB, free: 368 kB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.33e-05/0.3659, allocations: 23.72 kB / 1.027 GB, free: 344 kB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.367e-05/0.366, allocations: 33.7 kB / 1.027 GB, free: 316 kB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.366, allocations: 4 kB / 1.027 GB, free: 312 kB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.366, allocations: 3.938 kB / 1.027 GB, free: 308 kB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.366, allocations: 3.984 kB / 1.027 GB, free: 304 kB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003554/0.3664, allocations: 261.4 kB / 1.028 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3664, allocations: 0 / 1.028 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.3665, allocations: 27.91 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3665, allocations: 0 / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.683e-05/0.3666, allocations: 4 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.3666, allocations: 7.984 kB / 1.028 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.3666, allocations: 7.938 kB / 1.028 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008484/0.3674, allocations: 414 kB / 1.028 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.542e-05/0.3675, allocations: 104.9 kB / 1.028 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.947e-05/0.3676, allocations: 8 kB / 1.028 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.3677, allocations: 19.97 kB / 1.028 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.092e-05/0.3678, allocations: 19.92 kB / 1.028 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.3679, allocations: 11.98 kB / 1.028 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001476/0.368, allocations: 166 kB / 1.028 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.368, allocations: 0 / 1.028 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004834/0.3685, allocations: 83.92 kB / 1.029 GB, free: 15.09 MB / 0.8106 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.0004094/0.3689, allocations: 186 kB / 1.029 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006327/0.3696, allocations: 305 kB / 1.029 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3696, allocations: 4 kB / 1.029 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002487/0.3698, allocations: 105.7 kB / 1.029 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.3702, allocations: 60.78 kB / 1.029 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.3717, allocations: 0.6929 MB / 1.03 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004486/0.3721, allocations: 0.7446 MB / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.405e-05/0.3722, allocations: 31.42 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of SimCode: time 1.433e-06/0.3722, allocations: 0 / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of Templates: time 0.007518/0.3798, allocations: 3.835 MB / 1.034 GB, free: 9.086 MB / 0.8106 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 -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