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.SingleUTubeBoundaryCondition.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.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") [: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.112/2.112, allocations: 253.1 MB / 260.4 MB, free: 7.562 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.001678/0.001678, 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.842/1.842, allocations: 205.4 MB / 0.5704 GB, free: 14.99 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.001799/0.001799, allocations: 98.83 kB / 0.6746 GB, free: 4.332 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.417e-05/1.44e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2271, allocations: 106.2 MB / 0.8881 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6543/0.8815, allocations: 136.6 MB / 1.021 GB, free: 1.793 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.8819, allocations: 90.19 kB / 1.022 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.02538/0.9073, allocations: 5.05 MB / 1.026 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.339e-05/0.9074, allocations: 4 kB / 1.026 GB, free: 13.46 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001157/0.9085, allocations: 0.5325 MB / 1.027 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.9086, allocations: 8.031 kB / 1.027 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.142e-05/0.9087, allocations: 31.16 kB / 1.027 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006407/0.9093, allocations: 293.9 kB / 1.027 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.9094, allocations: 7.984 kB / 1.027 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.245e-05/0.9094, allocations: 14.19 kB / 1.027 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002501/0.9097, allocations: 65.2 kB / 1.027 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/0.9101, allocations: 171.8 kB / 1.028 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.9101, allocations: 0 / 1.028 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.186e-05/0.9102, allocations: 3.375 kB / 1.028 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.9102, allocations: 4 kB / 1.028 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.9116, allocations: 0.8561 MB / 1.028 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004933/0.9121, allocations: 166.7 kB / 1.029 GB, free: 11.32 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001726/0.9123, allocations: 54.67 kB / 1.029 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.9123, allocations: 4.234 kB / 1.029 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003556/0.9127, allocations: 178 kB / 1.029 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=23): time 3.797e-06/0.9127, allocations: 0 / 1.029 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=23): time 0.0008217/0.9135, allocations: 191 kB / 1.029 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.962e-05/0.9136, allocations: 114.2 kB / 1.029 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003004/0.9139, allocations: 203.8 kB / 1.029 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.267e-05/0.914, allocations: 37.62 kB / 1.029 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.819e-05/0.9141, allocations: 114.1 kB / 1.029 GB, free: 10.49 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.598e-05/0.9142, allocations: 65.38 kB / 1.029 GB, free: 10.44 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.81e-05/0.9142, allocations: 0 / 1.029 GB, free: 10.44 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.9144, allocations: 340.7 kB / 1.03 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.9145, allocations: 52.75 kB / 1.03 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/0.9149, allocations: 223.7 kB / 1.03 GB, free: 9.801 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.9151, allocations: 88.14 kB / 1.03 GB, free: 9.734 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.9151, allocations: 0 / 1.03 GB, free: 9.734 MB / 0.6511 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007031/0.9158, allocations: 281.3 kB / 1.03 GB, free: 9.492 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.9159, allocations: 8.156 kB / 1.03 GB, free: 9.484 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.9159, allocations: 4 kB / 1.03 GB, free: 9.48 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.892e-05/0.9159, allocations: 12 kB / 1.03 GB, free: 9.469 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004381/0.9164, allocations: 66.77 kB / 1.031 GB, free: 9.406 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.752e-05/0.9164, allocations: 11.94 kB / 1.031 GB, free: 9.395 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004349/0.9168, allocations: 39.73 kB / 1.031 GB, free: 9.355 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.592e-05/0.9169, allocations: 19.19 kB / 1.031 GB, free: 9.34 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.TBouSte.QAve_flow,TBouSte.QAve_flow,$PRE.TBouSte.UOld,TBouSte.UOld,$PRE.TBouSte.port.T,TBouSte.port.T,$PRE.TBouSte.iSam,TBouSte.iSam,$whenCondition4,$PRE.TBouCon.QAve_flow,TBouCon.QAve_flow,$PRE.TBouCon.UOld,TBouCon.UOld,$PRE.TBouCon.port.T,TBouCon.port.T,$PRE.TBouCon.iSam,TBouCon.iSam,$whenCondition3,$PRE.TBouPul.QAve_flow,TBouPul.QAve_flow,$PRE.TBouPul.UOld,TBouPul.UOld,$PRE.TBouPul.port.T,TBouPul.port.T,$PRE.TBouPul.iSam,TBouPul.iSam,$whenCondition1,$whenCondition2,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001837/0.9171, allocations: 136.4 kB / 1.031 GB, free: 9.207 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.23e-05/0.9172, allocations: 27.62 kB / 1.031 GB, free: 9.18 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001435/0.9173, allocations: 28.52 kB / 1.031 GB, free: 9.164 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.9174, allocations: 7.938 kB / 1.031 GB, free: 9.156 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.9174, allocations: 0 / 1.031 GB, free: 9.156 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.9174, allocations: 3.984 kB / 1.031 GB, free: 9.152 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005313/0.9179, allocations: 244.5 kB / 1.031 GB, free: 8.902 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.918, allocations: 0 / 1.031 GB, free: 8.902 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003647/0.9183, allocations: 23.98 kB / 1.031 GB, free: 8.879 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.325e-05/0.9184, allocations: 4 kB / 1.031 GB, free: 8.875 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.775e-05/0.9184, allocations: 11.48 kB / 1.031 GB, free: 8.867 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.426e-06/0.9185, allocations: 3.906 kB / 1.031 GB, free: 8.863 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/0.9185, allocations: 3.938 kB / 1.031 GB, free: 8.859 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009495/0.9195, allocations: 333.5 kB / 1.031 GB, free: 8.566 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.9196, allocations: 96.83 kB / 1.031 GB, free: 8.453 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.414e-05/0.9197, allocations: 11.48 kB / 1.031 GB, free: 8.445 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003139/0.92, allocations: 15.98 kB / 1.031 GB, free: 8.43 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.635e-05/0.9201, allocations: 19.47 kB / 1.031 GB, free: 8.414 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.311e-05/0.9201, allocations: 19.42 kB / 1.032 GB, free: 8.398 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001907/0.9203, allocations: 149.4 kB / 1.032 GB, free: 8.273 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006263/0.921, allocations: 87.27 kB / 1.032 GB, free: 8.191 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (TBouSte.U,TBouCon.U,TBouPul.U) * Number of discrete variables: 18 ($whenCondition4,TBouSte.QAve_flow,TBouSte.port.T,TBouSte.UOld,TBouSte.iSam,$whenCondition3,TBouCon.QAve_flow,TBouCon.port.T,TBouCon.UOld,TBouCon.iSam,$whenCondition2,$whenCondition1,TBouPul.QAve_flow,TBouPul.port.T,TBouPul.UOld,TBouPul.iSam,pulse.T_start,pulse.count) * Number of discrete states: 7 (TBouPul.iSam,TBouPul.UOld,pulse.count,TBouCon.iSam,TBouCon.UOld,TBouSte.iSam,TBouSte.UOld) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005359/0.9215, allocations: 188.2 kB / 1.032 GB, free: 8.004 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005669/0.9221, allocations: 207.7 kB / 1.032 GB, free: 7.836 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.9221, allocations: 1.625 kB / 1.032 GB, free: 7.836 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002389/0.9224, allocations: 72.69 kB / 1.032 GB, free: 7.785 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005092/0.9229, allocations: 54.02 kB / 1.032 GB, free: 7.746 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002106/0.925, allocations: 0.594 MB / 1.033 GB, free: 7.172 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004575/0.9255, allocations: 0.7704 MB / 1.034 GB, free: 6.375 MB / 0.6511 GB Notification: Performance of SimCode: time 1.122e-06/0.9255, allocations: 0 / 1.034 GB, free: 6.375 MB / 0.6511 GB Notification: Performance of Templates: time 0.01251/0.938, allocations: 3.757 MB / 1.037 GB, free: 2.695 MB / 0.6511 GB