Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001158/0.001159, allocations: 173.3 kB / 15.77 MB, free: 6.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008181/0.0008181, allocations: 94.3 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1763/0.1763, allocations: 38.06 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003478/0.0003478, allocations: 12 kB / 422.7 MB, free: 26.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1025, allocations: 56.33 MB / 479.1 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.007562/0.1101, allocations: 7.478 MB / 486.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004471/0.1146, allocations: 2.398 MB / 488.9 MB, free: 8.113 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000847/0.1155, allocations: 55.62 kB / 489 MB, free: 8.059 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005728/0.1161, allocations: 158.8 kB / 489.2 MB, free: 7.902 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001824/0.1179, allocations: 0.6105 MB / 489.8 MB, free: 7.289 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.1191, allocations: 399.3 kB / 490.2 MB, free: 6.898 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001849/0.121, allocations: 1.555 MB / 491.7 MB, free: 5.34 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001583/0.1226, allocations: 0.9121 MB / 492.6 MB, free: 4.391 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001003/0.1236, allocations: 0.5058 MB / 493.1 MB, free: 3.883 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.1248, allocations: 0.6426 MB / 493.8 MB, free: 3.238 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002254/0.125, allocations: 40 kB / 493.8 MB, free: 3.199 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001109/0.1261, allocations: 475.2 kB / 494.3 MB, free: 2.734 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007769/0.1269, allocations: 446.9 kB / 494.7 MB, free: 2.297 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000621/0.1276, allocations: 225.1 kB / 494.9 MB, free: 2.07 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001876/0.1294, allocations: 1.149 MB / 496.1 MB, free: 0.918 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.1295, allocations: 0 / 496.1 MB, free: 0.918 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.1295, allocations: 0 / 496.1 MB, free: 0.918 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.839e-05/0.1295, allocations: 0 / 496.1 MB, free: 0.918 MB / 330.7 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.003284/0.1328, allocations: 1.38 MB / 497.5 MB, free: 15.46 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.1329, allocations: 8.031 kB / 497.5 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009196/0.1338, allocations: 162.6 kB / 497.6 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001384/0.1352, allocations: 0.6699 MB / 498.3 MB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001925/0.1354, allocations: 167.1 kB / 498.5 MB, free: 14.4 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003218/0.1357, allocations: 107.9 kB / 498.6 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003147/0.1389, allocations: 1.556 MB / 0.4884 GB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.08e-05/0.139, allocations: 7.844 kB / 0.4884 GB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000128/0.1391, allocations: 36 kB / 0.4884 GB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001703/0.1393, allocations: 69.97 kB / 0.4885 GB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00239/0.1417, allocations: 1.183 MB / 0.4897 GB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006528/0.1482, allocations: 4.801 MB / 0.4943 GB, free: 6.418 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00294/0.1512, allocations: 1.2 MB / 0.4955 GB, free: 5.18 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001297/0.1525, allocations: 0.5813 MB / 0.4961 GB, free: 4.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.02e-05/0.1526, allocations: 16.5 kB / 0.4961 GB, free: 4.574 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001461/0.154, allocations: 0.7301 MB / 0.4968 GB, free: 3.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=80): time 5.46e-06/0.1541, allocations: 7.984 kB / 0.4968 GB, free: 3.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=81): time 0.007274/0.1613, allocations: 3.31 MB / 0.5001 GB, free: 416 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.711e-05/0.1614, allocations: 123.5 kB / 0.5002 GB, free: 268 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007143/0.1622, allocations: 0.5809 MB / 0.5007 GB, free: 15.67 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.926e-05/0.1623, allocations: 53.69 kB / 0.5008 GB, free: 15.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003675/0.1626, allocations: 455 kB / 0.5012 GB, free: 15.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002357/0.1629, allocations: 280.2 kB / 0.5015 GB, free: 14.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.983e-05/0.1629, allocations: 20 kB / 0.5015 GB, free: 14.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1631, allocations: 394.6 kB / 0.5019 GB, free: 14.47 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006904/0.1638, allocations: 466 kB / 0.5023 GB, free: 14.01 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008664/0.1647, allocations: 0.7304 MB / 0.503 GB, free: 13.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008692/0.1655, allocations: 0.5976 MB / 0.5036 GB, free: 12.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.1656, allocations: 4 kB / 0.5036 GB, free: 12.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002409/0.168, allocations: 1.538 MB / 0.5051 GB, free: 10.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.308e-05/0.1681, allocations: 69.67 kB / 0.5052 GB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001829/0.1699, allocations: 1.298 MB / 0.5065 GB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004272/0.1704, allocations: 113.6 kB / 0.5066 GB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007659/0.1711, allocations: 203.6 kB / 0.5068 GB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002622/0.1738, allocations: 3.083 MB / 0.5098 GB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007381/0.1745, allocations: 75.94 kB / 0.5099 GB, free: 5.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.1747, allocations: 76.03 kB / 0.5099 GB, free: 5.766 MB / 362.7 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,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006592/0.1753, allocations: 373.3 kB / 0.5103 GB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001937/0.1755, allocations: 79.05 kB / 0.5104 GB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002846/0.1784, allocations: 1.325 MB / 0.5117 GB, free: 3.957 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.681e-05/0.1784, allocations: 19.98 kB / 0.5117 GB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1784, allocations: 0 / 0.5117 GB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.1784, allocations: 7.984 kB / 0.5117 GB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004512/0.183, allocations: 2.467 MB / 0.5141 GB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.183, allocations: 0 / 0.5141 GB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007223/0.1837, allocations: 151.7 kB / 0.5142 GB, free: 1.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001112/0.1838, allocations: 36.84 kB / 0.5143 GB, free: 1.188 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.255e-05/0.1839, allocations: 28.06 kB / 0.5143 GB, free: 1.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1937/0.3776, allocations: 1.46 MB / 0.5157 GB, free: 51.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3776, allocations: 3.859 kB / 0.5157 GB, free: 51.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00443/0.3821, allocations: 1.986 MB / 0.5177 GB, free: 51.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004167/0.3825, allocations: 244.5 kB / 0.5179 GB, free: 51.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002102/0.3827, allocations: 78.27 kB / 0.518 GB, free: 51.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007831/0.3835, allocations: 105.5 kB / 0.5181 GB, free: 51.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.3837, allocations: 60.19 kB / 0.5181 GB, free: 51.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.3838, allocations: 27.88 kB / 0.5182 GB, free: 51.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005992/0.3844, allocations: 399.4 kB / 0.5185 GB, free: 51.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3844, allocations: 0 / 0.5185 GB, free: 51.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001025/0.3855, allocations: 240.2 kB / 0.5188 GB, free: 51.03 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003122/0.3858, allocations: 184.2 kB / 0.5189 GB, free: 50.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002923/0.3887, allocations: 1.629 MB / 0.5205 GB, free: 50.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3888, allocations: 0.9062 kB / 0.5205 GB, free: 50.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001465/0.3902, allocations: 0.6888 MB / 0.5212 GB, free: 49.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.3913, allocations: 167.1 kB / 0.5214 GB, free: 49.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005136/0.3965, allocations: 2.897 MB / 0.5242 GB, free: 48.33 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009833/0.3975, allocations: 1.109 MB / 0.5253 GB, free: 47.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003049/0.3978, allocations: 69.22 kB / 0.5253 GB, free: 47.56 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.3978, allocations: 3.281 kB / 0.5253 GB, free: 47.56 MB / 362.7 MB Notification: Performance of Templates: time 0.0255/0.4233, allocations: 17.54 MB / 0.5425 GB, free: 37.16 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)