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/ModelicaServices 4.0.0+maint.om/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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 104.2 kB / 17.59 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 187.4 kB / 18.51 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 222.9 MB / 242.2 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.175/0.175, allocations: 38.02 MB / 330.4 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001257, allocations: 66.47 kB / 399.5 MB, free: 34.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09668/0.09796, allocations: 58.06 MB / 457.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008258/0.1063, allocations: 6.552 MB / 464.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003096/0.1094, allocations: 1.656 MB / 465.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006004/0.11, allocations: 23.88 kB / 465.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006497/0.1108, allocations: 166.7 kB / 465.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001265/0.112, allocations: 437.8 kB / 466.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000815/0.1129, allocations: 351.4 kB / 466.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00178/0.1147, allocations: 1.504 MB / 468.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005704/0.1153, allocations: 405.7 kB / 468.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001156/0.1164, allocations: 0.5879 MB / 469.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001308/0.1178, allocations: 0.6504 MB / 469.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003574/0.1181, allocations: 100 kB / 469.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000395/0.1185, allocations: 96 kB / 470 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005577/0.1191, allocations: 419 kB / 470.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008494/0.12, allocations: 466 kB / 470.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001317/0.1213, allocations: 1.165 MB / 472 MB, free: 9.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1213, allocations: 0 / 472 MB, free: 9.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1213, allocations: 0 / 472 MB, free: 9.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.98e-05/0.1214, allocations: 8 kB / 472.1 MB, free: 9.469 MB / 350.1 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.003236/0.1246, allocations: 1.309 MB / 473.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.1247, allocations: 15.88 kB / 473.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.1249, allocations: 95.94 kB / 473.5 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.1263, allocations: 0.6937 MB / 474.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004317/0.1268, allocations: 347 kB / 474.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.1269, allocations: 64 kB / 474.6 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002351/0.1293, allocations: 1.149 MB / 475.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.1293, allocations: 3.938 kB / 475.7 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001073/0.1294, allocations: 28 kB / 475.7 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001288/0.1296, allocations: 37.28 kB / 475.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002822/0.1324, allocations: 1.176 MB / 477 MB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00551/0.1379, allocations: 3.488 MB / 480.4 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002566/0.1405, allocations: 0.9574 MB / 481.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001707/0.1423, allocations: 0.6864 MB / 482.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.916e-05/0.1424, allocations: 12.56 kB / 482.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001569/0.1439, allocations: 0.6772 MB / 482.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 3.216e-06/0.144, allocations: 0 / 482.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.01996/0.1639, allocations: 5.667 MB / 488.4 MB, free: 8.648 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.8e-05/0.164, allocations: 89.66 kB / 488.5 MB, free: 8.539 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005956/0.1646, allocations: 469.8 kB / 489 MB, free: 8.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001231/0.1648, allocations: 45.7 kB / 489 MB, free: 8.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002536/0.165, allocations: 320.3 kB / 489.4 MB, free: 7.703 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/0.1653, allocations: 205.1 kB / 489.6 MB, free: 7.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002623/0.1655, allocations: 130.2 kB / 489.7 MB, free: 7.367 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1657, allocations: 370.8 kB / 490 MB, free: 6.996 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.1668, allocations: 0.509 MB / 490.6 MB, free: 6.488 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/0.168, allocations: 0.6258 MB / 491.2 MB, free: 5.824 MB / 366.1 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.006913/0.1749, allocations: 3.135 MB / 494.3 MB, free: 2.609 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.1749, allocations: 0 / 494.3 MB, free: 2.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007637/0.1826, allocations: 2.498 MB / 496.8 MB, free: 96 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.056e-05/0.1827, allocations: 53.69 kB / 496.9 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.1827, allocations: 4 kB / 496.9 MB, free: 32 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002415/0.1851, allocations: 1.086 MB / 498 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005126/0.1856, allocations: 115.7 kB / 498.1 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01591/0.2016, allocations: 6.888 MB / 0.4931 GB, free: 7.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008242/0.2024, allocations: 79.95 kB / 0.4932 GB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.2026, allocations: 35.98 kB / 0.4932 GB, free: 7.691 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: 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[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004785/0.2031, allocations: 279.4 kB / 0.4935 GB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.2032, allocations: 63.23 kB / 0.4936 GB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00808/0.2113, allocations: 2.425 MB / 0.4959 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.2113, allocations: 8 kB / 0.4959 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2114, allocations: 7.938 kB / 0.4959 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.2114, allocations: 3.984 kB / 0.4959 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00973/0.2211, allocations: 3.56 MB / 0.4994 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.2211, allocations: 0 / 0.4994 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003844/0.2215, allocations: 79.89 kB / 0.4995 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002411/0.224, allocations: 1.094 MB / 0.5006 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.65e-05/0.2241, allocations: 19.98 kB / 0.5006 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2191/0.4432, allocations: 6.832 MB / 0.5073 GB, free: 55.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.4433, allocations: 5.156 kB / 0.5073 GB, free: 55.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009969/0.4533, allocations: 3.2 MB / 0.5104 GB, free: 54.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004167/0.4537, allocations: 226.5 kB / 0.5106 GB, free: 54.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.4539, allocations: 33.14 kB / 0.5106 GB, free: 54.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000741/0.4546, allocations: 92.86 kB / 0.5107 GB, free: 54.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000485/0.4551, allocations: 171.2 kB / 0.5109 GB, free: 54.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.117e-05/0.4552, allocations: 27.16 kB / 0.5109 GB, free: 54.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004506/0.4556, allocations: 322.7 kB / 0.5112 GB, free: 54.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4557, allocations: 0 / 0.5112 GB, free: 54.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009856/0.4566, allocations: 223.8 kB / 0.5114 GB, free: 54.63 MB / 382.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001822/0.4568, allocations: 132.7 kB / 0.5116 GB, free: 54.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00465/0.4615, allocations: 1.841 MB / 0.5134 GB, free: 53.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.4615, allocations: 0 / 0.5134 GB, free: 53.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003104/0.4646, allocations: 1.113 MB / 0.5144 GB, free: 53.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009616/0.4656, allocations: 161.1 kB / 0.5146 GB, free: 53.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.4687, allocations: 1.772 MB / 0.5163 GB, free: 52.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.4692, allocations: 1 MB / 0.5173 GB, free: 51.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.4693, allocations: 44.47 kB / 0.5173 GB, free: 51.95 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4694, allocations: 0 / 0.5173 GB, free: 51.95 MB / 382.1 MB Notification: Performance of Templates: time 0.01545/0.4848, allocations: 13.45 MB / 0.5305 GB, free: 42.16 MB / 382.1 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)