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.001374/0.001375, allocations: 112.2 kB / 17.74 MB, free: 5.355 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.00129/0.00129, allocations: 187.1 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.344/1.344, 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.173/0.173, allocations: 37.98 MB / 309.9 MB, free: 5.957 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.001352/0.001352, allocations: 72.28 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1034, allocations: 55.24 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.009032/0.1125, allocations: 6.936 MB / 494.7 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003787/0.1163, allocations: 2.073 MB / 496.8 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000609/0.117, allocations: 27.88 kB / 496.8 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001496/0.1185, allocations: 0.4898 MB / 497.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001641/0.1202, allocations: 0.5522 MB / 497.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.1213, allocations: 407.2 kB / 498.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001834/0.1231, allocations: 1.395 MB / 499.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.1244, allocations: 0.8185 MB / 0.4887 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001174/0.1256, allocations: 0.6345 MB / 0.4894 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001237/0.1268, allocations: 0.6736 MB / 0.49 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003197/0.1272, allocations: 100 kB / 0.4901 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001109/0.1283, allocations: 0.5188 MB / 0.4906 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007355/0.1291, allocations: 0.4949 MB / 0.4911 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008961/0.13, allocations: 0.5716 MB / 0.4917 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00202/0.132, allocations: 1.527 MB / 0.4932 GB, free: 7.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.132, allocations: 0 / 0.4932 GB, free: 7.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.132, allocations: 0 / 0.4932 GB, free: 7.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.196e-05/0.1321, allocations: 4 kB / 0.4932 GB, free: 7.055 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.003637/0.1357, allocations: 1.567 MB / 0.4947 GB, free: 5.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.1358, allocations: 15.89 kB / 0.4947 GB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008903/0.1367, allocations: 163.4 kB / 0.4949 GB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001247/0.1379, allocations: 0.7254 MB / 0.4956 GB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/0.1381, allocations: 175.6 kB / 0.4957 GB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002629/0.1384, allocations: 123.7 kB / 0.4959 GB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002857/0.1413, allocations: 1.532 MB / 0.4973 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.982e-05/0.1413, allocations: 4 kB / 0.4974 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.1414, allocations: 32 kB / 0.4974 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001648/0.1416, allocations: 73.97 kB / 0.4975 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002234/0.1438, allocations: 1.167 MB / 0.4986 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00612/0.15, allocations: 4.769 MB / 0.5033 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002865/0.1529, allocations: 1.125 MB / 0.5043 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.1541, allocations: 0.5501 MB / 0.5049 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.623e-05/0.1542, allocations: 16.55 kB / 0.5049 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001413/0.1556, allocations: 0.7144 MB / 0.5056 GB, free: 9.879 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 3.166e-06/0.1556, allocations: 4 kB / 0.5056 GB, free: 9.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=81): time 0.007373/0.163, allocations: 3.181 MB / 0.5087 GB, free: 6.602 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.955e-05/0.1631, allocations: 135.4 kB / 0.5088 GB, free: 6.445 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007678/0.1639, allocations: 0.5964 MB / 0.5094 GB, free: 5.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.578e-05/0.164, allocations: 53.69 kB / 0.5095 GB, free: 5.781 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003525/0.1644, allocations: 455 kB / 0.5099 GB, free: 5.328 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/0.1646, allocations: 276.2 kB / 0.5102 GB, free: 5.055 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002979/0.1649, allocations: 190.5 kB / 0.5104 GB, free: 4.863 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.1651, allocations: 398.7 kB / 0.5107 GB, free: 4.465 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006963/0.1658, allocations: 486 kB / 0.5112 GB, free: 3.984 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008312/0.1667, allocations: 0.7421 MB / 0.5119 GB, free: 3.129 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00157/0.1683, allocations: 1.257 MB / 0.5131 GB, free: 1.754 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.1683, allocations: 4 kB / 0.5132 GB, free: 1.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002438/0.1707, allocations: 1.576 MB / 0.5147 GB, free: 140 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.572e-05/0.1708, allocations: 65.61 kB / 0.5148 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001871/0.1727, allocations: 1.332 MB / 0.5161 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004245/0.1731, allocations: 117.6 kB / 0.5162 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007405/0.1739, allocations: 199.6 kB / 0.5164 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002867/0.1768, allocations: 3.368 MB / 0.5196 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007192/0.1775, allocations: 71.94 kB / 0.5197 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.1776, allocations: 79.88 kB / 0.5198 GB, free: 10.59 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.0006147/0.1783, allocations: 369.5 kB / 0.5201 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002009/0.1785, allocations: 79.05 kB / 0.5202 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002821/0.1813, allocations: 1.274 MB / 0.5215 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.28e-05/0.1813, allocations: 15.98 kB / 0.5215 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1814, allocations: 0 / 0.5215 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.1814, allocations: 11.92 kB / 0.5215 GB, free: 8.801 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004414/0.1858, allocations: 2.424 MB / 0.5239 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.1858, allocations: 4 kB / 0.5239 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007068/0.1865, allocations: 143.8 kB / 0.524 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001094/0.1867, allocations: 44.92 kB / 0.524 GB, free: 6.098 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.33e-05/0.1867, allocations: 27.97 kB / 0.5241 GB, free: 6.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.188, allocations: 1.63 MB / 0.5257 GB, free: 4.305 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.188, allocations: 0 / 0.5257 GB, free: 4.305 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003875/0.1919, allocations: 1.92 MB / 0.5275 GB, free: 2.332 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004178/0.1923, allocations: 244 kB / 0.5278 GB, free: 2.074 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002503/0.1926, allocations: 75.95 kB / 0.5278 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008312/0.1934, allocations: 95.86 kB / 0.5279 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001566/0.1936, allocations: 56.52 kB / 0.528 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.335e-05/0.1936, allocations: 31.92 kB / 0.528 GB, free: 1.816 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005466/0.1942, allocations: 402.8 kB / 0.5284 GB, free: 1.426 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1942, allocations: 0 / 0.5284 GB, free: 1.426 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001061/0.1953, allocations: 232 kB / 0.5286 GB, free: 1.199 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.0003617/0.1956, allocations: 198.9 kB / 0.5288 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.218/0.4136, allocations: 1.62 MB / 0.5304 GB, free: 51.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.4137, allocations: 3.125 kB / 0.5304 GB, free: 51.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001549/0.4152, allocations: 0.6602 MB / 0.531 GB, free: 51.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.4163, allocations: 179.8 kB / 0.5312 GB, free: 51.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004165/0.4205, allocations: 2.393 MB / 0.5335 GB, free: 50.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006754/0.4212, allocations: 1.115 MB / 0.5346 GB, free: 50.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/0.4215, allocations: 68.3 kB / 0.5347 GB, free: 50.22 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4215, allocations: 0 / 0.5347 GB, free: 50.22 MB / 414.1 MB Notification: Performance of Templates: time 0.0291/0.4506, allocations: 17.76 MB / 0.552 GB, free: 43.98 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)