Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|seg.port_a1.m_flow|seg.TBouCon.port.T|seg.soi.T.1.|seg.soi.T.2.|seg.soi.T.3.|seg.soi.T.4.|seg.soi.T.5.|seg.soi.T.6.|seg.soi.T.7.|seg.soi.T.8.|seg.soi.T.9.",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|seg.port_a1.m_flow|seg.TBouCon.port.T|seg.soi.T.1.|seg.soi.T.2.|seg.soi.T.3.|seg.soi.T.4.|seg.soi.T.5.|seg.soi.T.6.|seg.soi.T.7.|seg.soi.T.8.|seg.soi.T.9.",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.395/2.395, allocations: 390.5 MB / 398 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 179.7 kB / 491.2 MB, free: 1.613 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.588/1.588, allocations: 221.5 MB / 0.7868 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 95.52 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.996e-05/1.997e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2795, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.164/1.444, allocations: 442.5 MB / 1.644 GB, free: 4.812 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/1.444, allocations: 105.4 kB / 1.645 GB, free: 4.758 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.863/4.308, allocations: 0.6605 GB / 2.305 GB, free: 250.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.765e-06/4.308, allocations: 0 / 2.305 GB, free: 250.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003104/4.308, allocations: 46.66 kB / 2.305 GB, free: 250.8 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.00777/4.316, allocations: 2.037 MB / 2.307 GB, free: 250.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/4.316, allocations: 9.656 kB / 2.307 GB, free: 250.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001456/4.317, allocations: 206.6 kB / 2.307 GB, free: 250 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006196/4.323, allocations: 2.07 MB / 2.309 GB, free: 249.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.671e-05/4.324, allocations: 38.8 kB / 2.309 GB, free: 249.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007447/4.324, allocations: 89.31 kB / 2.309 GB, free: 249.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002548/4.327, allocations: 0.8339 MB / 2.31 GB, free: 249.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002642/4.33, allocations: 1.034 MB / 2.311 GB, free: 249.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.167e-05/4.33, allocations: 2.844 kB / 2.311 GB, free: 249.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000163/4.33, allocations: 3.938 kB / 2.311 GB, free: 249.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.26e-05/4.33, allocations: 30.5 kB / 2.311 GB, free: 249.4 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01186/4.342, allocations: 6.728 MB / 2.318 GB, free: 246.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002221/4.344, allocations: 1.03 MB / 2.319 GB, free: 246.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005762/4.345, allocations: 422.3 kB / 2.319 GB, free: 246.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005502/4.345, allocations: 0.6053 MB / 2.32 GB, free: 246.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000607/4.346, allocations: 413.6 kB / 2.32 GB, free: 246.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=78): time 2.946e-06/4.346, allocations: 0 / 2.32 GB, free: 246.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=82): time 0.00584/4.352, allocations: 2.237 MB / 2.322 GB, free: 245.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/4.352, allocations: 63.97 kB / 2.322 GB, free: 245.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001565/4.353, allocations: 1.064 MB / 2.323 GB, free: 245.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002244/4.354, allocations: 33.05 kB / 2.324 GB, free: 245.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000601/4.354, allocations: 0.6838 MB / 2.324 GB, free: 244.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002651/4.354, allocations: 292.5 kB / 2.324 GB, free: 244.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.337e-05/4.354, allocations: 0 / 2.324 GB, free: 244.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.809e-05/4.355, allocations: 356.4 kB / 2.325 GB, free: 244.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007019/4.355, allocations: 0.5186 MB / 2.325 GB, free: 244.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000847/4.356, allocations: 0.8031 MB / 2.326 GB, free: 244.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/4.357, allocations: 0.6944 MB / 2.327 GB, free: 244.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/4.357, allocations: 3.812 kB / 2.327 GB, free: 244.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002957/4.36, allocations: 1.664 MB / 2.328 GB, free: 244 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006129/4.361, allocations: 2.292 MB / 2.331 GB, free: 241.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.544e-05/4.361, allocations: 15.11 kB / 2.331 GB, free: 241.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006504/4.362, allocations: 227.1 kB / 2.331 GB, free: 241.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/4.363, allocations: 271.2 kB / 2.331 GB, free: 241.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/4.364, allocations: 1.614 MB / 2.333 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002721/4.367, allocations: 129.9 kB / 2.333 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/4.367, allocations: 56.05 kB / 2.333 GB, free: 240.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/4.367, allocations: 3.281 kB / 2.333 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002577/4.37, allocations: 1.497 MB / 2.334 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/4.37, allocations: 7.219 kB / 2.334 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004797/4.37, allocations: 217.7 kB / 2.335 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/4.371, allocations: 264.6 kB / 2.335 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009051/4.372, allocations: 1.016 MB / 2.336 GB, free: 239.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002522/4.375, allocations: 119.6 kB / 2.336 GB, free: 239.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/4.375, allocations: 59.28 kB / 2.336 GB, free: 239.9 MB / 1.151 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: seg.pipFil.Rgg.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow rate from port_a -> port_b" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.seg.TBouCon.iSam,seg.TBouCon.iSam,$PRE.seg.TBouCon.UOld,seg.TBouCon.UOld,$PRE.seg.TBouCon.QAve_flow,seg.TBouCon.QAve_flow,$whenCondition1,$PRE.seg.TBouCon.port.T,seg.TBouCon.port.T) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 25} Notification: Performance of prepare postOptimizeDAE: time 0.0004006/4.375, allocations: 139 kB / 2.336 GB, free: 239.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002641/4.376, allocations: 136.7 kB / 2.336 GB, free: 239.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001987/4.378, allocations: 0.9967 MB / 2.337 GB, free: 239.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/4.378, allocations: 7.406 kB / 2.337 GB, free: 239.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.968e-06/4.378, allocations: 3.625 kB / 2.337 GB, free: 239.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001351/4.379, allocations: 0.9138 MB / 2.338 GB, free: 239.4 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004879/4.384, allocations: 2.673 MB / 2.341 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/4.384, allocations: 0 / 2.341 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006894/4.385, allocations: 150.8 kB / 2.341 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002692/4.385, allocations: 117.7 kB / 2.341 GB, free: 238.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.979e-05/4.385, allocations: 19.62 kB / 2.341 GB, free: 238.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00299/4.388, allocations: 5.117 MB / 2.346 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/4.388, allocations: 3.969 kB / 2.346 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002467/4.391, allocations: 1.568 MB / 2.348 GB, free: 234.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008639/4.391, allocations: 356.1 kB / 2.348 GB, free: 234 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001693/4.392, allocations: 17.45 kB / 2.348 GB, free: 234 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/4.393, allocations: 80.84 kB / 2.348 GB, free: 234 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/4.393, allocations: 56.23 kB / 2.348 GB, free: 234 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-05/4.393, allocations: 34.12 kB / 2.348 GB, free: 234 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001243/4.394, allocations: 0.7849 MB / 2.349 GB, free: 233.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.6e-07/4.394, allocations: 0 / 2.349 GB, free: 233.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003895/4.398, allocations: 1.076 MB / 2.35 GB, free: 233.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (seg.port_b1.h_outflow,seg.port_a2.h_outflow,seg.pipFil.capFil1.T,seg.pipFil.capFil2.T,seg.soi.T[1],seg.soi.T[2],seg.soi.T[3],seg.soi.T[4],seg.soi.T[5],seg.soi.T[6],seg.soi.T[7],seg.soi.T[8],seg.soi.T[9],seg.TBouCon.U) * Number of discrete variables: 5 ($whenCondition1,seg.TBouCon.QAve_flow,seg.TBouCon.port.T,seg.TBouCon.UOld,seg.TBouCon.iSam) * Number of discrete states: 2 (seg.TBouCon.iSam,seg.TBouCon.UOld) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00176/4.4, allocations: 0.8207 MB / 2.351 GB, free: 233.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003532/4.404, allocations: 2.02 MB / 2.353 GB, free: 233.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/4.404, allocations: 3.906 kB / 2.353 GB, free: 233.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008971/4.404, allocations: 0.748 MB / 2.353 GB, free: 233.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00342/4.408, allocations: 0.6259 MB / 2.354 GB, free: 233.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004888/4.413, allocations: 2.92 MB / 2.357 GB, free: 232.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007511/4.414, allocations: 1.321 MB / 2.358 GB, free: 231.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.00219/4.416, allocations: 499.8 kB / 2.359 GB, free: 231.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003153/4.416, allocations: 95.47 kB / 2.359 GB, free: 231.7 MB / 1.151 GB Notification: Performance of SimCode: time 5.51e-07/4.416, allocations: 5.844 kB / 2.359 GB, free: 231.7 MB / 1.151 GB Notification: Performance of Templates: time 0.05557/4.472, allocations: 34.54 MB / 2.392 GB, free: 227.7 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.csv","../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches