Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001109/0.001109, allocations: 183.3 kB / 17.4 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.534/1.534, allocations: 194.5 MB / 212.6 MB, free: 2.852 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001766/0.001766, allocations: 124.7 kB / 257.9 MB, free: 4.246 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1776/0.1776, allocations: 38.02 MB / 341.1 MB, free: 1.164 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003663/0.0003663, allocations: 8 kB / 405 MB, free: 68.48 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09412/0.09451, allocations: 53.24 MB / 458.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3877/0.4822, allocations: 99.41 MB / 0.5446 GB, free: 11.58 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/0.4826, allocations: 107.5 kB / 0.5447 GB, free: 11.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05013/0.5328, allocations: 17.46 MB / 0.5617 GB, free: 12.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.5328, allocations: 224 / 0.5617 GB, free: 12.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.449e-05/0.5329, allocations: 23.88 kB / 0.5618 GB, free: 12.3 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.003367/0.5363, allocations: 1.206 MB / 0.5629 GB, free: 11.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/0.5363, allocations: 12.02 kB / 0.563 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004543/0.5368, allocations: 99.91 kB / 0.5631 GB, free: 10.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002606/0.5394, allocations: 0.9941 MB / 0.564 GB, free: 10.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005114/0.5399, allocations: 355.3 kB / 0.5644 GB, free: 9.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001973/0.5402, allocations: 64.75 kB / 0.5644 GB, free: 9.707 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002625/0.5428, allocations: 1.211 MB / 0.5656 GB, free: 8.754 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/0.5428, allocations: 0 / 0.5656 GB, free: 8.754 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.944e-05/0.5429, allocations: 23.75 kB / 0.5656 GB, free: 8.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/0.543, allocations: 20 kB / 0.5657 GB, free: 8.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003013/0.546, allocations: 1.274 MB / 0.5669 GB, free: 7.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005646/0.5517, allocations: 3.547 MB / 0.5704 GB, free: 4.855 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002446/0.5541, allocations: 1.033 MB / 0.5714 GB, free: 4.047 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001695/0.5559, allocations: 0.7445 MB / 0.5721 GB, free: 3.473 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.44e-05/0.5559, allocations: 12.56 kB / 0.5721 GB, free: 3.461 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001579/0.5575, allocations: 0.7371 MB / 0.5728 GB, free: 2.867 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 3.376e-06/0.5575, allocations: 0 / 0.5728 GB, free: 2.867 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.02072/0.5783, allocations: 7.044 MB / 0.5797 GB, free: 12.46 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.38e-05/0.5784, allocations: 97.53 kB / 0.5798 GB, free: 12.36 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006381/0.579, allocations: 463.7 kB / 0.5802 GB, free: 11.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001129/0.5792, allocations: 41.2 kB / 0.5803 GB, free: 11.95 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002743/0.5795, allocations: 332.1 kB / 0.5806 GB, free: 11.71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002352/0.5797, allocations: 199.3 kB / 0.5808 GB, free: 11.54 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.874e-05/0.5798, allocations: 11.69 kB / 0.5808 GB, free: 11.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.58, allocations: 377.7 kB / 0.5812 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.5812, allocations: 0.5495 MB / 0.5817 GB, free: 10.78 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001249/0.5824, allocations: 0.6735 MB / 0.5824 GB, free: 10.22 MB / 394.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007229/0.5897, allocations: 3.374 MB / 0.5856 GB, free: 7.402 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.5897, allocations: 0 / 0.5856 GB, free: 7.402 MB / 394.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008046/0.5978, allocations: 3.039 MB / 0.5886 GB, free: 4.734 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.56e-05/0.5978, allocations: 45 kB / 0.5887 GB, free: 4.688 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.977e-05/0.5979, allocations: 4 kB / 0.5887 GB, free: 4.684 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002519/0.6004, allocations: 1.187 MB / 0.5898 GB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005307/0.601, allocations: 111 kB / 0.5899 GB, free: 3.516 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01546/0.6164, allocations: 7.121 MB / 0.5969 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008633/0.6173, allocations: 104 kB / 0.597 GB, free: 12.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001572/0.6175, allocations: 47.91 kB / 0.597 GB, free: 12.95 MB / 410.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * 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 {5 11} Notification: Performance of prepare postOptimizeDAE: time 0.0007014/0.6182, allocations: 283.3 kB / 0.5973 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001802/0.6184, allocations: 55.34 kB / 0.5973 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008184/0.6266, allocations: 3.003 MB / 0.6003 GB, free: 9.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.6266, allocations: 8 kB / 0.6003 GB, free: 9.582 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.6266, allocations: 0 / 0.6003 GB, free: 9.582 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.6267, allocations: 0 / 0.6003 GB, free: 9.582 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.6369, allocations: 4.13 MB / 0.6043 GB, free: 5.359 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.6369, allocations: 0 / 0.6043 GB, free: 5.359 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003645/0.6373, allocations: 87.77 kB / 0.6044 GB, free: 5.273 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002459/0.6398, allocations: 1.184 MB / 0.6056 GB, free: 4.086 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001222/0.6399, allocations: 23.97 kB / 0.6056 GB, free: 4.062 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01519/0.6551, allocations: 7.092 MB / 0.6125 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.6552, allocations: 0 / 0.6125 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009799/0.665, allocations: 3.821 MB / 0.6162 GB, free: 8.973 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004429/0.6655, allocations: 224.3 kB / 0.6165 GB, free: 8.734 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.6656, allocations: 39.92 kB / 0.6165 GB, free: 8.695 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007448/0.6664, allocations: 123.9 kB / 0.6166 GB, free: 8.574 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004065/0.6668, allocations: 168.2 kB / 0.6168 GB, free: 8.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.158e-05/0.6669, allocations: 23.98 kB / 0.6168 GB, free: 8.387 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004196/0.6673, allocations: 322.9 kB / 0.6171 GB, free: 8.074 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6673, allocations: 0 / 0.6171 GB, free: 8.074 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001033/0.6683, allocations: 236.1 kB / 0.6173 GB, free: 7.844 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 {5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002799/0.6686, allocations: 141.5 kB / 0.6175 GB, free: 7.699 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004811/0.6735, allocations: 1.934 MB / 0.6194 GB, free: 5.738 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.6735, allocations: 0 / 0.6194 GB, free: 5.738 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003264/0.6767, allocations: 1.271 MB / 0.6206 GB, free: 4.453 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.6778, allocations: 149.9 kB / 0.6207 GB, free: 4.309 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00388/0.6817, allocations: 2.012 MB / 0.6227 GB, free: 2.246 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009502/0.6827, allocations: 0.997 MB / 0.6237 GB, free: 1.219 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005148/0.6832, allocations: 121.2 kB / 0.6238 GB, free: 1.098 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.6834, allocations: 51.42 kB / 0.6238 GB, free: 1.051 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6834, allocations: 0 / 0.6238 GB, free: 1.051 MB / 426.7 MB Notification: Performance of Templates: time 0.02522/0.7086, allocations: 15.32 MB / 0.6388 GB, free: 1.723 MB / 442.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)