Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.192/2.192, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001251/0.001251, allocations: 180.8 kB / 487.4 MB, free: 5.051 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 221.5 MB / 0.7824 GB, free: 0.9883 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009742/0.0009742, allocations: 107.7 kB / 0.9219 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.92e-05/1.924e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2772, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.092/1.37, allocations: 441.7 MB / 1.637 GB, free: 12.92 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/1.37, allocations: 108.1 kB / 1.637 GB, free: 12.86 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.761/4.131, allocations: 0.6604 GB / 2.298 GB, free: 252.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.893e-06/4.131, allocations: 0 / 2.298 GB, free: 252.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002465/4.132, allocations: 46.02 kB / 2.298 GB, free: 252.6 MB / 1.151 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.007693/4.139, allocations: 2.04 MB / 2.3 GB, free: 251.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.223e-05/4.139, allocations: 6.656 kB / 2.3 GB, free: 251.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001199/4.141, allocations: 210 kB / 2.3 GB, free: 251.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004883/4.146, allocations: 2.075 MB / 2.302 GB, free: 251.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/4.146, allocations: 33.09 kB / 2.302 GB, free: 251.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002007/4.146, allocations: 87.88 kB / 2.302 GB, free: 251.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001468/4.147, allocations: 0.8311 MB / 2.303 GB, free: 251.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001669/4.149, allocations: 1.042 MB / 2.304 GB, free: 251.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/4.149, allocations: 0 / 2.304 GB, free: 251.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.101e-05/4.149, allocations: 7.297 kB / 2.304 GB, free: 251.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.9e-05/4.149, allocations: 31.28 kB / 2.304 GB, free: 251.2 MB / 1.151 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.01061/4.16, allocations: 6.726 MB / 2.311 GB, free: 248.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/4.162, allocations: 1.034 MB / 2.312 GB, free: 248.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006262/4.163, allocations: 425.8 kB / 2.312 GB, free: 248.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005997/4.163, allocations: 0.6043 MB / 2.313 GB, free: 247.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006341/4.164, allocations: 406.8 kB / 2.313 GB, free: 247.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=78): time 2.816e-06/4.164, allocations: 2.906 kB / 2.313 GB, free: 247.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=82): time 0.006004/4.17, allocations: 2.243 MB / 2.315 GB, free: 247.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.188e-05/4.17, allocations: 62.75 kB / 2.315 GB, free: 247.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001545/4.172, allocations: 1.061 MB / 2.316 GB, free: 247 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002281/4.172, allocations: 36.73 kB / 2.316 GB, free: 247 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006017/4.172, allocations: 0.6816 MB / 2.317 GB, free: 246.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002606/4.173, allocations: 288.6 kB / 2.317 GB, free: 246.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.555e-05/4.173, allocations: 0 / 2.317 GB, free: 246.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.228e-05/4.173, allocations: 357.5 kB / 2.318 GB, free: 246.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007494/4.174, allocations: 0.5228 MB / 2.318 GB, free: 246.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008421/4.175, allocations: 0.8077 MB / 2.319 GB, free: 245.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/4.176, allocations: 0.6927 MB / 2.32 GB, free: 245.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/4.176, allocations: 2.969 kB / 2.32 GB, free: 245.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002833/4.179, allocations: 1.672 MB / 2.321 GB, free: 245.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004571/4.179, allocations: 2.281 MB / 2.324 GB, free: 243.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.216e-05/4.179, allocations: 12.66 kB / 2.324 GB, free: 243.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006001/4.18, allocations: 224.1 kB / 2.324 GB, free: 243.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/4.181, allocations: 281.4 kB / 2.324 GB, free: 243.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/4.182, allocations: 1.615 MB / 2.326 GB, free: 242.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002566/4.185, allocations: 122.5 kB / 2.326 GB, free: 242.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000194/4.185, allocations: 51.31 kB / 2.326 GB, free: 242.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/4.185, allocations: 3.812 kB / 2.326 GB, free: 242.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002811/4.188, allocations: 1.498 MB / 2.327 GB, free: 242.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/4.188, allocations: 7.875 kB / 2.327 GB, free: 242.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000526/4.189, allocations: 218.2 kB / 2.327 GB, free: 242.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/4.19, allocations: 261.8 kB / 2.328 GB, free: 242.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009733/4.191, allocations: 1.017 MB / 2.329 GB, free: 241.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00253/4.193, allocations: 128.6 kB / 2.329 GB, free: 241.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/4.193, allocations: 60.47 kB / 2.329 GB, free: 241.6 MB / 1.151 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.0004092/4.194, allocations: 154.3 kB / 2.329 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001971/4.196, allocations: 0.9158 MB / 2.33 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003981/4.196, allocations: 138.4 kB / 2.33 GB, free: 241.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002055/4.198, allocations: 0.9964 MB / 2.331 GB, free: 241.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/4.198, allocations: 11.66 kB / 2.331 GB, free: 241.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-05/4.198, allocations: 7.125 kB / 2.331 GB, free: 241.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001389/4.2, allocations: 0.9176 MB / 2.332 GB, free: 241 MB / 1.151 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.004669/4.204, allocations: 2.682 MB / 2.335 GB, free: 240.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/4.204, allocations: 0 / 2.335 GB, free: 240.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007075/4.205, allocations: 137.4 kB / 2.335 GB, free: 240.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002732/4.205, allocations: 114.2 kB / 2.335 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.188e-05/4.205, allocations: 20.52 kB / 2.335 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003125/4.209, allocations: 5.106 MB / 2.34 GB, free: 236.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/4.209, allocations: 7.219 kB / 2.34 GB, free: 236.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002418/4.211, allocations: 1.577 MB / 2.341 GB, free: 235.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009279/4.212, allocations: 352.2 kB / 2.342 GB, free: 235.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004139/4.212, allocations: 16.84 kB / 2.342 GB, free: 235.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/4.214, allocations: 82.39 kB / 2.342 GB, free: 235.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/4.214, allocations: 58.55 kB / 2.342 GB, free: 235.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.881e-05/4.214, allocations: 33.78 kB / 2.342 GB, free: 235.6 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001385/4.216, allocations: 0.7802 MB / 2.343 GB, free: 235.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.41e-07/4.216, allocations: 0 / 2.343 GB, free: 235.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004663/4.22, allocations: 1.077 MB / 2.344 GB, free: 235.4 MB / 1.151 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.004593/4.225, allocations: 3.103 MB / 2.347 GB, free: 234.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.004054/4.229, allocations: 2.014 MB / 2.349 GB, free: 234 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/4.229, allocations: 0 / 2.349 GB, free: 234 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0009673/4.23, allocations: 0.7572 MB / 2.349 GB, free: 233.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003482/4.233, allocations: 0.6255 MB / 2.35 GB, free: 233.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008209/4.242, allocations: 3.31 MB / 2.353 GB, free: 232.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/4.243, allocations: 1.318 MB / 2.355 GB, free: 232.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002644/4.245, allocations: 0.4946 MB / 2.355 GB, free: 232.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009627/4.246, allocations: 0.5693 MB / 2.356 GB, free: 232.2 MB / 1.151 GB Notification: Performance of SimCode: time 9.21e-07/4.246, allocations: 3.688 kB / 2.356 GB, free: 232.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09531/4.342, allocations: 48.2 MB / 2.403 GB, free: 226.1 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/4.342, allocations: 200.3 kB / 2.403 GB, free: 225.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.097/8.439, allocations: 4 kB / 2.403 GB, free: 225.8 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.fmu > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)