Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.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.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 114.2 kB / 16.63 MB, free: 6.816 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.001772/0.001772, allocations: 190 kB / 17.55 MB, free: 5.93 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.414/1.414, allocations: 222.9 MB / 241.2 MB, free: 13.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1757/0.1757, allocations: 38.02 MB / 329.4 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 63.94 kB / 398.3 MB, free: 34.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1172, allocations: 58.06 MB / 456.3 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009193/0.1265, allocations: 7.735 MB / 464.1 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003721/0.1302, allocations: 2.24 MB / 466.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005204/0.1308, allocations: 55.69 kB / 466.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001286/0.132, allocations: 414.2 kB / 466.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008591/0.1329, allocations: 378.4 kB / 467.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008995/0.1338, allocations: 323.4 kB / 467.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009699/0.1348, allocations: 1.032 MB / 468.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006682/0.1355, allocations: 0.5083 MB / 469 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005579/0.1361, allocations: 462.1 kB / 469.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007418/0.1368, allocations: 0.5958 MB / 470 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.1369, allocations: 68 kB / 470.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000504/0.1374, allocations: 275.5 kB / 470.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003242/0.1378, allocations: 375.1 kB / 470.7 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004072/0.1382, allocations: 421.9 kB / 471.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.1392, allocations: 1.028 MB / 472.2 MB, free: 8.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1392, allocations: 4 kB / 472.2 MB, free: 8.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1392, allocations: 0 / 472.2 MB, free: 8.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.1393, allocations: 0 / 472.2 MB, free: 8.48 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002154/0.1414, allocations: 1.129 MB / 473.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.1415, allocations: 11.89 kB / 473.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007631/0.1422, allocations: 127.8 kB / 473.5 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009023/0.1432, allocations: 0.5728 MB / 474 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.593e-05/0.1432, allocations: 45.67 kB / 474.1 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001558/0.1434, allocations: 87.95 kB / 474.2 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.1449, allocations: 1.006 MB / 475.2 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.145, allocations: 4 kB / 475.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.783e-05/0.1451, allocations: 24 kB / 475.2 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002292/0.1453, allocations: 73.95 kB / 475.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.1469, allocations: 0.9836 MB / 476.2 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004649/0.1515, allocations: 3.268 MB / 479.5 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.1526, allocations: 0.6873 MB / 480.2 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006216/0.1532, allocations: 434 kB / 480.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.581e-05/0.1533, allocations: 13.48 kB / 480.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.1534, allocations: 39.12 kB / 480.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.595e-06/0.1534, allocations: 0 / 480.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=75): time 0.003764/0.1571, allocations: 2.431 MB / 483.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/0.1572, allocations: 81.67 kB / 483.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004612/0.1577, allocations: 441.8 kB / 483.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.665e-05/0.1577, allocations: 41.64 kB / 483.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002142/0.1579, allocations: 355.8 kB / 484 MB, free: 12.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001977/0.1582, allocations: 268.1 kB / 484.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/0.1584, allocations: 146.6 kB / 484.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.1585, allocations: 378.7 kB / 484.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004871/0.159, allocations: 337.8 kB / 485.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006246/0.1597, allocations: 0.5224 MB / 485.6 MB, free: 10.53 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005164/0.1648, allocations: 2.251 MB / 487.9 MB, free: 8.191 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.1648, allocations: 4 kB / 487.9 MB, free: 8.188 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001637/0.1665, allocations: 1.102 MB / 489 MB, free: 7.059 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.1665, allocations: 8 kB / 489 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.1665, allocations: 8 kB / 489 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001526/0.1667, allocations: 36.84 kB / 489 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008092/0.1675, allocations: 191.6 kB / 489.2 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00125/0.1688, allocations: 1.5 MB / 490.7 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004587/0.1693, allocations: 40.03 kB / 490.8 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.328e-05/0.1693, allocations: 28 kB / 490.8 MB, free: 5.105 MB / 366.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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (95): * Single equations (assignments): 92 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004245/0.1698, allocations: 281.5 kB / 491.1 MB, free: 4.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.1699, allocations: 59.25 kB / 491.1 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001499/0.1714, allocations: 0.97 MB / 492.1 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.853e-05/0.1715, allocations: 19.98 kB / 492.1 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.1715, allocations: 0 / 492.1 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.1715, allocations: 11.86 kB / 492.1 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003398/0.1749, allocations: 2.001 MB / 494.1 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.1749, allocations: 8.094 kB / 494.1 MB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006617/0.1756, allocations: 151.7 kB / 494.3 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001122/0.1757, allocations: 40.77 kB / 494.3 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.87e-05/0.1758, allocations: 20 kB / 494.3 MB, free: 1.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.177, allocations: 1.504 MB / 495.9 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.177, allocations: 4 kB / 495.9 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001937/0.1789, allocations: 1.532 MB / 497.4 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.1791, allocations: 136.3 kB / 497.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.872e-05/0.1792, allocations: 28.03 kB / 497.5 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003643/0.1795, allocations: 31.97 kB / 497.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.6e-05/0.1796, allocations: 64.38 kB / 497.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.005e-05/0.1797, allocations: 27.98 kB / 497.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003091/0.18, allocations: 299.1 kB / 498 MB, free: 13.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.18, allocations: 0 / 498 MB, free: 13.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006783/0.1807, allocations: 176 kB / 498.1 MB, free: 13.33 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (75): * Single equations (assignments): 71 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002493/0.181, allocations: 166.9 kB / 498.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.1828, allocations: 1.173 MB / 499.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1828, allocations: 0 / 499.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006661/0.1835, allocations: 0.5225 MB / 500 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008321/0.1843, allocations: 149.9 kB / 0.4884 GB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003192/0.1875, allocations: 2.302 MB / 0.4907 GB, free: 8.906 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007082/0.1883, allocations: 1.005 MB / 0.4916 GB, free: 7.875 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000628/0.1889, allocations: 205.4 kB / 0.4918 GB, free: 7.672 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.1891, allocations: 63.42 kB / 0.4919 GB, free: 7.609 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1891, allocations: 0 / 0.4919 GB, free: 7.609 MB / 382.1 MB Notification: Performance of Templates: time 0.2049/0.394, allocations: 7.932 MB / 0.4996 GB, free: 56.26 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)