Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.346/2.346, allocations: 251.1 MB / 266.7 MB, free: 11.65 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.001454/0.001454, allocations: 180.7 kB / 326.2 MB, free: 2.871 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.426/2.426, allocations: 205.4 MB / 0.5772 GB, free: 20.78 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.000982/0.0009815, allocations: 91.36 kB / 0.6817 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004781/0.0004783, allocations: 11.81 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2168, allocations: 106.3 MB / 0.8995 GB, free: 65.58 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.26/1.477, allocations: 422.2 MB / 1.312 GB, free: 13.36 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004453/1.477, allocations: 123.8 kB / 1.312 GB, free: 13.29 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.49/4.967, allocations: 0.6285 GB / 1.94 GB, free: 152.9 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.186e-06/4.967, allocations: 3.25 kB / 1.94 GB, free: 152.9 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.000323/4.967, allocations: 39.44 kB / 1.94 GB, free: 152.8 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.01246/4.98, allocations: 2.339 MB / 1.943 GB, free: 150.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/4.98, allocations: 10.97 kB / 1.943 GB, free: 150.4 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001565/4.981, allocations: 210.6 kB / 1.943 GB, free: 150.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009031/4.99, allocations: 1.992 MB / 1.945 GB, free: 148.2 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001569/4.991, allocations: 97.44 kB / 1.945 GB, free: 148.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006138/4.991, allocations: 144 kB / 1.945 GB, free: 148 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00409/4.995, allocations: 1.207 MB / 1.946 GB, free: 146.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.082e-05/4.996, allocations: 3.938 kB / 1.946 GB, free: 146.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000223/4.996, allocations: 44 kB / 1.946 GB, free: 146.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.598e-05/4.996, allocations: 31.94 kB / 1.946 GB, free: 146.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003982/5, allocations: 0.9178 MB / 1.947 GB, free: 145.7 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.02555/5.025, allocations: 6.916 MB / 1.954 GB, free: 138.5 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005382/5.031, allocations: 1.081 MB / 1.955 GB, free: 137.5 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001179/5.032, allocations: 462.8 kB / 1.955 GB, free: 137 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007693/5.033, allocations: 0.5958 MB / 1.956 GB, free: 136.3 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001063/5.034, allocations: 443.1 kB / 1.956 GB, free: 135.8 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=78): time 4.258e-06/5.034, allocations: 0 / 1.956 GB, free: 135.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=82): time 0.009488/5.044, allocations: 2.919 MB / 1.959 GB, free: 132.8 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/5.044, allocations: 60.06 kB / 1.959 GB, free: 132.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002643/5.046, allocations: 1.365 MB / 1.961 GB, free: 131.4 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0004614/5.047, allocations: 49.7 kB / 1.961 GB, free: 131.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008516/5.048, allocations: 0.687 MB / 1.961 GB, free: 130.6 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004706/5.048, allocations: 295.3 kB / 1.962 GB, free: 130.3 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/5.048, allocations: 24 kB / 1.962 GB, free: 130.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001131/5.048, allocations: 365.1 kB / 1.962 GB, free: 130 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001498/5.05, allocations: 0.5583 MB / 1.963 GB, free: 129.4 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001737/5.052, allocations: 0.87 MB / 1.963 GB, free: 128.4 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001873/5.054, allocations: 0.6753 MB / 1.964 GB, free: 127.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/5.054, allocations: 4 kB / 1.964 GB, free: 127.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004975/5.059, allocations: 1.767 MB / 1.966 GB, free: 126 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001502/5.059, allocations: 261.6 kB / 1.966 GB, free: 125.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.157e-05/5.059, allocations: 8 kB / 1.966 GB, free: 125.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/5.06, allocations: 264.1 kB / 1.966 GB, free: 125.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002848/5.063, allocations: 267.6 kB / 1.967 GB, free: 125.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001797/5.065, allocations: 1.585 MB / 1.968 GB, free: 123.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004915/5.07, allocations: 157.1 kB / 1.968 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004473/5.07, allocations: 59.97 kB / 1.968 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/5.07, allocations: 5.406 kB / 1.968 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004187/5.074, allocations: 1.611 MB / 1.97 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.983e-05/5.074, allocations: 6.906 kB / 1.97 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000947/5.075, allocations: 248.9 kB / 1.97 GB, free: 121.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002428/5.078, allocations: 262.8 kB / 1.97 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/5.079, allocations: 0.9933 MB / 1.971 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004567/5.084, allocations: 152.5 kB / 1.972 GB, free: 120 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002138/5.084, allocations: 59.97 kB / 1.972 GB, free: 120 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 {3 25} Notification: Performance of prepare postOptimizeDAE: time 0.001282/5.085, allocations: 0.497 MB / 1.972 GB, free: 119.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004248/5.086, allocations: 146.1 kB / 1.972 GB, free: 119.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002684/5.088, allocations: 1.061 MB / 1.973 GB, free: 118.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/5.089, allocations: 8 kB / 1.973 GB, free: 118.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/5.089, allocations: 4 kB / 1.973 GB, free: 118.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002001/5.091, allocations: 0.9577 MB / 1.974 GB, free: 117.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.00656/5.097, allocations: 2.812 MB / 1.977 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/5.097, allocations: 6.812 kB / 1.977 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/5.099, allocations: 143.7 kB / 1.977 GB, free: 114.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004838/5.099, allocations: 114.5 kB / 1.977 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001312/5.099, allocations: 39.08 kB / 1.977 GB, free: 114 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004462/5.104, allocations: 5.263 MB / 1.982 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/5.104, allocations: 0 / 1.982 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003697/5.108, allocations: 1.595 MB / 1.984 GB, free: 106.7 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001243/5.109, allocations: 363 kB / 1.984 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00038/5.109, allocations: 24 kB / 1.984 GB, free: 106.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002642/5.112, allocations: 93.56 kB / 1.984 GB, free: 106.3 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/5.112, allocations: 60.52 kB / 1.985 GB, free: 106.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/5.112, allocations: 34.09 kB / 1.985 GB, free: 106.2 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.002/5.114, allocations: 0.9075 MB / 1.985 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of sort global known variables: time 6.31e-07/5.114, allocations: 0 / 1.985 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.005714/5.12, allocations: 1.121 MB / 1.987 GB, free: 104.1 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.002266/5.122, allocations: 0.7888 MB / 1.987 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0064/5.129, allocations: 2.108 MB / 1.989 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/5.129, allocations: 4.188 kB / 1.989 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001581/5.13, allocations: 0.7991 MB / 1.99 GB, free: 100.5 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007234/5.138, allocations: 0.7747 MB / 1.991 GB, free: 99.77 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009276/5.147, allocations: 4.19 MB / 1.995 GB, free: 95.64 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009579/5.148, allocations: 1.274 MB / 1.996 GB, free: 94.34 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002856/5.151, allocations: 450.2 kB / 1.997 GB, free: 93.92 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006503/5.152, allocations: 119.4 kB / 1.997 GB, free: 93.8 MB / 0.8855 GB Notification: Performance of SimCode: time 1.162e-06/5.152, allocations: 3.938 kB / 1.997 GB, free: 93.8 MB / 0.8855 GB Notification: Performance of Templates: time 0.09185/5.243, allocations: 39.01 MB / 2.035 GB, free: 55.32 MB / 0.8855 GB make -j1 -f Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)