Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.327/2.327, allocations: 387.1 MB / 399.7 MB, free: 9.508 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.001701/0.001701, allocations: 184.8 kB / 492.3 MB, free: 0.6133 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.462/1.462, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.0009505/0.0009504, allocations: 91.16 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.979e-05/2.983e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2735, allocations: 142.3 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.198/1.471, allocations: 442.3 MB / 1.644 GB, free: 4.492 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003057/1.472, allocations: 110.5 kB / 1.644 GB, free: 4.43 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.706/4.177, allocations: 0.6636 GB / 2.308 GB, free: 248.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.302e-06/4.177, allocations: 3.828 kB / 2.308 GB, free: 248.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001551/4.178, allocations: 42.39 kB / 2.308 GB, free: 248.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.005287/4.183, allocations: 2.028 MB / 2.31 GB, free: 248 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/4.183, allocations: 11.5 kB / 2.31 GB, free: 248 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007632/4.184, allocations: 208.1 kB / 2.31 GB, free: 247.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004302/4.188, allocations: 2.078 MB / 2.312 GB, free: 247.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/4.188, allocations: 98.34 kB / 2.312 GB, free: 247.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002928/4.188, allocations: 143.9 kB / 2.313 GB, free: 247.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002339/4.191, allocations: 1.189 MB / 2.314 GB, free: 247.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/4.191, allocations: 3.781 kB / 2.314 GB, free: 247.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/4.191, allocations: 44.78 kB / 2.314 GB, free: 247.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-05/4.191, allocations: 27.91 kB / 2.314 GB, free: 247.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/4.193, allocations: 0.8963 MB / 2.315 GB, free: 247.3 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.01175/4.204, allocations: 6.965 MB / 2.322 GB, free: 244.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/4.207, allocations: 1.074 MB / 2.323 GB, free: 244.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005915/4.207, allocations: 453.9 kB / 2.323 GB, free: 244.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005122/4.208, allocations: 0.602 MB / 2.324 GB, free: 243.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006009/4.208, allocations: 437.9 kB / 2.324 GB, free: 243.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=78): time 3.076e-06/4.208, allocations: 2.844 kB / 2.324 GB, free: 243.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=82): time 0.004589/4.213, allocations: 2.287 MB / 2.326 GB, free: 243.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/4.213, allocations: 62.38 kB / 2.326 GB, free: 243.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001652/4.215, allocations: 1.236 MB / 2.327 GB, free: 243 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001623/4.215, allocations: 58.02 kB / 2.328 GB, free: 243 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005386/4.215, allocations: 0.6802 MB / 2.328 GB, free: 242.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002263/4.216, allocations: 296.5 kB / 2.329 GB, free: 242.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-05/4.216, allocations: 25.75 kB / 2.329 GB, free: 242.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.861e-05/4.216, allocations: 360.7 kB / 2.329 GB, free: 242.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008164/4.217, allocations: 0.5448 MB / 2.329 GB, free: 242.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009184/4.218, allocations: 0.8414 MB / 2.33 GB, free: 242 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009513/4.219, allocations: 0.6732 MB / 2.331 GB, free: 241.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/4.219, allocations: 0 / 2.331 GB, free: 241.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002552/4.221, allocations: 1.75 MB / 2.333 GB, free: 241.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004336/4.222, allocations: 2.31 MB / 2.335 GB, free: 239.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.055e-05/4.222, allocations: 6.688 kB / 2.335 GB, free: 239.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007006/4.222, allocations: 269.4 kB / 2.335 GB, free: 239.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/4.224, allocations: 263.5 kB / 2.335 GB, free: 239.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/4.225, allocations: 1.57 MB / 2.337 GB, free: 238.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002656/4.227, allocations: 164 kB / 2.337 GB, free: 238.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/4.227, allocations: 60.41 kB / 2.337 GB, free: 238.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/4.227, allocations: 3.344 kB / 2.337 GB, free: 238.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002304/4.23, allocations: 1.592 MB / 2.339 GB, free: 238.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/4.23, allocations: 7.75 kB / 2.339 GB, free: 238.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006217/4.23, allocations: 254.1 kB / 2.339 GB, free: 238.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/4.231, allocations: 255 kB / 2.339 GB, free: 238.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008133/4.232, allocations: 0.999 MB / 2.34 GB, free: 237.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002601/4.235, allocations: 164.2 kB / 2.34 GB, free: 237.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/4.235, allocations: 56.75 kB / 2.34 GB, free: 237.7 MB / 1.151 GB 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.0003796/4.235, allocations: 173 kB / 2.341 GB, free: 237.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002847/4.236, allocations: 157.1 kB / 2.341 GB, free: 237.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001827/4.238, allocations: 1.055 MB / 2.342 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/4.238, allocations: 11.53 kB / 2.342 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/4.238, allocations: 3.969 kB / 2.342 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001169/4.239, allocations: 0.9306 MB / 2.343 GB, free: 237.2 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.003925/4.243, allocations: 2.842 MB / 2.345 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/4.243, allocations: 3.875 kB / 2.345 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006431/4.243, allocations: 146.8 kB / 2.346 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002626/4.244, allocations: 124.2 kB / 2.346 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.077e-05/4.244, allocations: 27.8 kB / 2.346 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002908/4.247, allocations: 5.247 MB / 2.351 GB, free: 232.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/4.247, allocations: 0 / 2.351 GB, free: 232.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002206/4.249, allocations: 1.625 MB / 2.352 GB, free: 231.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000878/4.25, allocations: 368.8 kB / 2.353 GB, free: 231.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003878/4.25, allocations: 24.83 kB / 2.353 GB, free: 231.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/4.252, allocations: 90.47 kB / 2.353 GB, free: 231.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/4.252, allocations: 57.47 kB / 2.353 GB, free: 231.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.599e-05/4.252, allocations: 41.22 kB / 2.353 GB, free: 231.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001333/4.253, allocations: 0.9328 MB / 2.354 GB, free: 231.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.102e-06/4.253, allocations: 0 / 2.354 GB, free: 231.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003793/4.257, allocations: 1.139 MB / 2.355 GB, free: 231.4 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,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001696/4.259, allocations: 0.8183 MB / 2.356 GB, free: 231.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003487/4.262, allocations: 2.113 MB / 2.358 GB, free: 231.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/4.262, allocations: 0 / 2.358 GB, free: 231.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0009161/4.263, allocations: 0.8035 MB / 2.359 GB, free: 230.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00374/4.267, allocations: 0.7668 MB / 2.359 GB, free: 230.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005102/4.272, allocations: 2.987 MB / 2.362 GB, free: 230 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00074/4.273, allocations: 1.313 MB / 2.364 GB, free: 229.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.00239/4.275, allocations: 0.526 MB / 2.364 GB, free: 229.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003057/4.275, allocations: 102.9 kB / 2.364 GB, free: 229.2 MB / 1.151 GB Notification: Performance of SimCode: time 8.52e-07/4.276, allocations: 3.75 kB / 2.364 GB, free: 229.2 MB / 1.151 GB Notification: Performance of Templates: time 0.05935/4.335, allocations: 42.14 MB / 2.405 GB, free: 221.2 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches