Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerTable.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: translateModel(Buildings.Fluid.Boilers.Examples.BoilerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|boi1.sta_a.T|boi1.sta_b.T|boi2.sta_b.T|boi1.eta|boi2.eta|y.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerTable") translateModel(Buildings.Fluid.Boilers.Examples.BoilerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|boi1.sta_a.T|boi1.sta_b.T|boi2.sta_b.T|boi1.eta|boi2.eta|y.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.177/2.177, allocations: 387.4 MB / 394.9 MB, free: 13.42 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.0009361/0.0009361, allocations: 176.8 kB / 487.4 MB, free: 5.074 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.475/1.475, allocations: 221.5 MB / 0.7824 GB, free: 0.9805 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.0008757/0.0008755, allocations: 87.97 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.727e-05/1.738e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.237, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.056/1.294, allocations: 423.2 MB / 1.619 GB, free: 15.41 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/1.294, allocations: 92 kB / 1.619 GB, free: 15.36 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.659/2.953, allocations: 480.1 MB / 2.088 GB, free: 117.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.445e-06/2.953, allocations: 4 kB / 2.088 GB, free: 117.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003923/2.953, allocations: 43.98 kB / 2.088 GB, free: 117.4 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 235 * Number of variables: 235 Notification: Performance of Generate backend data structure: time 0.006368/2.96, allocations: 2.061 MB / 2.09 GB, free: 115.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/2.96, allocations: 8.031 kB / 2.09 GB, free: 115.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001143/2.961, allocations: 253.1 kB / 2.09 GB, free: 115 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006975/2.968, allocations: 2.06 MB / 2.093 GB, free: 112.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.176e-05/2.968, allocations: 39.95 kB / 2.093 GB, free: 112.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003236/2.968, allocations: 56 kB / 2.093 GB, free: 112.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002167/2.97, allocations: 0.6405 MB / 2.093 GB, free: 112.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002417/2.973, allocations: 0.8787 MB / 2.094 GB, free: 111.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.833e-05/2.973, allocations: 0 / 2.094 GB, free: 111.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001424/2.973, allocations: 4 kB / 2.094 GB, free: 111.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.487e-05/2.973, allocations: 33.98 kB / 2.094 GB, free: 111.1 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009384/2.983, allocations: 4.744 MB / 2.099 GB, free: 106.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/2.984, allocations: 0.5396 MB / 2.099 GB, free: 105.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006377/2.985, allocations: 306.8 kB / 2.1 GB, free: 105.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004809/2.985, allocations: 0.5069 MB / 2.1 GB, free: 104.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007478/2.986, allocations: 400.1 kB / 2.1 GB, free: 104.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=62): time 3.948e-06/2.986, allocations: 3.938 kB / 2.1 GB, free: 104.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=64): time 0.007321/2.993, allocations: 2.042 MB / 2.102 GB, free: 102.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/2.994, allocations: 123.2 kB / 2.103 GB, free: 102 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005892/2.999, allocations: 2.258 MB / 2.105 GB, free: 99.75 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001782/3, allocations: 29.7 kB / 2.105 GB, free: 99.71 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001184/3.001, allocations: 0.914 MB / 2.106 GB, free: 98.79 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003021/3.001, allocations: 197.1 kB / 2.106 GB, free: 98.59 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.155e-05/3.001, allocations: 4 kB / 2.106 GB, free: 98.59 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.825e-05/3.001, allocations: 337.8 kB / 2.106 GB, free: 98.25 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006146/3.002, allocations: 253.5 kB / 2.106 GB, free: 98 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007771/3.003, allocations: 459.5 kB / 2.107 GB, free: 97.47 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/3.004, allocations: 328.8 kB / 2.107 GB, free: 97.15 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.914e-06/3.004, allocations: 4 kB / 2.107 GB, free: 97.15 MB / 1.151 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00344/3.008, allocations: 1.029 MB / 2.108 GB, free: 96.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004077/3.008, allocations: 1.644 MB / 2.11 GB, free: 94.28 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/3.008, allocations: 4 kB / 2.11 GB, free: 94.28 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008396/3.009, allocations: 141.5 kB / 2.11 GB, free: 94.13 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007863/3.01, allocations: 119.8 kB / 2.11 GB, free: 94.02 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00209/3.012, allocations: 2.167 MB / 2.112 GB, free: 91.71 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002205/3.014, allocations: 83.81 kB / 2.112 GB, free: 91.62 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001627/3.014, allocations: 40 kB / 2.112 GB, free: 91.59 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/3.014, allocations: 6.031 kB / 2.112 GB, free: 91.58 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002662/3.017, allocations: 0.8657 MB / 2.113 GB, free: 90.71 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/3.017, allocations: 4 kB / 2.113 GB, free: 90.71 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004165/3.017, allocations: 101.7 kB / 2.113 GB, free: 90.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007216/3.018, allocations: 119.8 kB / 2.113 GB, free: 90.48 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002045/3.02, allocations: 2.187 MB / 2.115 GB, free: 88.15 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/3.022, allocations: 63.84 kB / 2.116 GB, free: 88.09 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001319/3.022, allocations: 39.98 kB / 2.116 GB, free: 88.05 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,y.a,y.b,y.last,$PRE.y.nextEvent,y.nextEvent,y.nextEventScaled,TIn.a,TIn.b,TIn.last,$PRE.TIn.nextEvent,TIn.nextEvent,TIn.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003546/3.023, allocations: 194.4 kB / 2.116 GB, free: 87.84 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00077/3.024, allocations: 201.5 kB / 2.116 GB, free: 87.64 MB / 1.151 GB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too many equations, over-determined system. The model has 70 equation(s) and 68 variable(s). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Sources.mo:1452:5-1452:32:writable] Warning: Equation 37 (size: 1) TIn.timeScaled = time is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $whenCondition1, y.a, y.b, y.last, y.nextEvent, y.nextEventScaled, y.timeScaled Equations used to solve those variables: Equation 34 (size: 1): y.timeScaled = time Equation 36 (size: 6): algorithm y.nextEvent := pre(y.nextEvent); y.last := pre(y.last); y.nextEventScaled := pre(y.nextEventScaled); y.b := pre(y.b); y.a := pre(y.a); $whenCondition1 := pre($whenCondition1); assert(not (y.table[1,1] > 0.0 or y.table[1,1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(y.table[1,1], 6, 0, true)); $whenCondition1 := time >= pre(y.nextEvent); when {$whenCondition1, false} then (y.a, y.b, y.nextEventScaled, y.last) := Modelica.Blocks.Sources.TimeTable$y.getInterpolationCoefficients({{y.table[1,1], y.table[1,2]}, {y.table[2,1], y.table[2,2]}, {y.table[3,1], y.table[3,2]}, {y.table[4,1], y.table[4,2]}, {y.table[5,1], y.table[5,2]}, {y.table[6,1], y.table[6,2]}}, y.offset, y.startTime, y.timeScaled, y.last, 1e-13, y.shiftTime); y.nextEvent := y.nextEventScaled; end when; [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Sources.mo:1453:5-1453:25:writable] Warning: Equation 38 (size: 1) TIn.y = TIn.a * TIn.timeScaled + TIn.b is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $whenCondition1, y.a, y.b, y.last, y.nextEvent, y.nextEventScaled, y.timeScaled Equations used to solve those variables: Equation 34 (size: 1): y.timeScaled = time Equation 36 (size: 6): algorithm y.nextEvent := pre(y.nextEvent); y.last := pre(y.last); y.nextEventScaled := pre(y.nextEventScaled); y.b := pre(y.b); y.a := pre(y.a); $whenCondition1 := pre($whenCondition1); assert(not (y.table[1,1] > 0.0 or y.table[1,1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(y.table[1,1], 6, 0, true)); $whenCondition1 := time >= pre(y.nextEvent); when {$whenCondition1, false} then (y.a, y.b, y.nextEventScaled, y.last) := Modelica.Blocks.Sources.TimeTable$y.getInterpolationCoefficients({{y.table[1,1], y.table[1,2]}, {y.table[2,1], y.table[2,2]}, {y.table[3,1], y.table[3,2]}, {y.table[4,1], y.table[4,2]}, {y.table[5,1], y.table[5,2]}, {y.table[6,1], y.table[6,2]}}, y.offset, y.startTime, y.timeScaled, y.last, 1e-13, y.shiftTime); y.nextEvent := y.nextEventScaled; end when; Warning: Equation 39 (size: 6) algorithm TIn.nextEvent := pre(TIn.nextEvent); TIn.last := pre(TIn.last); TIn.nextEventScaled := pre(TIn.nextEventScaled); TIn.b := pre(TIn.b); TIn.a := pre(TIn.a); $whenCondition2 := pre($whenCondition2); assert(not (TIn.table[1,1] > 0.0 or TIn.table[1,1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(TIn.table[1,1], 6, 0, true)); $whenCondition2 := time >= pre(TIn.nextEvent); when {$whenCondition2, false} then (TIn.a, TIn.b, TIn.nextEventScaled, TIn.last) := Modelica.Blocks.Sources.TimeTable$TIn.getInterpolationCoefficients({{TIn.table[1,1], TIn.table[1,2]}, {TIn.table[2,1], TIn.table[2,2]}, {TIn.table[3,1], TIn.table[3,2]}, {TIn.table[4,1], TIn.table[4,2]}, {TIn.table[5,1], TIn.table[5,2]}, {TIn.table[6,1], TIn.table[6,2]}}, TIn.offset, TIn.startTime, TIn.timeScaled, TIn.last, 1e-13, TIn.shiftTime); TIn.nextEvent := TIn.nextEventScaled; end when; is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $whenCondition1, y.a, y.b, y.last, y.nextEvent, y.nextEventScaled, y.timeScaled Equations used to solve those variables: Equation 34 (size: 1): y.timeScaled = time Equation 36 (size: 6): algorithm y.nextEvent := pre(y.nextEvent); y.last := pre(y.last); y.nextEventScaled := pre(y.nextEventScaled); y.b := pre(y.b); y.a := pre(y.a); $whenCondition1 := pre($whenCondition1); assert(not (y.table[1,1] > 0.0 or y.table[1,1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(y.table[1,1], 6, 0, true)); $whenCondition1 := time >= pre(y.nextEvent); when {$whenCondition1, false} then (y.a, y.b, y.nextEventScaled, y.last) := Modelica.Blocks.Sources.TimeTable$y.getInterpolationCoefficients({{y.table[1,1], y.table[1,2]}, {y.table[2,1], y.table[2,2]}, {y.table[3,1], y.table[3,2]}, {y.table[4,1], y.table[4,2]}, {y.table[5,1], y.table[5,2]}, {y.table[6,1], y.table[6,2]}}, y.offset, y.startTime, y.timeScaled, y.last, 1e-13, y.shiftTime); y.nextEvent := y.nextEventScaled; end when; [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Thermal/HeatTransfer/Interfaces/HeatPort_b.mo:2:1-37:15:writable] Warning: Equation 40 (size: 1) TAmb.port.Q_flow + boi1.UAOve.Q_flow + boi2.UAOve.Q_flow = 0.0 is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $whenCondition1, y.a, y.b, y.last, y.nextEvent, y.nextEventScaled, y.timeScaled Equations used to solve those variables: Equation 34 (size: 1): y.timeScaled = time Equation 36 (size: 6): algorithm y.nextEvent := pre(y.nextEvent); y.last := pre(y.last); y.nextEventScaled := pre(y.nextEventScaled); y.b := pre(y.b); y.a := pre(y.a); $whenCondition1 := pre($whenCondition1); assert(not (y.table[1,1] > 0.0 or y.table[1,1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(y.table[1,1], 6, 0, true)); $whenCondition1 := time >= pre(y.nextEvent); when {$whenCondition1, false} then (y.a, y.b, y.nextEventScaled, y.last) := Modelica.Blocks.Sources.TimeTable$y.getInterpolationCoefficients({{y.table[1,1], y.table[1,2]}, {y.table[2,1], y.table[2,2]}, {y.table[3,1], y.table[3,2]}, {y.table[4,1], y.table[4,2]}, {y.table[5,1], y.table[5,2]}, {y.table[6,1], y.table[6,2]}}, y.offset, y.startTime, y.timeScaled, y.last, 1e-13, y.shiftTime); y.nextEvent := y.nextEventScaled; end when; [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Thermal/HeatTransfer/Interfaces/HeatPort_b.mo:2:1-37:15:writable] Warning: Equation 41 (size: 1) boi1.heaCapDry.port.Q_flow + boi1.vol.heatPort.Q_flow + (-boi1.UAOve.Q_flow) - boi1.QWat_flow = 0.0 is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $whenCondition1, y.a, y.b, y.last, y.nextEvent, y.nextEventScaled, y.timeScaled Equations used to solve those variables: Equation 34 (size: 1): y.timeScaled = time Equation 36 (size: 6): algorithm y.nextEvent := pre(y.nextEvent); y.last := pre(y.last); y.nextEventScaled := pre(y.nextEventScaled); y.b := pre(y.b); y.a := pre(y.a); $whenCondition1 := pre($whenCondition1); assert(not (y.table[1,1] > 0.0 or y.table[1,1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(y.table[1,1], 6, 0, true)); $whenCondition1 := time >= pre(y.nextEvent); when {$whenCondition1, false} then (y.a, y.b, y.nextEventScaled, y.last) := Modelica.Blocks.Sources.TimeTable$y.getInterpolationCoefficients({{y.table[1,1], y.table[1,2]}, {y.table[2,1], y.table[2,2]}, {y.table[3,1], y.table[3,2]}, {y.table[4,1], y.table[4,2]}, {y.table[5,1], y.table[5,2]}, {y.table[6,1], y.table[6,2]}}, y.offset, y.startTime, y.timeScaled, y.last, 1e-13, y.shiftTime); y.nextEvent := y.nextEventScaled; end when; Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003066/3.027, allocations: 1.072 MB / 2.117 GB, free: 86.57 MB / 1.151 GB Error: post-optimization module wrapFunctionCalls (simulation) failed.