Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.Validation.Tank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.Validation.Tank,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_Validation_Tank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.Validation.Tank,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_Validation_Tank",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 9.1.1-maint.9.1.x/package.mo): time 2.064/2.064, allocations: 387.2 MB / 394.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 165.3 kB / 487 MB, free: 5.379 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 221.3 MB / 0.7819 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009713/0.0009713, allocations: 91.83 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5751/0.5761, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.8249, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.004/1.829, allocations: 474.4 MB / 1.669 GB, free: 14.68 MB / 1.104 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003339/1.829, allocations: 91.64 kB / 1.669 GB, free: 14.64 MB / 1.104 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 2.674/4.503, allocations: 0.7777 GB / 2.446 GB, free: 118.2 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/4.503, allocations: 12 kB / 2.446 GB, free: 118.2 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00457/4.507, allocations: 0.6721 MB / 2.447 GB, free: 117.5 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005225/4.513, allocations: 2.293 MB / 2.449 GB, free: 115.2 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/4.513, allocations: 193.2 kB / 2.449 GB, free: 115 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002754/4.513, allocations: 84 kB / 2.45 GB, free: 114.9 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002611/4.516, allocations: 1.817 MB / 2.451 GB, free: 113.1 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002384/4.518, allocations: 1.73 MB / 2.453 GB, free: 111.3 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.606e-05/4.518, allocations: 4 kB / 2.453 GB, free: 111.3 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001351/4.518, allocations: 3.906 kB / 2.453 GB, free: 111.3 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.512e-05/4.518, allocations: 39.98 kB / 2.453 GB, free: 111.3 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01134/4.53, allocations: 8.345 MB / 2.461 GB, free: 102.7 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/4.531, allocations: 0.9754 MB / 2.462 GB, free: 101.7 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/4.532, allocations: 0.9056 MB / 2.463 GB, free: 100.8 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004058/4.533, allocations: 0.5118 MB / 2.464 GB, free: 100.2 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001258/4.534, allocations: 1.087 MB / 2.465 GB, free: 99.09 MB / 1.135 GB Notification: Performance of pre-optimization done (n=94): time 3.547e-06/4.534, allocations: 7.984 kB / 2.465 GB, free: 99.09 MB / 1.135 GB Notification: Performance of matching and sorting (n=94): time 0.004488/4.538, allocations: 2.005 MB / 2.467 GB, free: 97.07 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/4.538, allocations: 120.4 kB / 2.467 GB, free: 96.93 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002319/4.541, allocations: 1.651 MB / 2.468 GB, free: 95.24 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.0001718/4.541, allocations: 41.7 kB / 2.468 GB, free: 95.2 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004758/4.541, allocations: 0.5684 MB / 2.469 GB, free: 94.62 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002874/4.542, allocations: 282.5 kB / 2.469 GB, free: 94.34 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.208e-05/4.542, allocations: 0 / 2.469 GB, free: 94.34 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 7.478e-05/4.542, allocations: 341.9 kB / 2.469 GB, free: 94 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009019/4.543, allocations: 0.7832 MB / 2.47 GB, free: 93.22 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/4.544, allocations: 1.04 MB / 2.471 GB, free: 92.07 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002349/4.546, allocations: 0.8449 MB / 2.472 GB, free: 91.23 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.84e-06/4.546, allocations: 0 / 2.472 GB, free: 91.23 MB / 1.135 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.004548/4.551, allocations: 2.116 MB / 2.474 GB, free: 89.11 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003014/4.551, allocations: 1.738 MB / 2.476 GB, free: 87.25 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/4.551, allocations: 11.98 kB / 2.476 GB, free: 87.23 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002629/4.551, allocations: 92.73 kB / 2.476 GB, free: 87.14 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/4.552, allocations: 251.6 kB / 2.476 GB, free: 86.89 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005288/4.553, allocations: 0.7013 MB / 2.477 GB, free: 86.17 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002126/4.555, allocations: 203.2 kB / 2.477 GB, free: 85.97 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001637/4.555, allocations: 95.92 kB / 2.477 GB, free: 85.88 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/4.555, allocations: 8 kB / 2.477 GB, free: 85.87 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003756/4.559, allocations: 1.861 MB / 2.479 GB, free: 84 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/4.559, allocations: 4 kB / 2.479 GB, free: 84 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002564/4.559, allocations: 104.4 kB / 2.479 GB, free: 83.9 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/4.561, allocations: 247.6 kB / 2.479 GB, free: 83.66 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/4.562, allocations: 1.809 MB / 2.481 GB, free: 81.73 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002049/4.564, allocations: 199.2 kB / 2.481 GB, free: 81.53 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/4.564, allocations: 99.92 kB / 2.481 GB, free: 81.43 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 38 ($whenCondition6,$PRE.TSou.nextTimeEvent,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition1,$PRE.iceTan.tanHeaTra.SOCCalc.charged,iceTan.tanHeaTra.SOCCalc.charged,$PRE.iceTan.tanHeaTra.SOCCalc.discharged,iceTan.tanHeaTra.SOCCalc.discharged,iceTan.tanHeaTra.SOCCalc.suspend,$PRE.iceTan.tanHeaTra.canFreeze.lesHys.y,iceTan.tanHeaTra.canFreeze.lesHys.y,$PRE.iceTan.tanHeaTra.canMelt.greHys.y,iceTan.tanHeaTra.canMelt.greHys.y,TSou.nextTimeEvent,$PRE.TSou.nextTimeEventScaled,TSou.nextTimeEventScaled,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,$PRE.iceTanUnc.tanHeaTra.SOCCalc.charged,iceTanUnc.tanHeaTra.SOCCalc.charged,$PRE.iceTanUnc.tanHeaTra.SOCCalc.discharged,iceTanUnc.tanHeaTra.SOCCalc.discharged,iceTanUnc.tanHeaTra.SOCCalc.suspend,$PRE.iceTanUnc.tanHeaTra.canFreeze.lesHys.y,iceTanUnc.tanHeaTra.canFreeze.lesHys.y,$PRE.iceTanUnc.tanHeaTra.canMelt.greHys.y,iceTanUnc.tanHeaTra.canMelt.greHys.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 108 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003981/4.565, allocations: 180.3 kB / 2.482 GB, free: 81.25 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003219/4.565, allocations: 197.6 kB / 2.482 GB, free: 81.05 MB / 1.135 GB Error: Too many equations, over-determined system. The model has 97 equation(s) and 95 variable(s). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Fluid/Interfaces/PartialTwoPortInterface.mo:23:3-26:52:writable] Warning: Equation 33 (size: 1) iceTanUnc.dp = sou.ports[2].p - iceTanUnc.vol.p is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $whenCondition1, TSet.a, TSet.b, TSet.last, TSet.nextEvent, TSet.nextEventScaled, TSet.timeScaled Equations used to solve those variables: Equation 30 (size: 1): TSet.timeScaled = time Equation 32 (size: 6): algorithm TSet.nextEvent := pre(TSet.nextEvent); TSet.last := pre(TSet.last); TSet.nextEventScaled := pre(TSet.nextEventScaled); TSet.b := pre(TSet.b); TSet.a := pre(TSet.a); $whenCondition1 := pre($whenCondition1); assert(not (TSet.table[1,1] > 0.0 or TSet.table[1,1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(TSet.table[1,1], 0, true, 6)); $whenCondition1 := time >= pre(TSet.nextEvent); when {$whenCondition1, false} then (TSet.a, TSet.b, TSet.nextEventScaled, TSet.last) := Modelica.Blocks.Sources.TimeTable$TSet.getInterpolationCoefficients({{TSet.table[1,1], TSet.table[1,2]}, {TSet.table[2,1], TSet.table[2,2]}, {TSet.table[3,1], TSet.table[3,2]}, {TSet.table[4,1], TSet.table[4,2]}, {TSet.table[5,1], TSet.table[5,2]}}, TSet.offset, TSet.startTime, TSet.timeScaled, TSet.last, 1e-13, TSet.shiftTime); TSet.nextEvent := TSet.nextEventScaled; end when; [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Media/Antifreeze/PropyleneGlycolWater.mo:57:5-58:80:writable] Warning: Equation 34 (size: 1) iceTanUnc.vol.dynBal.medium.T_degC = -273.15 + iceTanUnc.vol.dynBal.medium.T is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $whenCondition1, TSet.a, TSet.b, TSet.last, TSet.nextEvent, TSet.nextEventScaled, TSet.timeScaled Equations used to solve those variables: Equation 30 (size: 1): TSet.timeScaled = time Equation 32 (size: 6): algorithm TSet.nextEvent := pre(TSet.nextEvent); TSet.last := pre(TSet.last); TSet.nextEventScaled := pre(TSet.nextEventScaled); TSet.b := pre(TSet.b); TSet.a := pre(TSet.a); $whenCondition1 := pre($whenCondition1); assert(not (TSet.table[1,1] > 0.0 or TSet.table[1,1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(TSet.table[1,1], 0, true, 6)); $whenCondition1 := time >= pre(TSet.nextEvent); when {$whenCondition1, false} then (TSet.a, TSet.b, TSet.nextEventScaled, TSet.last) := Modelica.Blocks.Sources.TimeTable$TSet.getInterpolationCoefficients({{TSet.table[1,1], TSet.table[1,2]}, {TSet.table[2,1], TSet.table[2,2]}, {TSet.table[3,1], TSet.table[3,2]}, {TSet.table[4,1], TSet.table[4,2]}, {TSet.table[5,1], TSet.table[5,2]}}, TSet.offset, TSet.startTime, TSet.timeScaled, TSet.last, 1e-13, TSet.shiftTime); TSet.nextEvent := TSet.nextEventScaled; end when; [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Media/Antifreeze/PropyleneGlycolWater.mo:59:5-60:45:writable] Warning: Equation 35 (size: 1) iceTanUnc.vol.dynBal.medium.p_bar = 1e-05 * iceTanUnc.vol.p is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $whenCondition1, TSet.a, TSet.b, TSet.last, TSet.nextEvent, TSet.nextEventScaled, TSet.timeScaled Equations used to solve those variables: Equation 30 (size: 1): TSet.timeScaled = time Equation 32 (size: 6): algorithm TSet.nextEvent := pre(TSet.nextEvent); TSet.last := pre(TSet.last); TSet.nextEventScaled := pre(TSet.nextEventScaled); TSet.b := pre(TSet.b); TSet.a := pre(TSet.a); $whenCondition1 := pre($whenCondition1); assert(not (TSet.table[1,1] > 0.0 or TSet.table[1,1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(TSet.table[1,1], 0, true, 6)); $whenCondition1 := time >= pre(TSet.nextEvent); when {$whenCondition1, false} then (TSet.a, TSet.b, TSet.nextEventScaled, TSet.last) := Modelica.Blocks.Sources.TimeTable$TSet.getInterpolationCoefficients({{TSet.table[1,1], TSet.table[1,2]}, {TSet.table[2,1], TSet.table[2,2]}, {TSet.table[3,1], TSet.table[3,2]}, {TSet.table[4,1], TSet.table[4,2]}, {TSet.table[5,1], TSet.table[5,2]}}, TSet.offset, TSet.startTime, TSet.timeScaled, TSet.last, 1e-13, TSet.shiftTime); TSet.nextEvent := TSet.nextEventScaled; end when; [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Media/Antifreeze/PropyleneGlycolWater.mo:87:5-87:33:writable] Warning: Equation 36 (size: 1) iceTanUnc.vol.ports[2].h_outflow = 3857.004010495233 * iceTanUnc.vol.dynBal.medium.T_degC is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $whenCondition1, TSet.a, TSet.b, TSet.last, TSet.nextEvent, TSet.nextEventScaled, TSet.timeScaled Equations used to solve those variables: Equation 30 (size: 1): TSet.timeScaled = time Equation 32 (size: 6): algorithm TSet.nextEvent := pre(TSet.nextEvent); TSet.last := pre(TSet.last); TSet.nextEventScaled := pre(TSet.nextEventScaled); TSet.b := pre(TSet.b); TSet.a := pre(TSet.a); $whenCondition1 := pre($whenCondition1); assert(not (TSet.table[1,1] > 0.0 or TSet.table[1,1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(TSet.table[1,1], 0, true, 6)); $whenCondition1 := time >= pre(TSet.nextEvent); when {$whenCondition1, false} then (TSet.a, TSet.b, TSet.nextEventScaled, TSet.last) := Modelica.Blocks.Sources.TimeTable$TSet.getInterpolationCoefficients({{TSet.table[1,1], TSet.table[1,2]}, {TSet.table[2,1], TSet.table[2,2]}, {TSet.table[3,1], TSet.table[3,2]}, {TSet.table[4,1], TSet.table[4,2]}, {TSet.table[5,1], TSet.table[5,2]}}, TSet.offset, TSet.startTime, TSet.timeScaled, TSet.last, 1e-13, TSet.shiftTime); TSet.nextEvent := TSet.nextEventScaled; end when; [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Fluid/Interfaces/ConservationEquation.mo:261:5-261:19:writable] Warning: Equation 37 (size: 1) iceTanUnc.vol.dynBal.U = iceTanUnc.vol.dynBal.m * iceTanUnc.vol.ports[2].h_outflow is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $whenCondition1, TSet.a, TSet.b, TSet.last, TSet.nextEvent, TSet.nextEventScaled, TSet.timeScaled Equations used to solve those variables: Equation 30 (size: 1): TSet.timeScaled = time Equation 32 (size: 6): algorithm TSet.nextEvent := pre(TSet.nextEvent); TSet.last := pre(TSet.last); TSet.nextEventScaled := pre(TSet.nextEventScaled); TSet.b := pre(TSet.b); TSet.a := pre(TSet.a); $whenCondition1 := pre($whenCondition1); assert(not (TSet.table[1,1] > 0.0 or TSet.table[1,1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(TSet.table[1,1], 0, true, 6)); $whenCondition1 := time >= pre(TSet.nextEvent); when {$whenCondition1, false} then (TSet.a, TSet.b, TSet.nextEventScaled, TSet.last) := Modelica.Blocks.Sources.TimeTable$TSet.getInterpolationCoefficients({{TSet.table[1,1], TSet.table[1,2]}, {TSet.table[2,1], TSet.table[2,2]}, {TSet.table[3,1], TSet.table[3,2]}, {TSet.table[4,1], TSet.table[4,2]}, {TSet.table[5,1], TSet.table[5,2]}}, TSet.offset, TSet.startTime, TSet.timeScaled, TSet.last, 1e-13, TSet.shiftTime); TSet.nextEvent := TSet.nextEventScaled; end when; Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00374/4.569, allocations: 1.671 MB / 2.483 GB, free: 79.38 MB / 1.135 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. Error: Internal error SimCode: The model Buildings.Fluid.Storage.Ice.Validation.Tank could not be translated to FMU