Running: ./testmodel.py --libraries=/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.136/2.136, allocations: 253.1 MB / 260.4 MB, free: 7.52 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001565/0.001564, allocations: 185.2 kB / 319.6 MB, free: 3.324 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.93/1.93, allocations: 205.4 MB / 0.5704 GB, free: 15.08 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001323/0.001322, allocations: 87.31 kB / 0.6746 GB, free: 4.445 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.968e-06/1.011e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2081, allocations: 106.2 MB / 0.8881 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.419/1.627, allocations: 422.3 MB / 1.301 GB, free: 261.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003794/1.628, allocations: 104.3 kB / 1.301 GB, free: 261.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.532/4.16, allocations: 0.6308 GB / 1.931 GB, free: 440 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0002652/4.16, allocations: 40 kB / 1.931 GB, free: 400 kB / 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.3503/4.51, allocations: 2.018 MB / 1.933 GB, free: 233.1 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/4.51, allocations: 11.47 kB / 1.933 GB, free: 233.1 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001773/4.512, allocations: 208.3 kB / 1.934 GB, free: 233 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01099/4.523, allocations: 2.068 MB / 1.936 GB, free: 232.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.773e-05/4.523, allocations: 37.25 kB / 1.936 GB, free: 232.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006683/4.524, allocations: 92.67 kB / 1.936 GB, free: 232.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003764/4.528, allocations: 0.8419 MB / 1.937 GB, free: 232.6 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004119/4.532, allocations: 1.029 MB / 1.938 GB, free: 232.5 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.12e-05/4.532, allocations: 3.594 kB / 1.938 GB, free: 232.5 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002103/4.532, allocations: 3.562 kB / 1.938 GB, free: 232.5 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.12e-05/4.532, allocations: 29.12 kB / 1.938 GB, free: 232.5 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01659/4.549, allocations: 6.537 MB / 1.944 GB, free: 229.7 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002786/4.552, allocations: 0.7499 MB / 1.945 GB, free: 229.7 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001477/4.553, allocations: 440.5 kB / 1.945 GB, free: 229.7 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001008/4.554, allocations: 0.6018 MB / 1.946 GB, free: 229 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001385/4.556, allocations: 408 kB / 1.946 GB, free: 229 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=78): time 5.13e-06/4.556, allocations: 0 / 1.946 GB, free: 229 MB / 0.8698 GB Notification: Performance of matching and sorting (n=82): time 0.01221/4.568, allocations: 2.236 MB / 1.948 GB, free: 228.4 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/4.568, allocations: 61.7 kB / 1.948 GB, free: 228.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003209/4.571, allocations: 1.063 MB / 1.949 GB, free: 228.2 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005094/4.572, allocations: 25.7 kB / 1.949 GB, free: 228.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008546/4.573, allocations: 0.4905 MB / 1.95 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000777/4.574, allocations: 284.5 kB / 1.95 GB, free: 227.8 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/4.574, allocations: 0 / 1.95 GB, free: 227.8 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001632/4.574, allocations: 362.5 kB / 1.951 GB, free: 227.5 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002076/4.576, allocations: 0.5315 MB / 1.951 GB, free: 227.5 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002475/4.579, allocations: 0.8356 MB / 1.952 GB, free: 227.2 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003611/4.582, allocations: 0.7141 MB / 1.953 GB, free: 227.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.558e-05/4.582, allocations: 5.719 kB / 1.953 GB, free: 227.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.007764/4.59, allocations: 1.702 MB / 1.954 GB, free: 227 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004965/4.591, allocations: 2.285 MB / 1.957 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.196e-05/4.591, allocations: 10.41 kB / 1.957 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/4.592, allocations: 229.3 kB / 1.957 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003119/4.595, allocations: 264 kB / 1.957 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002345/4.597, allocations: 1.637 MB / 1.959 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005331/4.603, allocations: 119.4 kB / 1.959 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005496/4.603, allocations: 58.03 kB / 1.959 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/4.603, allocations: 3.906 kB / 1.959 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005536/4.609, allocations: 1.535 MB / 1.96 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.812e-05/4.609, allocations: 7.156 kB / 1.96 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009673/4.61, allocations: 222.7 kB / 1.96 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002719/4.613, allocations: 251.2 kB / 1.961 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001816/4.615, allocations: 1.039 MB / 1.962 GB, free: 223 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004999/4.62, allocations: 124.2 kB / 1.962 GB, free: 222.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004643/4.62, allocations: 54.72 kB / 1.962 GB, free: 222.9 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.0005302/4.621, allocations: 143.6 kB / 1.962 GB, free: 222.8 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000514/4.621, allocations: 135.4 kB / 1.962 GB, free: 222.8 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00354/4.625, allocations: 1.009 MB / 1.963 GB, free: 222.7 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.036e-05/4.625, allocations: 7.781 kB / 1.963 GB, free: 222.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/4.625, allocations: 3.219 kB / 1.963 GB, free: 222.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002705/4.628, allocations: 0.9124 MB / 1.964 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007457/4.635, allocations: 2.687 MB / 1.967 GB, free: 222 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/4.635, allocations: 0 / 1.967 GB, free: 222 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001461/4.637, allocations: 143.2 kB / 1.967 GB, free: 222 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004763/4.637, allocations: 118.3 kB / 1.967 GB, free: 222 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001578/4.637, allocations: 21.56 kB / 1.967 GB, free: 222 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004677/4.642, allocations: 5.045 MB / 1.972 GB, free: 217.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/4.642, allocations: 6.891 kB / 1.972 GB, free: 217.6 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004299/4.646, allocations: 1.579 MB / 1.973 GB, free: 217.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001361/4.648, allocations: 357.3 kB / 1.974 GB, free: 217.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005281/4.648, allocations: 10.72 kB / 1.974 GB, free: 217.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002999/4.651, allocations: 82.12 kB / 1.974 GB, free: 217.1 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/4.652, allocations: 43.53 kB / 1.974 GB, free: 217.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001181/4.652, allocations: 34.16 kB / 1.974 GB, free: 217.1 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001889/4.654, allocations: 0.7776 MB / 1.975 GB, free: 216.9 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.006821/4.66, allocations: 1.081 MB / 1.976 GB, free: 216.9 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.002444/4.663, allocations: 0.8107 MB / 1.977 GB, free: 216.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.007283/4.67, allocations: 2.072 MB / 1.979 GB, free: 216.7 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/4.67, allocations: 3.938 kB / 1.979 GB, free: 216.7 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001817/4.672, allocations: 0.7335 MB / 1.979 GB, free: 216.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006129/4.678, allocations: 0.617 MB / 1.98 GB, free: 216.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009867/4.688, allocations: 2.991 MB / 1.983 GB, free: 215.8 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002274/4.691, allocations: 1.437 MB / 1.984 GB, free: 215.1 MB / 0.8698 GB Notification: Performance of SimCode: time 1.533e-06/4.691, allocations: 0 / 1.984 GB, free: 215.1 MB / 0.8698 GB Notification: Performance of Templates: time 0.1208/4.811, allocations: 40.38 MB / 2.024 GB, free: 214.5 MB / 0.8698 GB