Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.478/1.478, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001042/0.001042, allocations: 177.5 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 205.4 MB / 0.5775 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008916/0.0008915, allocations: 90.12 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003152/0.0003152, allocations: 11.81 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2013, allocations: 106.3 MB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8446/1.046, allocations: 422.3 MB / 1.313 GB, free: 10.44 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/1.046, allocations: 111 kB / 1.313 GB, free: 10.38 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 2.064/3.11, allocations: 0.6323 GB / 1.945 GB, free: 145.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.934e-06/3.11, allocations: 0 / 1.945 GB, free: 145.5 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002385/3.11, allocations: 42.67 kB / 1.945 GB, free: 145.5 MB / 0.8855 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.007052/3.117, allocations: 2.335 MB / 1.947 GB, free: 143.1 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/3.118, allocations: 10.31 kB / 1.947 GB, free: 143.1 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/3.119, allocations: 205.7 kB / 1.948 GB, free: 142.9 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004996/3.124, allocations: 2.065 MB / 1.95 GB, free: 140.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/3.124, allocations: 98.14 kB / 1.95 GB, free: 140.7 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005208/3.124, allocations: 146.2 kB / 1.95 GB, free: 140.6 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002405/3.127, allocations: 1.204 MB / 1.951 GB, free: 139.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.099e-05/3.127, allocations: 3.5 kB / 1.951 GB, free: 139.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001212/3.127, allocations: 44 kB / 1.951 GB, free: 139.3 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.281e-05/3.127, allocations: 28 kB / 1.951 GB, free: 139.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/3.129, allocations: 0.9178 MB / 1.952 GB, free: 138.3 MB / 0.8855 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01148/3.14, allocations: 6.944 MB / 1.959 GB, free: 131.1 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/3.143, allocations: 1.087 MB / 1.96 GB, free: 130 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005112/3.143, allocations: 0.6024 MB / 1.96 GB, free: 129.3 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006237/3.144, allocations: 428.3 kB / 1.961 GB, free: 128.9 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=78): time 2.715e-06/3.144, allocations: 4 kB / 1.961 GB, free: 128.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=82): time 0.005823/3.15, allocations: 2.925 MB / 1.964 GB, free: 125.8 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/3.15, allocations: 63.19 kB / 1.964 GB, free: 125.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001975/3.152, allocations: 1.248 MB / 1.965 GB, free: 124.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002804/3.152, allocations: 53.7 kB / 1.965 GB, free: 124.4 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007191/3.153, allocations: 0.6833 MB / 1.966 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.00025/3.153, allocations: 299.1 kB / 1.966 GB, free: 123.5 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/3.153, allocations: 24 kB / 1.966 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.179e-05/3.153, allocations: 360.9 kB / 1.966 GB, free: 123.1 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008748/3.154, allocations: 0.5544 MB / 1.967 GB, free: 122.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/3.155, allocations: 0.8633 MB / 1.968 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/3.156, allocations: 0.6812 MB / 1.968 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/3.156, allocations: 0 / 1.968 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002793/3.159, allocations: 1.772 MB / 1.97 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004124/3.159, allocations: 2.31 MB / 1.972 GB, free: 116.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.336e-05/3.159, allocations: 11.95 kB / 1.972 GB, free: 116.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006741/3.16, allocations: 254 kB / 1.973 GB, free: 116.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/3.161, allocations: 263.6 kB / 1.973 GB, free: 116.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001071/3.163, allocations: 1.587 MB / 1.974 GB, free: 114.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002804/3.165, allocations: 156.4 kB / 1.974 GB, free: 114.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001854/3.166, allocations: 59.97 kB / 1.975 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/3.166, allocations: 4 kB / 1.975 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002458/3.168, allocations: 1.605 MB / 1.976 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.158e-05/3.168, allocations: 8 kB / 1.976 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005587/3.169, allocations: 257.1 kB / 1.976 GB, free: 112.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/3.17, allocations: 259.6 kB / 1.977 GB, free: 112.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008026/3.171, allocations: 0.9818 MB / 1.978 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002715/3.173, allocations: 155.5 kB / 1.978 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001588/3.174, allocations: 63.97 kB / 1.978 GB, free: 111 MB / 0.8855 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 () * Number of clocked 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 {2 26} Notification: Performance of prepare postOptimizeDAE: time 0.001002/3.175, allocations: 0.4951 MB / 1.978 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004209/3.175, allocations: 154.1 kB / 1.978 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001861/3.177, allocations: 1.07 MB / 1.979 GB, free: 109.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/3.177, allocations: 8 kB / 1.979 GB, free: 109.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/3.177, allocations: 4 kB / 1.979 GB, free: 109.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001136/3.178, allocations: 0.9452 MB / 1.98 GB, free: 108.2 MB / 0.8855 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.004282/3.182, allocations: 2.839 MB / 1.983 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/3.182, allocations: 4 kB / 1.983 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006932/3.183, allocations: 147.1 kB / 1.983 GB, free: 105.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002748/3.183, allocations: 118.5 kB / 1.983 GB, free: 105 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.312e-05/3.183, allocations: 27.98 kB / 1.983 GB, free: 105 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002867/3.186, allocations: 5.291 MB / 1.989 GB, free: 99.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/3.186, allocations: 0 / 1.989 GB, free: 99.3 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002222/3.189, allocations: 1.642 MB / 1.99 GB, free: 97.59 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009313/3.19, allocations: 367 kB / 1.991 GB, free: 97.21 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004025/3.19, allocations: 31.98 kB / 1.991 GB, free: 97.18 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/3.192, allocations: 95.69 kB / 1.991 GB, free: 97.09 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/3.192, allocations: 60.52 kB / 1.991 GB, free: 97.03 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.793e-05/3.192, allocations: 27.98 kB / 1.991 GB, free: 97 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001723/3.194, allocations: 0.9466 MB / 1.992 GB, free: 96.06 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.6e-07/3.194, allocations: 0 / 1.992 GB, free: 96.06 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.004499/3.198, allocations: 1.138 MB / 1.993 GB, free: 94.92 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (seg.pipFil.vol1.dynBal.U,seg.pipFil.vol2.dynBal.U,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) * Number of clocked states: 0 () * 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.0018/3.2, allocations: 0.8102 MB / 1.994 GB, free: 94.2 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.004188/3.204, allocations: 2.105 MB / 1.996 GB, free: 92.09 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/3.204, allocations: 5.312 kB / 1.996 GB, free: 92.09 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001028/3.205, allocations: 0.7926 MB / 1.996 GB, free: 91.25 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003721/3.209, allocations: 0.7642 MB / 1.997 GB, free: 90.51 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00599/3.215, allocations: 4.179 MB / 2.001 GB, free: 86.39 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001111/3.216, allocations: 1.305 MB / 2.003 GB, free: 85.06 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.00236/3.218, allocations: 451 kB / 2.003 GB, free: 84.63 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005833/3.219, allocations: 119.4 kB / 2.003 GB, free: 84.52 MB / 0.8855 GB Notification: Performance of SimCode: time 1.723e-06/3.219, allocations: 0 / 2.003 GB, free: 84.52 MB / 0.8855 GB Notification: Performance of Templates: time 0.05372/3.273, allocations: 39.26 MB / 2.041 GB, free: 45.66 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches