Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",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.3-maint.7.0.x/package.mo): time 1.237/1.237, allocations: 249.4 MB / 256.7 MB, free: 7.027 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.001052/0.001052, allocations: 192.7 kB / 316 MB, free: 3.434 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.178/1.178, allocations: 205.2 MB / 0.5667 GB, free: 15.68 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.0008269/0.0008269, allocations: 93.12 kB / 0.671 GB, free: 4.816 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3447/0.3455, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.5237, allocations: 106.3 MB / 0.8847 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9875/1.511, allocations: 401.8 MB / 1.277 GB, free: 327 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002362/1.512, allocations: 96.69 kB / 1.277 GB, free: 327 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: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 1.028/2.539, allocations: 402.7 MB / 1.67 GB, free: 235.4 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/2.539, allocations: 10 kB / 1.67 GB, free: 235.4 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000689/2.54, allocations: 223.4 kB / 1.671 GB, free: 235.3 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003393/2.543, allocations: 2.082 MB / 1.673 GB, free: 234.9 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/2.543, allocations: 46.56 kB / 1.673 GB, free: 234.9 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/2.544, allocations: 95.22 kB / 1.673 GB, free: 234.9 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002034/2.546, allocations: 1.627 MB / 1.674 GB, free: 234.9 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001995/2.548, allocations: 1.671 MB / 1.676 GB, free: 234.7 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.565e-05/2.548, allocations: 5.344 kB / 1.676 GB, free: 234.7 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/2.548, allocations: 0 / 1.676 GB, free: 234.7 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-05/2.548, allocations: 41.22 kB / 1.676 GB, free: 234.7 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007963/2.556, allocations: 7.173 MB / 1.683 GB, free: 232.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/2.557, allocations: 1.249 MB / 1.684 GB, free: 232.1 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006312/2.558, allocations: 0.6252 MB / 1.685 GB, free: 232.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004167/2.562, allocations: 3.442 MB / 1.688 GB, free: 230.4 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/2.562, allocations: 40.97 kB / 1.688 GB, free: 230.3 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=86): time 2.745e-06/2.562, allocations: 0 / 1.688 GB, free: 230.3 MB / 0.8698 GB Notification: Performance of matching and sorting (n=86): time 0.002328/2.564, allocations: 1.177 MB / 1.689 GB, free: 230.2 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/2.564, allocations: 59.91 kB / 1.69 GB, free: 230.1 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001905/2.566, allocations: 1.25 MB / 1.691 GB, free: 230 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 8.363e-05/2.566, allocations: 25.7 kB / 1.691 GB, free: 229.9 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004156/2.567, allocations: 0.5929 MB / 1.691 GB, free: 229.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002783/2.567, allocations: 301.2 kB / 1.692 GB, free: 229.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.238e-05/2.567, allocations: 3.375 kB / 1.692 GB, free: 229.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001195/2.567, allocations: 368 kB / 1.692 GB, free: 229.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000956/2.568, allocations: 0.6659 MB / 1.693 GB, free: 229.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009514/2.569, allocations: 1 MB / 1.694 GB, free: 228.7 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002734/2.572, allocations: 1.265 MB / 1.695 GB, free: 228.7 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.917e-06/2.572, allocations: 7.875 kB / 1.695 GB, free: 228.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003972/2.576, allocations: 2.225 MB / 1.697 GB, free: 228 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006385/2.577, allocations: 3.483 MB / 1.7 GB, free: 224.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/2.577, allocations: 8.188 kB / 1.7 GB, free: 224.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.977e-05/2.577, allocations: 16.66 kB / 1.7 GB, free: 224.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/2.578, allocations: 338.7 kB / 1.701 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.685e-05/2.578, allocations: 27.38 kB / 1.701 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/2.579, allocations: 153.4 kB / 1.701 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/2.579, allocations: 65.47 kB / 1.701 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/2.579, allocations: 2.719 kB / 1.701 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003696/2.583, allocations: 2.062 MB / 1.703 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/2.583, allocations: 8.75 kB / 1.703 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.346e-05/2.583, allocations: 16.88 kB / 1.703 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/2.584, allocations: 341.4 kB / 1.703 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.82e-05/2.584, allocations: 26.73 kB / 1.703 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/2.586, allocations: 122.1 kB / 1.704 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001324/2.586, allocations: 62.77 kB / 1.704 GB, free: 223.7 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * 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.0002802/2.586, allocations: 138.7 kB / 1.704 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002866/2.586, allocations: 135.4 kB / 1.704 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002521/2.589, allocations: 1.313 MB / 1.705 GB, free: 223.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/2.589, allocations: 7.875 kB / 1.705 GB, free: 223.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/2.589, allocations: 0 / 1.705 GB, free: 223.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001861/2.591, allocations: 1.376 MB / 1.706 GB, free: 222.3 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00468/2.595, allocations: 2.787 MB / 1.709 GB, free: 221.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/2.596, allocations: 0.9062 kB / 1.709 GB, free: 221.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008092/2.596, allocations: 177.4 kB / 1.709 GB, free: 221.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-05/2.596, allocations: 5 kB / 1.709 GB, free: 221.2 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.01e-05/2.596, allocations: 13.33 kB / 1.709 GB, free: 221.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.526e-06/2.596, allocations: 12.16 kB / 1.709 GB, free: 221.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.267e-06/2.596, allocations: 1.094 kB / 1.709 GB, free: 221.2 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002989/2.599, allocations: 2.007 MB / 1.711 GB, free: 220.4 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003929/2.603, allocations: 3.088 MB / 1.714 GB, free: 219 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007668/2.604, allocations: 384.5 kB / 1.715 GB, free: 218.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002133/2.604, allocations: 21.95 kB / 1.715 GB, free: 218.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000707/2.605, allocations: 36.59 kB / 1.715 GB, free: 218.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.701e-05/2.605, allocations: 47.52 kB / 1.715 GB, free: 218.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.726e-05/2.605, allocations: 34.75 kB / 1.715 GB, free: 218.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001537/2.607, allocations: 0.9618 MB / 1.716 GB, free: 218.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004284/2.611, allocations: 1.05 MB / 1.717 GB, free: 218 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.001085/2.612, allocations: 488.1 kB / 1.717 GB, free: 217.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.003642/2.616, allocations: 2.308 MB / 1.72 GB, free: 217.2 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/2.616, allocations: 1.031 kB / 1.72 GB, free: 217.2 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007069/2.617, allocations: 0.4997 MB / 1.72 GB, free: 217 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002785/2.619, allocations: 0.6025 MB / 1.721 GB, free: 216.9 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005776/2.625, allocations: 3.06 MB / 1.724 GB, free: 216 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001851/2.627, allocations: 1.847 MB / 1.725 GB, free: 215.1 MB / 0.8698 GB Notification: Performance of SimCode: time 1.132e-06/2.627, allocations: 0 / 1.725 GB, free: 215.1 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)