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.00115/0.00115, allocations: 114 kB / 17.06 MB, free: 5.977 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.001152/0.001152, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.229/1.229, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1653/0.1653, allocations: 37.99 MB / 309.2 MB, free: 5.953 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.001315/0.001315, allocations: 71.91 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09617/0.09749, allocations: 55.24 MB / 487.1 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.008159/0.1057, allocations: 6.925 MB / 494 MB, free: 1.383 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003617/0.1094, allocations: 2.077 MB / 496.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002776/0.1096, allocations: 23.88 kB / 496.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001232/0.1109, allocations: 0.4981 MB / 496.6 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001069/0.112, allocations: 0.556 MB / 497.2 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007622/0.1128, allocations: 399.2 kB / 497.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.114, allocations: 1.399 MB / 499 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008767/0.1149, allocations: 0.8185 MB / 499.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007117/0.1156, allocations: 0.6385 MB / 0.4887 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007854/0.1164, allocations: 0.6775 MB / 0.4894 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.1166, allocations: 96 kB / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000757/0.1174, allocations: 0.5149 MB / 0.49 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004263/0.1178, allocations: 0.5028 MB / 0.4905 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004912/0.1183, allocations: 0.5599 MB / 0.491 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001319/0.1196, allocations: 1.531 MB / 0.4925 GB, free: 7.062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1196, allocations: 0 / 0.4925 GB, free: 7.062 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1196, allocations: 0 / 0.4925 GB, free: 7.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.1197, allocations: 0 / 0.4925 GB, free: 7.062 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.002694/0.1224, allocations: 1.575 MB / 0.494 GB, free: 5.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.1224, allocations: 11.89 kB / 0.494 GB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007273/0.1231, allocations: 163.5 kB / 0.4942 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.1243, allocations: 0.7293 MB / 0.4949 GB, free: 4.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.1245, allocations: 179.5 kB / 0.4951 GB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/0.1247, allocations: 111.8 kB / 0.4952 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002488/0.1272, allocations: 1.532 MB / 0.4967 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.866e-05/0.1272, allocations: 4 kB / 0.4967 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.396e-05/0.1273, allocations: 35.98 kB / 0.4967 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001419/0.1275, allocations: 73.97 kB / 0.4968 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002097/0.1296, allocations: 1.171 MB / 0.4979 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005351/0.1349, allocations: 4.769 MB / 0.5026 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002675/0.1376, allocations: 1.121 MB / 0.5037 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00118/0.1388, allocations: 0.5579 MB / 0.5042 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.817e-05/0.1389, allocations: 12.55 kB / 0.5042 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00132/0.1402, allocations: 0.7183 MB / 0.5049 GB, free: 9.879 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.715e-06/0.1402, allocations: 0 / 0.5049 GB, free: 9.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=81): time 0.006467/0.1467, allocations: 3.181 MB / 0.5081 GB, free: 6.605 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.1468, allocations: 135.3 kB / 0.5082 GB, free: 6.449 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006291/0.1474, allocations: 0.5926 MB / 0.5088 GB, free: 5.848 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.771e-05/0.1475, allocations: 53.7 kB / 0.5088 GB, free: 5.789 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002943/0.1478, allocations: 447.1 kB / 0.5092 GB, free: 5.344 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.148, allocations: 272.2 kB / 0.5095 GB, free: 5.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002698/0.1483, allocations: 206.4 kB / 0.5097 GB, free: 4.867 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1484, allocations: 398.7 kB / 0.5101 GB, free: 4.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006243/0.1491, allocations: 482 kB / 0.5105 GB, free: 3.992 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008216/0.1499, allocations: 0.7499 MB / 0.5113 GB, free: 3.129 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.1513, allocations: 1.254 MB / 0.5125 GB, free: 1.758 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.1513, allocations: 4 kB / 0.5125 GB, free: 1.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002163/0.1535, allocations: 1.572 MB / 0.514 GB, free: 148 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.519e-05/0.1536, allocations: 70.3 kB / 0.5141 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001743/0.1553, allocations: 1.332 MB / 0.5154 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003699/0.1557, allocations: 113.6 kB / 0.5155 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007119/0.1564, allocations: 207.6 kB / 0.5157 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002612/0.159, allocations: 3.357 MB / 0.519 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005991/0.1597, allocations: 72.11 kB / 0.5191 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/0.1598, allocations: 79.97 kB / 0.5191 GB, free: 10.6 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.0005402/0.1603, allocations: 373.4 kB / 0.5195 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/0.1605, allocations: 83.05 kB / 0.5196 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002597/0.1631, allocations: 1.274 MB / 0.5208 GB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-05/0.1631, allocations: 16 kB / 0.5208 GB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.1631, allocations: 0 / 0.5208 GB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.1631, allocations: 7.922 kB / 0.5208 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003905/0.1671, allocations: 2.432 MB / 0.5232 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.1671, allocations: 4.094 kB / 0.5232 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006694/0.1678, allocations: 143.8 kB / 0.5233 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.726e-05/0.1679, allocations: 36.83 kB / 0.5234 GB, free: 6.105 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-05/0.1679, allocations: 31.97 kB / 0.5234 GB, free: 6.074 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.169, allocations: 1.622 MB / 0.525 GB, free: 4.316 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.169, allocations: 8.031 kB / 0.525 GB, free: 4.309 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003501/0.1725, allocations: 1.92 MB / 0.5269 GB, free: 2.336 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003037/0.1728, allocations: 244.1 kB / 0.5271 GB, free: 2.078 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.173, allocations: 79.94 kB / 0.5272 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006738/0.1737, allocations: 87.88 kB / 0.5273 GB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.1738, allocations: 60.45 kB / 0.5273 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.75e-05/0.1739, allocations: 31.97 kB / 0.5274 GB, free: 1.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004041/0.1743, allocations: 394.8 kB / 0.5277 GB, free: 1.438 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1743, allocations: 8 kB / 0.5277 GB, free: 1.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008778/0.1752, allocations: 236 kB / 0.528 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.0002726/0.1755, allocations: 195 kB / 0.5282 GB, free: 1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.1832/0.3586, allocations: 1.625 MB / 0.5297 GB, free: 51.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.3587, allocations: 0 / 0.5297 GB, free: 51.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001567/0.3602, allocations: 0.6561 MB / 0.5304 GB, free: 51.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.3613, allocations: 174.6 kB / 0.5306 GB, free: 51.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00338/0.3647, allocations: 2.313 MB / 0.5328 GB, free: 51.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006602/0.3654, allocations: 1.118 MB / 0.5339 GB, free: 50.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005611/0.366, allocations: 238.6 kB / 0.5341 GB, free: 50.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001934/0.3662, allocations: 65.95 kB / 0.5342 GB, free: 50.27 MB / 414.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3662, allocations: 0 / 0.5342 GB, free: 50.27 MB / 414.1 MB Notification: Performance of Templates: time 0.01773/0.3839, allocations: 11.5 MB / 0.5454 GB, free: 47.48 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)