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.001713/0.001713, allocations: 102.8 kB / 16.5 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.002114/0.002114, allocations: 190.6 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.38/1.38, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1775/0.1775, allocations: 38.03 MB / 329.3 MB, free: 9.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 59.11 kB / 398.1 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1172, allocations: 58.06 MB / 456.1 MB, free: 8.508 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009335/0.1266, allocations: 7.735 MB / 463.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004417/0.131, allocations: 2.275 MB / 466.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009749/0.132, allocations: 51.69 kB / 466.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001523/0.1336, allocations: 402.3 kB / 466.6 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001111/0.1347, allocations: 390.3 kB / 467 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009941/0.1357, allocations: 307.5 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001692/0.1374, allocations: 1.504 MB / 468.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007739/0.1382, allocations: 452.4 kB / 469.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008196/0.139, allocations: 398.2 kB / 469.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001064/0.1401, allocations: 0.5919 MB / 470.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.1403, allocations: 44 kB / 470.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006695/0.141, allocations: 267.5 kB / 470.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000369/0.1414, allocations: 355.1 kB / 470.9 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004136/0.1418, allocations: 393.9 kB / 471.2 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009659/0.1428, allocations: 1.004 MB / 472.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1428, allocations: 4 kB / 472.3 MB, free: 8.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1428, allocations: 0 / 472.3 MB, free: 8.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.1428, allocations: 0 / 472.3 MB, free: 8.328 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.002366/0.1452, allocations: 1.129 MB / 473.4 MB, free: 7.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.1452, allocations: 12.03 kB / 473.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000754/0.146, allocations: 123.8 kB / 473.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000992/0.147, allocations: 0.5728 MB / 474.1 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.486e-05/0.1471, allocations: 45.69 kB / 474.1 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001847/0.1472, allocations: 80.02 kB / 474.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.1487, allocations: 1.01 MB / 475.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.1488, allocations: 0 / 475.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-05/0.1488, allocations: 31.98 kB / 475.3 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002051/0.149, allocations: 73.89 kB / 475.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.1505, allocations: 0.9797 MB / 476.3 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004805/0.1553, allocations: 3.272 MB / 479.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.1565, allocations: 0.6839 MB / 480.3 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000672/0.1571, allocations: 432.4 kB / 480.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.389e-05/0.1572, allocations: 8.562 kB / 480.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.1573, allocations: 39.12 kB / 480.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.655e-06/0.1573, allocations: 0 / 480.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=75): time 0.004203/0.1615, allocations: 2.427 MB / 483.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.001e-05/0.1616, allocations: 89.8 kB / 483.2 MB, free: 12.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005576/0.1621, allocations: 441.8 kB / 483.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.152e-05/0.1622, allocations: 41.7 kB / 483.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002826/0.1625, allocations: 351.6 kB / 484.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002485/0.1627, allocations: 268.1 kB / 484.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002554/0.163, allocations: 150.6 kB / 484.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.1632, allocations: 374.7 kB / 484.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005124/0.1637, allocations: 341.8 kB / 485.2 MB, free: 10.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006106/0.1643, allocations: 0.5224 MB / 485.7 MB, free: 10.38 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.004936/0.1693, allocations: 2.238 MB / 487.9 MB, free: 8.055 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1693, allocations: 0 / 487.9 MB, free: 8.055 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001716/0.171, allocations: 1.098 MB / 489 MB, free: 6.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.1711, allocations: 8 kB / 489 MB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.1711, allocations: 8 kB / 489 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001719/0.1713, allocations: 49.33 kB / 489.1 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007486/0.172, allocations: 191.6 kB / 489.3 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/0.1732, allocations: 1.386 MB / 490.7 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004223/0.1736, allocations: 39.95 kB / 490.7 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.064e-05/0.1737, allocations: 36 kB / 490.7 MB, free: 5.078 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.0003847/0.1741, allocations: 269.6 kB / 491 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.1743, allocations: 67.17 kB / 491.1 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001569/0.1758, allocations: 0.97 MB / 492 MB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.537e-05/0.1759, allocations: 19.98 kB / 492.1 MB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1759, allocations: 0 / 492.1 MB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.1759, allocations: 0 / 492.1 MB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00351/0.1794, allocations: 2.017 MB / 494.1 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.1794, allocations: 4 kB / 494.1 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006772/0.1801, allocations: 151.7 kB / 494.2 MB, free: 1.418 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001097/0.1802, allocations: 36.84 kB / 494.3 MB, free: 1.379 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.972e-05/0.1803, allocations: 27.98 kB / 494.3 MB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001109/0.1814, allocations: 1.382 MB / 495.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.124e-05/0.1814, allocations: 15.88 kB / 495.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002072/0.1835, allocations: 1.525 MB / 497.2 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.1837, allocations: 144.3 kB / 497.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.923e-05/0.1838, allocations: 20.06 kB / 497.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003694/0.1842, allocations: 31.97 kB / 497.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.1843, allocations: 60.36 kB / 497.5 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-05/0.1844, allocations: 28 kB / 497.5 MB, free: 13.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003231/0.1847, allocations: 299.1 kB / 497.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1847, allocations: 0 / 497.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007339/0.1854, allocations: 192 kB / 498 MB, free: 13.41 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.0002873/0.1857, allocations: 151 kB / 498.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.1873, allocations: 0.9507 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1873, allocations: 0 / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000716/0.188, allocations: 0.5252 MB / 499.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008631/0.1889, allocations: 142.8 kB / 499.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.1923, allocations: 2.297 MB / 0.4903 GB, free: 9.234 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007013/0.193, allocations: 1.017 MB / 0.4913 GB, free: 8.191 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006045/0.1936, allocations: 197.4 kB / 0.4914 GB, free: 7.996 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002742/0.1939, allocations: 59.42 kB / 0.4915 GB, free: 7.938 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1939, allocations: 0 / 0.4915 GB, free: 7.938 MB / 382.1 MB Notification: Performance of Templates: time 0.01553/0.2094, allocations: 7.632 MB / 0.499 GB, free: 368 kB / 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)