Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001411/0.001411, allocations: 189.5 kB / 17.27 MB, free: 4.5 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.247/1.247, allocations: 194.2 MB / 212.2 MB, free: 2.359 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.001796/0.001796, allocations: 123.7 kB / 256.6 MB, free: 4.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1597/0.1597, allocations: 37.95 MB / 338.8 MB, free: 2.223 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 63.91 kB / 401.8 MB, free: 68.76 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1059, allocations: 52.18 MB / 454 MB, free: 16.58 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.006256/0.1122, allocations: 7.333 MB / 461.3 MB, free: 9.211 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002663/0.1149, allocations: 1.835 MB / 463.2 MB, free: 7.367 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003725/0.1153, allocations: 51.69 kB / 463.2 MB, free: 7.316 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004477/0.1157, allocations: 123.2 kB / 463.3 MB, free: 7.195 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005768/0.1164, allocations: 358.4 kB / 463.7 MB, free: 6.844 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003433/0.1167, allocations: 167.8 kB / 463.8 MB, free: 6.68 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008316/0.1176, allocations: 1.395 MB / 465.2 MB, free: 5.281 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002666/0.1178, allocations: 233.4 kB / 465.5 MB, free: 5.051 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003563/0.1182, allocations: 346.4 kB / 465.8 MB, free: 4.711 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004835/0.1187, allocations: 498.3 kB / 466.3 MB, free: 4.223 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.075e-05/0.1188, allocations: 32 kB / 466.3 MB, free: 4.191 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.572e-05/0.1188, allocations: 32 kB / 466.4 MB, free: 4.16 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001833/0.119, allocations: 247.3 kB / 466.6 MB, free: 3.918 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000228/0.1193, allocations: 302.4 kB / 466.9 MB, free: 3.621 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000423/0.1197, allocations: 0.6461 MB / 467.5 MB, free: 2.973 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1197, allocations: 3.938 kB / 467.5 MB, free: 2.969 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1197, allocations: 0 / 467.5 MB, free: 2.969 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.1197, allocations: 8 kB / 467.5 MB, free: 2.961 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001528/0.1213, allocations: 0.937 MB / 468.5 MB, free: 1.973 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1213, allocations: 8.031 kB / 468.5 MB, free: 1.965 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.324e-05/0.1214, allocations: 68.09 kB / 468.6 MB, free: 1.898 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007668/0.1222, allocations: 0.5257 MB / 469.1 MB, free: 1.332 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.1222, allocations: 40.94 kB / 469.1 MB, free: 1.293 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.913e-05/0.1223, allocations: 55.92 kB / 469.2 MB, free: 1.238 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006925/0.123, allocations: 0.621 MB / 469.8 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.123, allocations: 0 / 469.8 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.286e-05/0.1231, allocations: 27.98 kB / 469.8 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.767e-05/0.1232, allocations: 28.98 kB / 469.9 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005928/0.1238, allocations: 0.5113 MB / 470.4 MB, free: 12 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00305/0.1268, allocations: 2.222 MB / 472.6 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000789/0.1276, allocations: 0.4893 MB / 473.1 MB, free: 13.19 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006102/0.1283, allocations: 345.5 kB / 473.4 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.039e-05/0.1283, allocations: 7.984 kB / 473.4 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.1283, allocations: 38.5 kB / 473.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 1.523e-06/0.1284, allocations: 0 / 473.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.003214/0.1316, allocations: 1.756 MB / 475.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/0.1316, allocations: 81.11 kB / 475.3 MB, free: 10.86 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004036/0.1321, allocations: 417.9 kB / 475.7 MB, free: 10.44 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/0.1321, allocations: 37.83 kB / 475.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.1323, allocations: 300.4 kB / 476 MB, free: 10.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.1324, allocations: 161.6 kB / 476.2 MB, free: 9.938 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.1326, allocations: 98.16 kB / 476.3 MB, free: 9.836 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1327, allocations: 362.8 kB / 476.6 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/0.133, allocations: 185 kB / 476.8 MB, free: 9.289 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003522/0.1334, allocations: 311.6 kB / 477.1 MB, free: 8.938 MB / 330.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.002462/0.1358, allocations: 1.238 MB / 478.4 MB, free: 7.633 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.1358, allocations: 4 kB / 478.4 MB, free: 7.629 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001101/0.137, allocations: 0.7107 MB / 479.1 MB, free: 6.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.137, allocations: 8 kB / 479.1 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.137, allocations: 4 kB / 479.1 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003772/0.1374, allocations: 144.6 kB / 479.2 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004173/0.1378, allocations: 107.8 kB / 479.3 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002632/0.1405, allocations: 2.369 MB / 481.7 MB, free: 4.145 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/0.1408, allocations: 28.02 kB / 481.7 MB, free: 4.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.49e-05/0.1408, allocations: 20 kB / 481.8 MB, free: 4.098 MB / 330.7 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: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003169/0.1411, allocations: 225.6 kB / 482 MB, free: 3.867 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.724e-05/0.1412, allocations: 55.34 kB / 482 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001098/0.1423, allocations: 0.6581 MB / 482.7 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.1423, allocations: 4.094 kB / 482.7 MB, free: 3.141 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1423, allocations: 4 kB / 482.7 MB, free: 3.137 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.1424, allocations: 7.969 kB / 482.7 MB, free: 3.129 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00194/0.1443, allocations: 1.373 MB / 484.1 MB, free: 1.668 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.289e-06/0.1443, allocations: 112 / 484.1 MB, free: 1.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.1446, allocations: 75.84 kB / 484.2 MB, free: 1.594 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000362/0.145, allocations: 144.7 kB / 484.3 MB, free: 1.449 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-05/0.1451, allocations: 15.98 kB / 484.3 MB, free: 1.434 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002433/0.1475, allocations: 2.381 MB / 486.7 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1475, allocations: 4 kB / 486.7 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/0.158, allocations: 7.677 MB / 494.4 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/0.1582, allocations: 128.5 kB / 494.5 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.543e-05/0.1583, allocations: 12 kB / 494.5 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/0.1585, allocations: 15.98 kB / 494.5 MB, free: 6.746 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.854e-05/0.1586, allocations: 39.94 kB / 494.6 MB, free: 6.707 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.833e-05/0.1586, allocations: 16 kB / 494.6 MB, free: 6.691 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003059/0.159, allocations: 287.1 kB / 494.9 MB, free: 6.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.159, allocations: 96 / 494.9 MB, free: 6.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007859/0.1598, allocations: 223.9 kB / 495.1 MB, free: 6.191 MB / 346.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001615/0.1599, allocations: 119.1 kB / 495.2 MB, free: 6.066 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001112/0.161, allocations: 0.6568 MB / 495.8 MB, free: 5.398 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.1611, allocations: 0 / 495.8 MB, free: 5.398 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006383/0.1617, allocations: 438.5 kB / 496.3 MB, free: 4.957 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007231/0.1624, allocations: 126.9 kB / 496.4 MB, free: 4.836 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.1652, allocations: 2.088 MB / 498.5 MB, free: 2.676 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005488/0.1657, allocations: 0.9529 MB / 499.4 MB, free: 1.691 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003901/0.1661, allocations: 108.7 kB / 499.5 MB, free: 1.582 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.1663, allocations: 51.42 kB / 499.6 MB, free: 1.531 MB / 346.7 MB Notification: Performance of SimCode: time 6.52e-07/0.1663, allocations: 0 / 499.6 MB, free: 1.531 MB / 346.7 MB Notification: Performance of Templates: time 0.01368/0.18, allocations: 8.454 MB / 0.4961 GB, free: 9.074 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)