Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 109.9 kB / 17.74 MB, free: 5.359 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.001305/0.001305, allocations: 193.5 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1765/0.1765, allocations: 37.98 MB / 309.9 MB, free: 5.973 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 64.33 kB / 432.5 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1035, allocations: 55.25 MB / 487.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.008566/0.1121, allocations: 6.929 MB / 494.7 MB, free: 1.387 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003954/0.1161, allocations: 2.077 MB / 496.8 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005122/0.1166, allocations: 23.88 kB / 496.8 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001394/0.118, allocations: 0.4903 MB / 497.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001434/0.1195, allocations: 0.5561 MB / 497.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.1205, allocations: 399.2 kB / 498.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001597/0.1221, allocations: 1.395 MB / 499.6 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001025/0.1232, allocations: 0.8263 MB / 0.4887 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001047/0.1242, allocations: 0.6307 MB / 0.4894 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009385/0.1252, allocations: 0.6814 MB / 0.49 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001355/0.1253, allocations: 96 kB / 0.4901 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008848/0.1262, allocations: 0.5149 MB / 0.4906 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004789/0.1267, allocations: 0.4989 MB / 0.4911 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000598/0.1273, allocations: 0.5716 MB / 0.4917 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001544/0.1289, allocations: 1.527 MB / 0.4932 GB, free: 7.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1289, allocations: 0 / 0.4932 GB, free: 7.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1289, allocations: 0 / 0.4932 GB, free: 7.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.1289, allocations: 0 / 0.4932 GB, free: 7.07 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.00294/0.1318, allocations: 1.575 MB / 0.4947 GB, free: 5.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.1319, allocations: 11.89 kB / 0.4947 GB, free: 5.406 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007922/0.1327, allocations: 167.5 kB / 0.4949 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.134, allocations: 0.7215 MB / 0.4956 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001719/0.1341, allocations: 183.6 kB / 0.4957 GB, free: 4.285 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002233/0.1344, allocations: 111.8 kB / 0.4959 GB, free: 4.176 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002557/0.1369, allocations: 1.532 MB / 0.4973 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.137, allocations: 0 / 0.4973 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.1371, allocations: 40 kB / 0.4974 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001676/0.1373, allocations: 69.95 kB / 0.4975 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002068/0.1393, allocations: 1.179 MB / 0.4986 GB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005904/0.1453, allocations: 4.765 MB / 0.5033 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002901/0.1482, allocations: 1.121 MB / 0.5044 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001551/0.1498, allocations: 0.5579 MB / 0.5049 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.888e-05/0.1498, allocations: 8.562 kB / 0.5049 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00194/0.1518, allocations: 0.7183 MB / 0.5056 GB, free: 9.891 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.725e-06/0.1518, allocations: 0 / 0.5056 GB, free: 9.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=81): time 0.007174/0.159, allocations: 3.181 MB / 0.5087 GB, free: 6.617 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.756e-05/0.1591, allocations: 131.4 kB / 0.5088 GB, free: 6.465 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007061/0.1598, allocations: 0.5965 MB / 0.5094 GB, free: 5.859 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.729e-05/0.1599, allocations: 53.62 kB / 0.5095 GB, free: 5.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003579/0.1603, allocations: 455.1 kB / 0.5099 GB, free: 5.348 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002413/0.1605, allocations: 272.2 kB / 0.5102 GB, free: 5.078 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002982/0.1608, allocations: 202.4 kB / 0.5104 GB, free: 4.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.161, allocations: 390.7 kB / 0.5107 GB, free: 4.484 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007031/0.1617, allocations: 486 kB / 0.5112 GB, free: 4.004 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008653/0.1626, allocations: 0.746 MB / 0.5119 GB, free: 3.145 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001656/0.1643, allocations: 1.257 MB / 0.5132 GB, free: 1.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.1643, allocations: 0 / 0.5132 GB, free: 1.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002588/0.1669, allocations: 1.58 MB / 0.5147 GB, free: 156 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.225e-05/0.167, allocations: 65.61 kB / 0.5148 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001911/0.1689, allocations: 1.332 MB / 0.5161 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003986/0.1693, allocations: 109.6 kB / 0.5162 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007505/0.1701, allocations: 203.7 kB / 0.5164 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00299/0.1731, allocations: 3.364 MB / 0.5196 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007815/0.1739, allocations: 63.94 kB / 0.5197 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.174, allocations: 87.98 kB / 0.5198 GB, free: 10.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006285/0.1746, allocations: 377.5 kB / 0.5201 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.1748, allocations: 75.06 kB / 0.5202 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002834/0.1776, allocations: 1.27 MB / 0.5215 GB, free: 8.848 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.451e-05/0.1777, allocations: 19.89 kB / 0.5215 GB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1777, allocations: 4 kB / 0.5215 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.1777, allocations: 7.922 kB / 0.5215 GB, free: 8.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004262/0.182, allocations: 2.436 MB / 0.5239 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.182, allocations: 0 / 0.5239 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007369/0.1827, allocations: 147.8 kB / 0.524 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001002/0.1829, allocations: 32.94 kB / 0.524 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.634e-05/0.1829, allocations: 31.95 kB / 0.5241 GB, free: 6.086 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001243/0.1842, allocations: 1.626 MB / 0.5257 GB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1842, allocations: 0 / 0.5257 GB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003695/0.1879, allocations: 1.924 MB / 0.5275 GB, free: 2.348 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003745/0.1883, allocations: 244 kB / 0.5278 GB, free: 2.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/0.1885, allocations: 75.95 kB / 0.5278 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007854/0.1893, allocations: 91.86 kB / 0.5279 GB, free: 1.926 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.1894, allocations: 56.52 kB / 0.528 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.964e-05/0.1895, allocations: 27.98 kB / 0.528 GB, free: 1.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004752/0.19, allocations: 402.7 kB / 0.5284 GB, free: 1.449 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.19, allocations: 0 / 0.5284 GB, free: 1.449 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009066/0.1909, allocations: 240 kB / 0.5286 GB, free: 1.215 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.0003156/0.1912, allocations: 199 kB / 0.5288 GB, free: 1.012 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.1916/0.3828, allocations: 1.618 MB / 0.5304 GB, free: 51.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.3829, allocations: 1.688 kB / 0.5304 GB, free: 51.88 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001772/0.3847, allocations: 0.6587 MB / 0.531 GB, free: 51.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.386, allocations: 175.1 kB / 0.5312 GB, free: 51.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005011/0.391, allocations: 2.392 MB / 0.5335 GB, free: 50.97 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000814/0.3918, allocations: 1.115 MB / 0.5346 GB, free: 50.26 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003465/0.3922, allocations: 67.08 kB / 0.5347 GB, free: 50.25 MB / 414.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3922, allocations: 2.438 kB / 0.5347 GB, free: 50.25 MB / 414.1 MB Notification: Performance of Templates: time 0.02539/0.4176, allocations: 17.89 MB / 0.5522 GB, free: 43.92 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)