Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.Validation.Tank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.Validation.Tank,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_Validation_Tank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.Validation.Tank,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.921/1.921, allocations: 390.4 MB / 397.7 MB, free: 10.67 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 193.2 kB / 490.8 MB, free: 11.19 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.333/1.333, allocations: 221.4 MB / 0.7863 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009732/0.0009733, allocations: 92.78 kB / 0.9264 GB, free: 4.477 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.3294/0.3304, allocations: 149.1 MB / 1.072 GB, free: 15.43 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8135/1.144, allocations: 143 MB / 1.212 GB, free: 156 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9867/2.131, allocations: 475.2 MB / 1.676 GB, free: 160.1 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/2.131, allocations: 91.84 kB / 1.676 GB, free: 160.1 MB / 1.026 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.731/4.862, allocations: 0.7777 GB / 2.454 GB, free: 183.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/4.862, allocations: 9.656 kB / 2.454 GB, free: 183.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004537/4.867, allocations: 0.6746 MB / 2.454 GB, free: 183.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005909/4.873, allocations: 2.297 MB / 2.456 GB, free: 183.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002457/4.873, allocations: 187.8 kB / 2.457 GB, free: 183.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004724/4.874, allocations: 92.33 kB / 2.457 GB, free: 183.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003249/4.877, allocations: 1.811 MB / 2.458 GB, free: 183.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002743/4.88, allocations: 1.738 MB / 2.46 GB, free: 183 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.517e-05/4.88, allocations: 3.094 kB / 2.46 GB, free: 183 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/4.88, allocations: 6.656 kB / 2.46 GB, free: 183 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.534e-05/4.88, allocations: 37.33 kB / 2.46 GB, free: 183 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01208/4.892, allocations: 8.328 MB / 2.468 GB, free: 180.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/4.893, allocations: 0.9778 MB / 2.469 GB, free: 180.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/4.895, allocations: 0.9112 MB / 2.47 GB, free: 180.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004942/4.895, allocations: 0.5112 MB / 2.471 GB, free: 179.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001467/4.897, allocations: 1.087 MB / 2.472 GB, free: 179.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 2.685e-06/4.897, allocations: 3.406 kB / 2.472 GB, free: 179.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=94): time 0.004878/4.902, allocations: 2.003 MB / 2.474 GB, free: 179.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.373e-05/4.902, allocations: 122.3 kB / 2.474 GB, free: 179.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002262/4.904, allocations: 1.643 MB / 2.475 GB, free: 179.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001426/4.904, allocations: 40.81 kB / 2.475 GB, free: 179.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004773/4.905, allocations: 0.5674 MB / 2.476 GB, free: 179 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000293/4.905, allocations: 288.7 kB / 2.476 GB, free: 178.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.281e-05/4.905, allocations: 0 / 2.476 GB, free: 178.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.703e-05/4.905, allocations: 341.5 kB / 2.477 GB, free: 178.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009664/4.906, allocations: 0.7867 MB / 2.477 GB, free: 178.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/4.907, allocations: 1.038 MB / 2.478 GB, free: 178.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002178/4.909, allocations: 0.8435 MB / 2.479 GB, free: 178.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/4.909, allocations: 0 / 2.479 GB, free: 178.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.004242/4.914, allocations: 2.12 MB / 2.481 GB, free: 178.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003042/4.914, allocations: 1.741 MB / 2.483 GB, free: 176.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/4.914, allocations: 3.781 kB / 2.483 GB, free: 176.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000259/4.914, allocations: 87.61 kB / 2.483 GB, free: 176.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/4.915, allocations: 255.3 kB / 2.483 GB, free: 176.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005237/4.916, allocations: 0.706 MB / 2.484 GB, free: 175.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001866/4.918, allocations: 205.6 kB / 2.484 GB, free: 175.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/4.918, allocations: 95.69 kB / 2.484 GB, free: 175.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 7.203e-06/4.918, allocations: 3.875 kB / 2.484 GB, free: 175.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003755/4.922, allocations: 1.867 MB / 2.486 GB, free: 175.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/4.922, allocations: 6.875 kB / 2.486 GB, free: 175.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002526/4.922, allocations: 92.41 kB / 2.486 GB, free: 175.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/4.923, allocations: 254.3 kB / 2.486 GB, free: 175.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001763/4.925, allocations: 1.817 MB / 2.488 GB, free: 174.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001958/4.927, allocations: 192.8 kB / 2.488 GB, free: 174.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001618/4.927, allocations: 95.17 kB / 2.489 GB, free: 174.4 MB / 1.151 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.0003929/4.927, allocations: 186.7 kB / 2.489 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003108/4.928, allocations: 192.3 kB / 2.489 GB, free: 174.2 MB / 1.151 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 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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.003775/4.932, allocations: 1.667 MB / 2.49 GB, free: 174.1 MB / 1.151 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