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 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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_7_0_0_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.1/package.mo): time 2.264/2.264, allocations: 248.7 MB / 256.2 MB, free: 7.074 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001501/0.001501, allocations: 178.1 kB / 315.4 MB, free: 4.008 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.093/2.093, allocations: 205.3 MB / 0.5662 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001127/0.001127, allocations: 89.78 kB / 0.6704 GB, free: 5.762 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.189e-05/3.171e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.192, allocations: 106.3 MB / 0.8841 GB, free: 12.99 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.935/2.127, allocations: 422.4 MB / 1.297 GB, free: 261.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003838/2.127, allocations: 104.2 kB / 1.297 GB, free: 261.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 2.699/4.826, allocations: 0.6274 GB / 1.924 GB, free: 3.551 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.004e-06/4.826, allocations: 0 / 1.924 GB, free: 3.551 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0002753/4.827, allocations: 39.94 kB / 1.924 GB, free: 3.512 MB / 0.8698 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.008545/4.835, allocations: 2.035 MB / 1.926 GB, free: 1.426 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/4.835, allocations: 12.03 kB / 1.926 GB, free: 1.414 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001476/4.837, allocations: 205.7 kB / 1.926 GB, free: 1.211 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6573/5.494, allocations: 2.046 MB / 1.928 GB, free: 145.9 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/5.494, allocations: 35.12 kB / 1.928 GB, free: 145.9 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006812/5.495, allocations: 88.94 kB / 1.928 GB, free: 145.9 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003292/5.498, allocations: 0.8296 MB / 1.929 GB, free: 145.9 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003874/5.502, allocations: 1.028 MB / 1.93 GB, free: 145.8 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-05/5.502, allocations: 2.109 kB / 1.93 GB, free: 145.8 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001603/5.502, allocations: 5.781 kB / 1.93 GB, free: 145.8 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-05/5.502, allocations: 33.7 kB / 1.93 GB, free: 145.8 MB / 0.8698 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.02065/5.523, allocations: 6.714 MB / 1.937 GB, free: 143.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004742/5.528, allocations: 1.036 MB / 1.938 GB, free: 143.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/5.529, allocations: 425.4 kB / 1.938 GB, free: 143.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007828/5.53, allocations: 0.6025 MB / 1.939 GB, free: 142.5 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00116/5.531, allocations: 404.8 kB / 1.939 GB, free: 142.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=78): time 4.579e-06/5.531, allocations: 1.531 kB / 1.939 GB, free: 142.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=82): time 0.009969/5.541, allocations: 2.235 MB / 1.941 GB, free: 141.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/5.541, allocations: 62.08 kB / 1.941 GB, free: 141.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002891/5.544, allocations: 1.063 MB / 1.942 GB, free: 141.7 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0004706/5.545, allocations: 28.67 kB / 1.942 GB, free: 141.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001182/5.546, allocations: 0.6828 MB / 1.943 GB, free: 141.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006189/5.547, allocations: 282.1 kB / 1.943 GB, free: 141.3 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002492/5.547, allocations: 0 / 1.943 GB, free: 141.3 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001673/5.547, allocations: 359.5 kB / 1.944 GB, free: 141 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/5.549, allocations: 0.5263 MB / 1.944 GB, free: 141 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001893/5.551, allocations: 0.8146 MB / 1.945 GB, free: 140.7 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002749/5.553, allocations: 0.6935 MB / 1.946 GB, free: 140.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.394e-05/5.554, allocations: 2.156 kB / 1.946 GB, free: 140.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.006227/5.56, allocations: 1.669 MB / 1.947 GB, free: 140.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005106/5.56, allocations: 2.291 MB / 1.95 GB, free: 138.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-05/5.56, allocations: 8 kB / 1.95 GB, free: 138.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/5.562, allocations: 221.1 kB / 1.95 GB, free: 138.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002976/5.565, allocations: 272.3 kB / 1.95 GB, free: 138.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002107/5.567, allocations: 1.621 MB / 1.952 GB, free: 137 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004855/5.572, allocations: 126.5 kB / 1.952 GB, free: 137 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004927/5.572, allocations: 63.06 kB / 1.952 GB, free: 137 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/5.572, allocations: 5.719 kB / 1.952 GB, free: 137 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005431/5.578, allocations: 1.495 MB / 1.953 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.33e-05/5.578, allocations: 7.703 kB / 1.953 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009457/5.579, allocations: 223.8 kB / 1.954 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002659/5.581, allocations: 265.5 kB / 1.954 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/5.583, allocations: 1.017 MB / 1.955 GB, free: 136.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004692/5.588, allocations: 128 kB / 1.955 GB, free: 136.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004803/5.588, allocations: 57.53 kB / 1.955 GB, free: 136.4 MB / 0.8698 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: seg.pipFil.Rgg.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow rate from port_a -> port_b" type: Real 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.0006048/5.589, allocations: 133.9 kB / 1.955 GB, free: 136.3 MB / 0.8698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003303/5.592, allocations: 0.9243 MB / 1.956 GB, free: 136.1 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006424/5.593, allocations: 133.3 kB / 1.956 GB, free: 136.1 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003569/5.597, allocations: 0.999 MB / 1.957 GB, free: 136 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/5.597, allocations: 9.422 kB / 1.957 GB, free: 136 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/5.597, allocations: 2.812 kB / 1.957 GB, free: 136 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002769/5.599, allocations: 0.9126 MB / 1.958 GB, free: 135.8 MB / 0.8698 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.00827/5.608, allocations: 2.666 MB / 1.961 GB, free: 135.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/5.608, allocations: 1.719 kB / 1.961 GB, free: 135.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001514/5.609, allocations: 142.5 kB / 1.961 GB, free: 135.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004988/5.61, allocations: 116.8 kB / 1.961 GB, free: 135.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001816/5.61, allocations: 20.02 kB / 1.961 GB, free: 135.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004717/5.615, allocations: 5.115 MB / 1.966 GB, free: 130.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/5.615, allocations: 2.812 kB / 1.966 GB, free: 130.9 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004615/5.62, allocations: 1.571 MB / 1.967 GB, free: 130.5 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/5.621, allocations: 361.2 kB / 1.968 GB, free: 130.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005368/5.622, allocations: 10.98 kB / 1.968 GB, free: 130.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002847/5.624, allocations: 77.97 kB / 1.968 GB, free: 130.3 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002527/5.625, allocations: 58.38 kB / 1.968 GB, free: 130.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/5.625, allocations: 31.97 kB / 1.968 GB, free: 130.3 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001947/5.627, allocations: 0.772 MB / 1.969 GB, free: 130.2 MB / 0.8698 GB Notification: Performance of sort global known variables: time 7.22e-07/5.627, allocations: 0 / 1.969 GB, free: 130.2 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.007197/5.634, allocations: 1.078 MB / 1.97 GB, free: 130.2 MB / 0.8698 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,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00719/5.641, allocations: 3.109 MB / 1.973 GB, free: 129 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.006862/5.648, allocations: 2.019 MB / 1.975 GB, free: 128.9 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 8.345e-06/5.648, allocations: 2.734 kB / 1.975 GB, free: 128.9 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001657/5.65, allocations: 0.749 MB / 1.975 GB, free: 128.6 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005952/5.656, allocations: 0.6304 MB / 1.976 GB, free: 128.6 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01108/5.667, allocations: 3.291 MB / 1.979 GB, free: 127.9 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/5.668, allocations: 1.314 MB / 1.981 GB, free: 127.2 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.003939/5.672, allocations: 0.4945 MB / 1.981 GB, free: 127.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00164/5.674, allocations: 0.5675 MB / 1.982 GB, free: 127.2 MB / 0.8698 GB Notification: Performance of SimCode: time 1.553e-06/5.674, allocations: 0.7188 kB / 1.982 GB, free: 127.2 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1688/5.843, allocations: 48.12 MB / 2.029 GB, free: 125.6 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/5.843, allocations: 196.9 kB / 2.029 GB, free: 125.3 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.033/10.88, allocations: 0 / 2.029 GB, free: 125.3 MB / 0.8698 GB