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.471/1.471, allocations: 249.5 MB / 257 MB, free: 6.961 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.001028/0.001028, allocations: 188.2 kB / 316.3 MB, free: 3.23 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.4/1.4, allocations: 205.3 MB / 0.5671 GB, free: 15.85 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.0008252/0.000825, allocations: 94.52 kB / 0.6714 GB, free: 4.973 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.082e-05/2.083e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1781, allocations: 106.3 MB / 0.8853 GB, free: 12.14 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.355/1.534, allocations: 422.5 MB / 1.298 GB, free: 322.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/1.534, allocations: 111.6 kB / 1.298 GB, free: 322.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.696/3.23, allocations: 0.6273 GB / 1.925 GB, free: 17.68 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.483e-06/3.23, allocations: 0 / 1.925 GB, free: 17.68 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001473/3.231, allocations: 38.81 kB / 1.925 GB, free: 17.64 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.005264/3.236, allocations: 2.033 MB / 1.927 GB, free: 15.57 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/3.236, allocations: 8.562 kB / 1.927 GB, free: 15.57 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008861/3.237, allocations: 205.7 kB / 1.928 GB, free: 15.36 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004543/3.241, allocations: 2.048 MB / 1.93 GB, free: 13.29 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.095e-05/3.241, allocations: 40.86 kB / 1.93 GB, free: 13.25 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002741/3.242, allocations: 91.92 kB / 1.93 GB, free: 13.16 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001522/3.243, allocations: 0.8321 MB / 1.931 GB, free: 12.33 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/3.245, allocations: 1.024 MB / 1.932 GB, free: 11.25 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.183e-05/3.245, allocations: 4 kB / 1.932 GB, free: 11.24 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.81e-05/3.245, allocations: 7.984 kB / 1.932 GB, free: 11.23 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.269e-05/3.245, allocations: 32 kB / 1.932 GB, free: 11.2 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.0109/3.256, allocations: 6.716 MB / 1.938 GB, free: 4.164 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002278/3.258, allocations: 1.025 MB / 1.939 GB, free: 3.133 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005493/3.259, allocations: 431.4 kB / 1.94 GB, free: 2.703 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005109/3.259, allocations: 0.6053 MB / 1.94 GB, free: 1.973 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005613/3.26, allocations: 400.6 kB / 1.941 GB, free: 1.57 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=78): time 3.256e-06/3.26, allocations: 0 / 1.941 GB, free: 1.57 MB / 0.8698 GB Notification: Performance of matching and sorting (n=82): time 0.6099/3.87, allocations: 2.234 MB / 1.943 GB, free: 148.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/3.87, allocations: 62.89 kB / 1.943 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002216/3.872, allocations: 1.058 MB / 1.944 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0003794/3.872, allocations: 29.42 kB / 1.944 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009158/3.873, allocations: 0.6769 MB / 1.945 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004523/3.874, allocations: 288.8 kB / 1.945 GB, free: 148.2 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.393e-05/3.874, allocations: 3.656 kB / 1.945 GB, free: 148.2 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001348/3.874, allocations: 360.3 kB / 1.945 GB, free: 147.9 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/3.875, allocations: 0.5204 MB / 1.946 GB, free: 147.9 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/3.876, allocations: 0.8165 MB / 1.946 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001801/3.878, allocations: 0.6908 MB / 1.947 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/3.878, allocations: 2.094 kB / 1.947 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004124/3.882, allocations: 1.67 MB / 1.949 GB, free: 147.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004859/3.883, allocations: 2.289 MB / 1.951 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.023e-05/3.883, allocations: 8.734 kB / 1.951 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007219/3.884, allocations: 226.9 kB / 1.951 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001525/3.885, allocations: 266.9 kB / 1.951 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001628/3.887, allocations: 1.616 MB / 1.953 GB, free: 144 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002973/3.89, allocations: 137.2 kB / 1.953 GB, free: 144 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001683/3.89, allocations: 58.64 kB / 1.953 GB, free: 144 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/3.89, allocations: 3.625 kB / 1.953 GB, free: 144 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00337/3.893, allocations: 1.495 MB / 1.955 GB, free: 143.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.767e-05/3.893, allocations: 10.83 kB / 1.955 GB, free: 143.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006209/3.894, allocations: 216.3 kB / 1.955 GB, free: 143.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/3.895, allocations: 264.7 kB / 1.955 GB, free: 143.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/3.897, allocations: 1.018 MB / 1.956 GB, free: 143.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002697/3.899, allocations: 122.5 kB / 1.956 GB, free: 143.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/3.899, allocations: 58.44 kB / 1.956 GB, free: 143.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.0004817/3.9, allocations: 143.1 kB / 1.956 GB, free: 143.3 MB / 0.8698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002201/3.902, allocations: 0.9254 MB / 1.957 GB, free: 143.1 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/3.902, allocations: 132.9 kB / 1.958 GB, free: 143.1 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002029/3.904, allocations: 1.003 MB / 1.958 GB, free: 143 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.132e-05/3.904, allocations: 9.188 kB / 1.959 GB, free: 143 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/3.904, allocations: 2.156 kB / 1.959 GB, free: 143 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001429/3.906, allocations: 0.918 MB / 1.959 GB, free: 142.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.004706/3.911, allocations: 2.665 MB / 1.962 GB, free: 142.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.004e-06/3.911, allocations: 2.125 kB / 1.962 GB, free: 142.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007256/3.911, allocations: 143.4 kB / 1.962 GB, free: 142.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002767/3.912, allocations: 112.7 kB / 1.962 GB, free: 142.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.069e-05/3.912, allocations: 17.78 kB / 1.962 GB, free: 142.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003217/3.915, allocations: 5.115 MB / 1.967 GB, free: 137.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/3.915, allocations: 3.438 kB / 1.967 GB, free: 137.9 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003029/3.918, allocations: 1.575 MB / 1.969 GB, free: 137.5 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/3.919, allocations: 350 kB / 1.969 GB, free: 137.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002288/3.92, allocations: 11.83 kB / 1.969 GB, free: 137.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/3.921, allocations: 82.89 kB / 1.969 GB, free: 137.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/3.921, allocations: 60.64 kB / 1.969 GB, free: 137.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.691e-05/3.921, allocations: 28.83 kB / 1.969 GB, free: 137.3 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001456/3.923, allocations: 0.778 MB / 1.97 GB, free: 137.2 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.4e-07/3.923, allocations: 0 / 1.97 GB, free: 137.2 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.005248/3.928, allocations: 1.083 MB / 1.971 GB, free: 137.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.005234/3.933, allocations: 3.088 MB / 1.974 GB, free: 136 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.004788/3.938, allocations: 2.027 MB / 1.976 GB, free: 135.9 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/3.938, allocations: 0.9688 kB / 1.976 GB, free: 135.9 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001204/3.939, allocations: 0.7511 MB / 1.977 GB, free: 135.6 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003994/3.943, allocations: 0.6295 MB / 1.977 GB, free: 135.6 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008981/3.952, allocations: 3.292 MB / 1.981 GB, free: 134.9 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/3.953, allocations: 1.309 MB / 1.982 GB, free: 134.2 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.002789/3.956, allocations: 0.5008 MB / 1.982 GB, free: 134.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009526/3.957, allocations: 0.5694 MB / 1.983 GB, free: 134.2 MB / 0.8698 GB Notification: Performance of SimCode: time 1.323e-06/3.957, allocations: 2.25 kB / 1.983 GB, free: 134.2 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09435/4.051, allocations: 48.13 MB / 2.03 GB, free: 132.6 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/4.052, allocations: 206.1 kB / 2.03 GB, free: 132.4 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.754/7.806, allocations: 0 / 2.03 GB, free: 132.4 MB / 0.8698 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)