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: 249.3 MB / 261.8 MB, free: 5.848 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.00111/0.00111, allocations: 170.2 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.439/1.439, allocations: 205.2 MB / 0.572 GB, free: 10.64 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.0008109/0.0008109, allocations: 98.5 kB / 0.6764 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.893e-05/2.911e-05, allocations: 4 kB / 0.788 GB, free: 96.98 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.176/0.1761, allocations: 106.3 MB / 0.8919 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.3/1.476, allocations: 422.3 MB / 1.304 GB, free: 317 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002147/1.476, allocations: 108.1 kB / 1.304 GB, free: 316.9 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.71/3.187, allocations: 0.6305 GB / 1.935 GB, free: 5.992 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.635e-06/3.187, allocations: 4 kB / 1.935 GB, free: 5.988 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001509/3.187, allocations: 47.92 kB / 1.935 GB, free: 5.941 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.004656/3.191, allocations: 2.03 MB / 1.937 GB, free: 3.859 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/3.191, allocations: 8.031 kB / 1.937 GB, free: 3.852 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002/3.192, allocations: 160.8 kB / 1.937 GB, free: 3.684 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000589/3.192, allocations: 213.6 kB / 1.937 GB, free: 3.473 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003817/3.196, allocations: 2.047 MB / 1.939 GB, free: 1.371 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.536e-05/3.196, allocations: 102.2 kB / 1.939 GB, free: 1.27 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002067/3.196, allocations: 136 kB / 1.939 GB, free: 1.137 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5243/3.721, allocations: 1.174 MB / 1.941 GB, free: 143.9 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.957e-05/3.721, allocations: 9.656 kB / 1.941 GB, free: 143.9 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/3.721, allocations: 50.19 kB / 1.941 GB, free: 143.9 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.945e-05/3.721, allocations: 31.95 kB / 1.941 GB, free: 143.9 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001942/3.723, allocations: 0.8915 MB / 1.942 GB, free: 143.9 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.01285/3.736, allocations: 6.949 MB / 1.948 GB, free: 141.4 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002976/3.739, allocations: 1.069 MB / 1.949 GB, free: 141.3 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008195/3.74, allocations: 459.7 kB / 1.95 GB, free: 141.3 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005957/3.74, allocations: 0.602 MB / 1.95 GB, free: 140.7 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007323/3.741, allocations: 433.7 kB / 1.951 GB, free: 140.6 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=78): time 3.257e-06/3.741, allocations: 3.844 kB / 1.951 GB, free: 140.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=82): time 0.005572/3.747, allocations: 2.277 MB / 1.953 GB, free: 140 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/3.747, allocations: 65.2 kB / 1.953 GB, free: 140 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002128/3.749, allocations: 1.228 MB / 1.954 GB, free: 139.8 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002181/3.749, allocations: 53.39 kB / 1.954 GB, free: 139.8 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005678/3.75, allocations: 0.6868 MB / 1.955 GB, free: 139.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002748/3.75, allocations: 296.9 kB / 1.955 GB, free: 139.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.269e-05/3.75, allocations: 28.38 kB / 1.955 GB, free: 139.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 9.315e-05/3.75, allocations: 354.4 kB / 1.956 GB, free: 139.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009333/3.751, allocations: 0.5448 MB / 1.956 GB, free: 139.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/3.752, allocations: 0.8595 MB / 1.957 GB, free: 138.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009438/3.753, allocations: 0.6752 MB / 1.958 GB, free: 138.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/3.753, allocations: 0 / 1.958 GB, free: 138.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003029/3.756, allocations: 1.751 MB / 1.959 GB, free: 138.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004839/3.757, allocations: 2.306 MB / 1.962 GB, free: 136.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.624e-05/3.757, allocations: 10.72 kB / 1.962 GB, free: 136.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000808/3.757, allocations: 262.3 kB / 1.962 GB, free: 136.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001393/3.759, allocations: 272.1 kB / 1.962 GB, free: 136.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/3.76, allocations: 1.575 MB / 1.964 GB, free: 135.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00269/3.763, allocations: 168.3 kB / 1.964 GB, free: 135.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/3.763, allocations: 58 kB / 1.964 GB, free: 135.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/3.763, allocations: 4.938 kB / 1.964 GB, free: 135.1 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00228/3.765, allocations: 1.59 MB / 1.966 GB, free: 135.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/3.765, allocations: 6.375 kB / 1.966 GB, free: 135.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006368/3.766, allocations: 250.8 kB / 1.966 GB, free: 135.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/3.767, allocations: 260 kB / 1.966 GB, free: 135.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009288/3.768, allocations: 0.999 MB / 1.967 GB, free: 134.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002607/3.771, allocations: 163.2 kB / 1.967 GB, free: 134.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/3.771, allocations: 56.78 kB / 1.967 GB, free: 134.5 MB / 0.8698 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 () * 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.0003386/3.771, allocations: 178.6 kB / 1.967 GB, free: 134.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003195/3.771, allocations: 147.7 kB / 1.968 GB, free: 134.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002021/3.773, allocations: 1.054 MB / 1.969 GB, free: 134.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/3.773, allocations: 9 kB / 1.969 GB, free: 134.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/3.773, allocations: 4.312 kB / 1.969 GB, free: 134.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001278/3.775, allocations: 0.9319 MB / 1.969 GB, free: 134 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.004664/3.779, allocations: 2.828 MB / 1.972 GB, free: 133.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/3.779, allocations: 8.25 kB / 1.972 GB, free: 133.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006985/3.78, allocations: 150.5 kB / 1.972 GB, free: 133.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003176/3.78, allocations: 119.5 kB / 1.973 GB, free: 133.5 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.822e-05/3.78, allocations: 28.97 kB / 1.973 GB, free: 133.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002964/3.783, allocations: 5.241 MB / 1.978 GB, free: 129 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/3.783, allocations: 6.312 kB / 1.978 GB, free: 129 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/3.786, allocations: 1.621 MB / 1.979 GB, free: 128.6 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008776/3.787, allocations: 365.8 kB / 1.98 GB, free: 128.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002009/3.787, allocations: 24.78 kB / 1.98 GB, free: 128.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00131/3.788, allocations: 96.23 kB / 1.98 GB, free: 128.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/3.789, allocations: 55.64 kB / 1.98 GB, free: 128.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.416e-05/3.789, allocations: 30.19 kB / 1.98 GB, free: 128.4 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001667/3.79, allocations: 0.9286 MB / 1.981 GB, free: 128.3 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.51e-07/3.79, allocations: 2.406 kB / 1.981 GB, free: 128.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004636/3.795, allocations: 1.136 MB / 1.982 GB, free: 128.3 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,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004138/3.799, allocations: 3.147 MB / 1.985 GB, free: 127.1 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.004175/3.803, allocations: 2.115 MB / 1.987 GB, free: 127 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/3.803, allocations: 4.406 kB / 1.987 GB, free: 127 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001135/3.805, allocations: 0.7875 MB / 1.988 GB, free: 126.6 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004299/3.809, allocations: 0.7673 MB / 1.988 GB, free: 126.6 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008259/3.817, allocations: 3.404 MB / 1.992 GB, free: 125.9 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001505/3.819, allocations: 1.306 MB / 1.993 GB, free: 125.2 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.002775/3.821, allocations: 0.5265 MB / 1.994 GB, free: 125.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009174/3.822, allocations: 0.5754 MB / 1.994 GB, free: 125.2 MB / 0.8698 GB Notification: Performance of SimCode: time 1.152e-06/3.822, allocations: 0 / 1.994 GB, free: 125.2 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08913/3.912, allocations: 57.56 MB / 2.05 GB, free: 123.1 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/3.912, allocations: 263.9 kB / 2.051 GB, free: 122.8 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.117/8.029, allocations: 0 / 2.051 GB, free: 122.8 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)