Running: ./testmodel.py --libraries=/home/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 (/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.143/2.143, allocations: 248.6 MB / 255.9 MB, free: 7.16 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.001675/0.001675, allocations: 181.2 kB / 315.1 MB, free: 4.27 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.811/1.811, allocations: 205.1 MB / 0.5658 GB, free: 300 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00131/0.00131, allocations: 87.33 kB / 0.67 GB, free: 5.5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4847/0.486, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.695, allocations: 106.2 MB / 0.8835 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6589/1.354, allocations: 136.6 MB / 1.017 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/1.354, allocations: 95.36 kB / 1.017 GB, free: 3.508 MB / 0.6355 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.03317/1.388, allocations: 5.586 MB / 1.022 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 9.716e-05/1.388, allocations: 12 kB / 1.022 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/1.388, allocations: 23.72 kB / 1.022 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008892/1.389, allocations: 305.2 kB / 1.023 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/1.389, allocations: 4 kB / 1.023 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.164e-05/1.389, allocations: 19.36 kB / 1.023 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000375/1.389, allocations: 59.39 kB / 1.023 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006054/1.39, allocations: 175.6 kB / 1.023 GB, free: 14.08 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/1.39, allocations: 7.562 kB / 1.023 GB, free: 14.08 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.987e-05/1.39, allocations: 0 / 1.023 GB, free: 14.08 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/1.39, allocations: 4 kB / 1.023 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001501/1.392, allocations: 0.858 MB / 1.024 GB, free: 13.22 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004587/1.392, allocations: 163.4 kB / 1.024 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/1.392, allocations: 60.91 kB / 1.024 GB, free: 13.03 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/1.392, allocations: 4 kB / 1.024 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003545/1.393, allocations: 172 kB / 1.024 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=23): time 3.417e-06/1.393, allocations: 0 / 1.024 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of matching and sorting (n=23): time 0.0007934/1.393, allocations: 185.2 kB / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.35e-05/1.394, allocations: 113.9 kB / 1.025 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003029/1.394, allocations: 202.4 kB / 1.025 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.894e-05/1.394, allocations: 33.69 kB / 1.025 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/1.394, allocations: 114.8 kB / 1.025 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/1.394, allocations: 65.83 kB / 1.025 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.512e-05/1.394, allocations: 4 kB / 1.025 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000228/1.395, allocations: 343.5 kB / 1.025 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002895/1.395, allocations: 53.44 kB / 1.025 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004671/1.395, allocations: 222.9 kB / 1.026 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002642/1.396, allocations: 80.84 kB / 1.026 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.221e-05/1.396, allocations: 4 kB / 1.026 GB, free: 11.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007467/1.396, allocations: 272 kB / 1.026 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/1.396, allocations: 4 kB / 1.026 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/1.396, allocations: 16.03 kB / 1.026 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.772e-05/1.396, allocations: 8 kB / 1.026 GB, free: 11.24 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000456/1.397, allocations: 71.64 kB / 1.026 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/1.397, allocations: 11.94 kB / 1.026 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004385/1.397, allocations: 39.73 kB / 1.026 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/1.397, allocations: 19.62 kB / 1.026 GB, free: 11.11 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.0001772/1.398, allocations: 134.8 kB / 1.026 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.355e-05/1.398, allocations: 31.62 kB / 1.026 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.946e-05/1.398, allocations: 24.73 kB / 1.026 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/1.398, allocations: 7.938 kB / 1.026 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/1.398, allocations: 4 kB / 1.026 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/1.398, allocations: 0 / 1.026 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004851/1.398, allocations: 243.4 kB / 1.026 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/1.398, allocations: 0 / 1.026 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00039/1.399, allocations: 23.98 kB / 1.026 GB, free: 10.65 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/1.399, allocations: 4 kB / 1.026 GB, free: 10.65 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.446e-05/1.399, allocations: 11.8 kB / 1.026 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.395e-05/1.399, allocations: 4 kB / 1.026 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/1.399, allocations: 3.906 kB / 1.026 GB, free: 10.63 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001456/1.4, allocations: 346.6 kB / 1.027 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001832/1.402, allocations: 0.7681 MB / 1.028 GB, free: 9.625 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001694/1.403, allocations: 100.1 kB / 1.028 GB, free: 9.512 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001354/1.403, allocations: 11.98 kB / 1.028 GB, free: 9.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005195/1.403, allocations: 19.92 kB / 1.028 GB, free: 9.484 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/1.403, allocations: 23.06 kB / 1.028 GB, free: 9.465 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.339e-05/1.404, allocations: 11.98 kB / 1.028 GB, free: 9.453 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0003187/1.404, allocations: 151.9 kB / 1.028 GB, free: 9.328 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002439/1.406, allocations: 90.86 kB / 1.028 GB, free: 9.246 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.0007904/1.407, allocations: 172.6 kB / 1.028 GB, free: 9.07 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0008807/1.408, allocations: 209 kB / 1.028 GB, free: 8.902 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/1.408, allocations: 0 / 1.028 GB, free: 8.902 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003667/1.408, allocations: 79.11 kB / 1.028 GB, free: 8.848 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008122/1.409, allocations: 55.62 kB / 1.028 GB, free: 8.805 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003139/1.412, allocations: 0.594 MB / 1.029 GB, free: 8.23 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006868/1.413, allocations: 0.7704 MB / 1.03 GB, free: 7.43 MB / 0.6511 GB Notification: Performance of SimCode: time 1.733e-06/1.413, allocations: 0 / 1.03 GB, free: 7.43 MB / 0.6511 GB