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.224/2.224, allocations: 390.3 MB / 402.8 MB, free: 6.719 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.001118/0.001118, allocations: 184.8 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 221.3 MB / 0.7915 GB, free: 5.406 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.0009877/0.000988, allocations: 91.94 kB / 0.9318 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.729e-05/2.74e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2548, allocations: 143 MB / 1.219 GB, free: 13.53 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.134/1.388, allocations: 443.1 MB / 1.652 GB, free: 7.328 MB / 1.104 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003295/1.389, allocations: 107.9 kB / 1.652 GB, free: 7.223 MB / 1.104 GB Notification: Performance of FrontEnd - DAE generated: time 2.837/4.226, allocations: 0.6637 GB / 2.315 GB, free: 223.8 MB / 1.135 GB Notification: Performance of FrontEnd: time 2.184e-06/4.226, allocations: 3.25 kB / 2.315 GB, free: 223.8 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.0003048/4.226, allocations: 46.61 kB / 2.315 GB, free: 223.8 MB / 1.135 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.007988/4.234, allocations: 2.028 MB / 2.317 GB, free: 222.4 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/4.234, allocations: 9.719 kB / 2.317 GB, free: 222.4 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001426/4.236, allocations: 212.9 kB / 2.318 GB, free: 222.3 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005948/4.242, allocations: 2.077 MB / 2.32 GB, free: 220.9 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/4.242, allocations: 96.69 kB / 2.32 GB, free: 220.8 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000751/4.243, allocations: 143.6 kB / 2.32 GB, free: 220.8 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003321/4.246, allocations: 1.185 MB / 2.321 GB, free: 220.1 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.388e-05/4.246, allocations: 2.875 kB / 2.321 GB, free: 220.1 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001345/4.246, allocations: 46.81 kB / 2.321 GB, free: 220 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.024e-05/4.246, allocations: 34.38 kB / 2.321 GB, free: 220 MB / 1.135 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/4.248, allocations: 0.887 MB / 2.322 GB, free: 219.6 MB / 1.135 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.01149/4.259, allocations: 6.959 MB / 2.329 GB, free: 213.9 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/4.262, allocations: 1.07 MB / 2.33 GB, free: 213.4 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006129/4.262, allocations: 455.1 kB / 2.33 GB, free: 213.2 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005408/4.263, allocations: 0.597 MB / 2.331 GB, free: 212.5 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006851/4.264, allocations: 442.9 kB / 2.331 GB, free: 212.3 MB / 1.135 GB Notification: Performance of pre-optimization done (n=78): time 2.735e-06/4.264, allocations: 0 / 2.331 GB, free: 212.3 MB / 1.135 GB Notification: Performance of matching and sorting (n=82): time 0.005205/4.269, allocations: 2.279 MB / 2.333 GB, free: 210.1 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/4.269, allocations: 74.83 kB / 2.333 GB, free: 210 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00182/4.271, allocations: 1.24 MB / 2.335 GB, free: 208.8 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.0002273/4.271, allocations: 53.7 kB / 2.335 GB, free: 208.7 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006387/4.272, allocations: 0.6855 MB / 2.335 GB, free: 208 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002774/4.272, allocations: 296.8 kB / 2.336 GB, free: 207.7 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.363e-05/4.272, allocations: 24 kB / 2.336 GB, free: 207.7 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0001119/4.272, allocations: 361.9 kB / 2.336 GB, free: 207.4 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008333/4.273, allocations: 0.5428 MB / 2.337 GB, free: 206.8 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009271/4.274, allocations: 0.8407 MB / 2.337 GB, free: 205.9 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009109/4.275, allocations: 0.6702 MB / 2.338 GB, free: 205.2 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/4.275, allocations: 4 kB / 2.338 GB, free: 205.2 MB / 1.135 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002676/4.277, allocations: 1.752 MB / 2.34 GB, free: 203.5 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005858/4.278, allocations: 2.308 MB / 2.342 GB, free: 201 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.954e-05/4.278, allocations: 8 kB / 2.342 GB, free: 201 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008154/4.279, allocations: 266.4 kB / 2.342 GB, free: 200.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/4.28, allocations: 271.3 kB / 2.343 GB, free: 200.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001349/4.282, allocations: 1.579 MB / 2.344 GB, free: 198.9 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003138/4.285, allocations: 162.5 kB / 2.344 GB, free: 198.7 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001526/4.285, allocations: 59.97 kB / 2.344 GB, free: 198.7 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/4.285, allocations: 6.031 kB / 2.344 GB, free: 198.7 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002709/4.288, allocations: 1.585 MB / 2.346 GB, free: 197.1 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/4.288, allocations: 11.98 kB / 2.346 GB, free: 197.1 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000619/4.288, allocations: 255.9 kB / 2.346 GB, free: 196.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/4.289, allocations: 255.6 kB / 2.346 GB, free: 196.6 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008923/4.29, allocations: 0.9931 MB / 2.347 GB, free: 195.5 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00271/4.293, allocations: 156.7 kB / 2.347 GB, free: 195.4 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/4.293, allocations: 59.97 kB / 2.348 GB, free: 195.3 MB / 1.135 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.0004103/4.294, allocations: 178.3 kB / 2.348 GB, free: 195.2 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003224/4.294, allocations: 150.1 kB / 2.348 GB, free: 195 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002005/4.296, allocations: 1.059 MB / 2.349 GB, free: 193.9 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.701e-05/4.296, allocations: 8 kB / 2.349 GB, free: 193.9 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.978e-06/4.296, allocations: 4 kB / 2.349 GB, free: 193.9 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001195/4.297, allocations: 0.9352 MB / 2.35 GB, free: 193 MB / 1.135 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.004166/4.301, allocations: 2.848 MB / 2.353 GB, free: 190 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/4.301, allocations: 3.953 kB / 2.353 GB, free: 190 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006416/4.302, allocations: 147.8 kB / 2.353 GB, free: 189.9 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002679/4.302, allocations: 117.5 kB / 2.353 GB, free: 189.8 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.545e-05/4.302, allocations: 31.98 kB / 2.353 GB, free: 189.7 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002985/4.305, allocations: 5.244 MB / 2.358 GB, free: 184.1 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/4.305, allocations: 4.031 kB / 2.358 GB, free: 184.1 MB / 1.135 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002181/4.308, allocations: 1.625 MB / 2.36 GB, free: 182.4 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000859/4.308, allocations: 371 kB / 2.36 GB, free: 182 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001703/4.309, allocations: 23.98 kB / 2.36 GB, free: 182 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/4.31, allocations: 94.72 kB / 2.36 GB, free: 181.9 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/4.31, allocations: 56.7 kB / 2.36 GB, free: 181.9 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.013e-05/4.31, allocations: 27.98 kB / 2.36 GB, free: 181.8 MB / 1.135 GB Notification: Performance of sorting global known variables: time 0.001377/4.311, allocations: 0.9419 MB / 2.361 GB, free: 180.9 MB / 1.135 GB Notification: Performance of sort global known variables: time 1.814e-06/4.311, allocations: 0 / 2.361 GB, free: 180.9 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.003526/4.315, allocations: 1.139 MB / 2.362 GB, free: 179.8 MB / 1.135 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.001729/4.317, allocations: 0.8195 MB / 2.363 GB, free: 179.1 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.003823/4.321, allocations: 2.134 MB / 2.365 GB, free: 177 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/4.321, allocations: 7.938 kB / 2.365 GB, free: 177 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.001007/4.322, allocations: 0.7757 MB / 2.366 GB, free: 176.1 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003785/4.325, allocations: 0.7601 MB / 2.367 GB, free: 175.4 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005004/4.33, allocations: 2.987 MB / 2.369 GB, free: 172.7 MB / 1.135 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006642/4.331, allocations: 1.312 MB / 2.371 GB, free: 171.4 MB / 1.135 GB Notification: Performance of simCode: alias equations: time 0.002343/4.333, allocations: 0.5325 MB / 2.371 GB, free: 170.9 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/4.334, allocations: 103.4 kB / 2.371 GB, free: 170.8 MB / 1.135 GB Notification: Performance of SimCode: time 1.363e-06/4.334, allocations: 0 / 2.371 GB, free: 170.8 MB / 1.135 GB Notification: Performance of Templates: time 0.06328/4.397, allocations: 42.14 MB / 2.413 GB, free: 129.6 MB / 1.135 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