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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.477/1.477, 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.001079/0.00108, allocations: 171.3 kB / 326.5 MB, free: 2.238 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.66/1.66, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.001074/0.001074, allocations: 91.86 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003726, allocations: 13.12 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.238, allocations: 106.3 MB / 0.9002 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9634/1.201, allocations: 422.3 MB / 1.313 GB, free: 10.23 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/1.202, allocations: 118.1 kB / 1.313 GB, free: 10.17 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 2.333/3.534, allocations: 0.6323 GB / 1.945 GB, free: 145.3 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.533e-06/3.534, allocations: 0 / 1.945 GB, free: 145.3 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002625/3.535, allocations: 38.19 kB / 1.945 GB, free: 145.2 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.007599/3.542, allocations: 2.341 MB / 1.947 GB, free: 142.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/3.542, allocations: 8.031 kB / 1.947 GB, free: 142.9 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005387/3.543, allocations: 164.8 kB / 1.948 GB, free: 142.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001056/3.544, allocations: 201.8 kB / 1.948 GB, free: 142.5 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005353/3.549, allocations: 2.071 MB / 1.95 GB, free: 140.4 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/3.549, allocations: 102.1 kB / 1.95 GB, free: 140.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005303/3.55, allocations: 143.9 kB / 1.95 GB, free: 140.2 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/3.552, allocations: 1.201 MB / 1.951 GB, free: 138.9 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.999e-05/3.552, allocations: 4 kB / 1.951 GB, free: 138.9 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.862e-05/3.552, allocations: 40 kB / 1.951 GB, free: 138.9 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.001e-05/3.552, allocations: 28 kB / 1.951 GB, free: 138.9 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/3.553, allocations: 0.9202 MB / 1.952 GB, free: 137.9 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.01091/3.564, allocations: 6.948 MB / 1.959 GB, free: 130.7 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/3.567, allocations: 1.08 MB / 1.96 GB, free: 129.6 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005435/3.567, allocations: 0.5994 MB / 1.961 GB, free: 128.9 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006038/3.568, allocations: 439.4 kB / 1.961 GB, free: 128.4 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=78): time 2.495e-06/3.568, allocations: 0 / 1.961 GB, free: 128.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=82): time 0.006907/3.575, allocations: 2.92 MB / 1.964 GB, free: 125.4 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/3.575, allocations: 68.05 kB / 1.964 GB, free: 125.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/3.577, allocations: 1.252 MB / 1.965 GB, free: 124.1 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002024/3.577, allocations: 56.92 kB / 1.965 GB, free: 124 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005307/3.578, allocations: 0.67 MB / 1.966 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002291/3.578, allocations: 307.1 kB / 1.966 GB, free: 123.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.838e-05/3.578, allocations: 24 kB / 1.966 GB, free: 123 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001116/3.578, allocations: 357.9 kB / 1.966 GB, free: 122.7 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008336/3.579, allocations: 0.5583 MB / 1.967 GB, free: 122.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008929/3.58, allocations: 0.8669 MB / 1.968 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009332/3.581, allocations: 0.6706 MB / 1.968 GB, free: 120.5 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/3.581, allocations: 7.094 kB / 1.968 GB, free: 120.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002591/3.583, allocations: 1.769 MB / 1.97 GB, free: 118.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006357/3.584, allocations: 2.314 MB / 1.972 GB, free: 116.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.253e-05/3.584, allocations: 8 kB / 1.972 GB, free: 116.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007366/3.585, allocations: 254.8 kB / 1.973 GB, free: 116 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/3.586, allocations: 267.6 kB / 1.973 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001069/3.587, allocations: 1.583 MB / 1.975 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002517/3.59, allocations: 155.5 kB / 1.975 GB, free: 114 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/3.59, allocations: 67.89 kB / 1.975 GB, free: 113.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/3.59, allocations: 4 kB / 1.975 GB, free: 113.9 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002093/3.592, allocations: 1.605 MB / 1.976 GB, free: 112.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/3.592, allocations: 8 kB / 1.976 GB, free: 112.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005144/3.593, allocations: 249.7 kB / 1.977 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/3.594, allocations: 263.6 kB / 1.977 GB, free: 111.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007491/3.595, allocations: 0.9935 MB / 1.978 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00251/3.597, allocations: 151.5 kB / 1.978 GB, free: 110.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/3.597, allocations: 55.98 kB / 1.978 GB, free: 110.6 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.0009114/3.598, allocations: 0.499 MB / 1.978 GB, free: 110 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000231/3.598, allocations: 146.1 kB / 1.979 GB, free: 109.9 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001536/3.6, allocations: 1.058 MB / 1.98 GB, free: 108.8 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/3.6, allocations: 8 kB / 1.98 GB, free: 108.8 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/3.6, allocations: 4 kB / 1.98 GB, free: 108.8 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001092/3.601, allocations: 0.9491 MB / 1.981 GB, free: 107.8 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.003568/3.605, allocations: 2.843 MB / 1.983 GB, free: 104.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/3.605, allocations: 0 / 1.983 GB, free: 104.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006632/3.605, allocations: 139.8 kB / 1.983 GB, free: 104.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002529/3.606, allocations: 124.3 kB / 1.984 GB, free: 104.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.205e-05/3.606, allocations: 36.06 kB / 1.984 GB, free: 104.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002711/3.608, allocations: 5.286 MB / 1.989 GB, free: 98.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/3.608, allocations: 4.031 kB / 1.989 GB, free: 98.89 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/3.61, allocations: 1.645 MB / 1.99 GB, free: 97.18 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007462/3.611, allocations: 375 kB / 1.991 GB, free: 96.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001704/3.611, allocations: 28 kB / 1.991 GB, free: 96.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/3.613, allocations: 87.75 kB / 1.991 GB, free: 96.68 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/3.613, allocations: 60.58 kB / 1.991 GB, free: 96.62 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.874e-05/3.613, allocations: 31.97 kB / 1.991 GB, free: 96.59 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.00121/3.614, allocations: 0.9466 MB / 1.992 GB, free: 95.65 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.21e-07/3.614, allocations: 0 / 1.992 GB, free: 95.65 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.003243/3.617, allocations: 1.136 MB / 1.993 GB, free: 94.51 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.00356/3.621, allocations: 3.176 MB / 1.996 GB, free: 91.38 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003379/3.624, allocations: 2.099 MB / 1.998 GB, free: 89.26 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/3.624, allocations: 0 / 1.998 GB, free: 89.26 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0009792/3.625, allocations: 0.7971 MB / 1.999 GB, free: 88.43 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003918/3.629, allocations: 0.7569 MB / 2 GB, free: 87.7 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00805/3.637, allocations: 8.959 MB / 2.008 GB, free: 78.66 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006475/3.638, allocations: 1.309 MB / 2.01 GB, free: 77.32 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001791/3.64, allocations: 450.2 kB / 2.01 GB, free: 76.89 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007914/3.641, allocations: 0.6047 MB / 2.011 GB, free: 76.29 MB / 0.8855 GB Notification: Performance of SimCode: time 6.31e-07/3.641, allocations: 0 / 2.011 GB, free: 76.29 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07511/3.716, allocations: 54.61 MB / 2.064 GB, free: 22.29 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/3.716, allocations: 292 kB / 2.064 GB, free: 21.93 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.145/7.861, allocations: 0 / 2.064 GB, free: 21.93 MB / 0.8855 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)