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.001715/0.001715, allocations: 109 kB / 16.51 MB, free: 6.707 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.001238/0.001239, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.403/1.403, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1926/0.1926, allocations: 38.03 MB / 329.3 MB, free: 8.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 60.78 kB / 398.1 MB, free: 34.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.112, allocations: 58.05 MB / 456.1 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.009344/0.1214, allocations: 7.794 MB / 463.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004175/0.1256, allocations: 2.046 MB / 466 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006768/0.1263, allocations: 51.69 kB / 466 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005995/0.127, allocations: 143.1 kB / 466.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009733/0.128, allocations: 402.2 kB / 466.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006737/0.1287, allocations: 307.7 kB / 466.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00182/0.1305, allocations: 2.007 MB / 468.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004698/0.131, allocations: 328.2 kB / 469.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008217/0.1318, allocations: 0.5175 MB / 469.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008707/0.1327, allocations: 0.6582 MB / 470.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.1328, allocations: 52 kB / 470.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001739/0.133, allocations: 56 kB / 470.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003841/0.1334, allocations: 375 kB / 470.8 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000472/0.1339, allocations: 434 kB / 471.3 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009938/0.1349, allocations: 1.129 MB / 472.4 MB, free: 8.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1349, allocations: 0 / 472.4 MB, free: 8.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1349, allocations: 0 / 472.4 MB, free: 8.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.544e-05/0.1349, allocations: 4 kB / 472.4 MB, free: 8.207 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.003035/0.1379, allocations: 1.309 MB / 473.7 MB, free: 6.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.138, allocations: 8.031 kB / 473.7 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001969/0.1382, allocations: 99.89 kB / 473.8 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.1395, allocations: 0.6899 MB / 474.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004337/0.14, allocations: 347 kB / 474.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.1401, allocations: 67.91 kB / 474.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002226/0.1424, allocations: 1.141 MB / 476.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.1424, allocations: 0 / 476.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.114e-05/0.1425, allocations: 28 kB / 476.1 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001071/0.1426, allocations: 37.28 kB / 476.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002668/0.1453, allocations: 1.176 MB / 477.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005205/0.1505, allocations: 3.5 MB / 480.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002513/0.153, allocations: 0.9612 MB / 481.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001687/0.1547, allocations: 0.6865 MB / 482.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.757e-05/0.1548, allocations: 12.55 kB / 482.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001631/0.1564, allocations: 0.681 MB / 483.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 1.843e-06/0.1564, allocations: 0 / 483.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.01853/0.175, allocations: 5.663 MB / 488.8 MB, free: 7.387 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.351e-05/0.1751, allocations: 97.59 kB / 488.9 MB, free: 7.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005957/0.1757, allocations: 469.8 kB / 489.3 MB, free: 6.801 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.12e-05/0.1758, allocations: 41.7 kB / 489.4 MB, free: 6.754 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002647/0.176, allocations: 324.2 kB / 489.7 MB, free: 6.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/0.1763, allocations: 205.1 kB / 489.9 MB, free: 6.227 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000234/0.1765, allocations: 126.3 kB / 490 MB, free: 6.098 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1767, allocations: 370.8 kB / 490.4 MB, free: 5.727 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.1777, allocations: 0.5051 MB / 490.9 MB, free: 5.223 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/0.1789, allocations: 0.6335 MB / 491.5 MB, free: 4.543 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.006961/0.1859, allocations: 3.129 MB / 494.7 MB, free: 1.336 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.1859, allocations: 4 kB / 494.7 MB, free: 1.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007586/0.1935, allocations: 2.49 MB / 497.2 MB, free: 14.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.815e-05/0.1936, allocations: 53.69 kB / 497.2 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.1936, allocations: 7.984 kB / 497.2 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002423/0.1961, allocations: 1.093 MB / 498.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005566/0.1966, allocations: 111.8 kB / 498.4 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01554/0.2122, allocations: 6.298 MB / 0.4929 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009492/0.2132, allocations: 91.95 kB / 0.493 GB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.769e-05/0.2133, allocations: 47.84 kB / 0.493 GB, free: 6.996 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.0005945/0.2139, allocations: 275.4 kB / 0.4933 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.214, allocations: 59.25 kB / 0.4933 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007918/0.2219, allocations: 2.429 MB / 0.4957 GB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.468e-05/0.222, allocations: 4 kB / 0.4957 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.222, allocations: 7.875 kB / 0.4957 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-05/0.222, allocations: 7.984 kB / 0.4957 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009989/0.232, allocations: 3.56 MB / 0.4992 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/0.2321, allocations: 4 kB / 0.4992 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005031/0.2326, allocations: 79.89 kB / 0.4993 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2759/0.5085, allocations: 1.08 MB / 0.5003 GB, free: 57.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002227/0.5088, allocations: 20.77 kB / 0.5004 GB, free: 57.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02655/0.5354, allocations: 6.267 MB / 0.5065 GB, free: 55.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.5355, allocations: 2.469 kB / 0.5065 GB, free: 55.49 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01684/0.5523, allocations: 3.198 MB / 0.5096 GB, free: 54.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007536/0.5531, allocations: 217.3 kB / 0.5098 GB, free: 54.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/0.5534, allocations: 37.33 kB / 0.5098 GB, free: 54.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/0.5548, allocations: 96.59 kB / 0.5099 GB, free: 54.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009218/0.5557, allocations: 165 kB / 0.5101 GB, free: 54.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.5558, allocations: 25.75 kB / 0.5101 GB, free: 54.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007769/0.5566, allocations: 331 kB / 0.5104 GB, free: 54.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5567, allocations: 0 / 0.5104 GB, free: 54.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001675/0.5583, allocations: 223.3 kB / 0.5106 GB, free: 54.39 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.0003007/0.5587, allocations: 129 kB / 0.5108 GB, free: 54.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006602/0.5653, allocations: 1.716 MB / 0.5124 GB, free: 53.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.5653, allocations: 4.469 kB / 0.5125 GB, free: 53.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003042/0.5684, allocations: 1.104 MB / 0.5135 GB, free: 53.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.5694, allocations: 143.3 kB / 0.5137 GB, free: 53.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003246/0.5727, allocations: 1.972 MB / 0.5156 GB, free: 52.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005739/0.5732, allocations: 0.9939 MB / 0.5166 GB, free: 51.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004977/0.5738, allocations: 124.9 kB / 0.5167 GB, free: 51.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.5739, allocations: 40.31 kB / 0.5167 GB, free: 51.45 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.5739, allocations: 4 kB / 0.5167 GB, free: 51.44 MB / 382.1 MB Notification: Performance of Templates: time 0.01997/0.5939, allocations: 15.66 MB / 0.532 GB, free: 39.91 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)