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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001144/0.001144, allocations: 189.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.26/1.26, allocations: 194.2 MB / 212.2 MB, free: 2.355 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001714/0.001715, allocations: 113.4 kB / 256.6 MB, free: 4.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1635/0.1635, allocations: 37.95 MB / 338.8 MB, free: 2.227 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 63.91 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08799/0.0892, allocations: 52.19 MB / 454 MB, free: 16.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.00679/0.09602, allocations: 8.381 MB / 462.4 MB, free: 8.141 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003617/0.09968, allocations: 2.544 MB / 464.9 MB, free: 5.586 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005949/0.1003, allocations: 59.62 kB / 465 MB, free: 5.527 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.1014, allocations: 469.9 kB / 465.4 MB, free: 5.07 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009521/0.1023, allocations: 0.5136 MB / 465.9 MB, free: 4.555 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006708/0.103, allocations: 347.5 kB / 466.3 MB, free: 4.215 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001143/0.1042, allocations: 1.949 MB / 468.2 MB, free: 2.262 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006863/0.1049, allocations: 0.714 MB / 469 MB, free: 1.531 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005032/0.1054, allocations: 0.5409 MB / 469.5 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006292/0.106, allocations: 0.7048 MB / 470.2 MB, free: 288 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.1061, allocations: 64 kB / 470.3 MB, free: 224 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000757/0.1069, allocations: 0.5148 MB / 470.8 MB, free: 15.7 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004402/0.1074, allocations: 478.8 kB / 471.2 MB, free: 15.23 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005063/0.1079, allocations: 0.5248 MB / 471.8 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.1092, allocations: 1.48 MB / 473.2 MB, free: 13.22 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1092, allocations: 0 / 473.2 MB, free: 13.22 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1092, allocations: 0 / 473.2 MB, free: 13.22 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.1092, allocations: 0 / 473.2 MB, free: 13.22 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.002818/0.112, allocations: 1.575 MB / 474.8 MB, free: 11.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.1121, allocations: 8.031 kB / 474.8 MB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007001/0.1128, allocations: 155.6 kB / 475 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.114, allocations: 0.6864 MB / 475.7 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/0.1141, allocations: 179.4 kB / 475.8 MB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002173/0.1143, allocations: 111.9 kB / 476 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002515/0.1169, allocations: 1.528 MB / 477.5 MB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.056e-05/0.1169, allocations: 7.938 kB / 477.5 MB, free: 8.773 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.533e-05/0.117, allocations: 39.98 kB / 477.5 MB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001493/0.1172, allocations: 65.97 kB / 477.6 MB, free: 8.668 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.1192, allocations: 1.171 MB / 478.8 MB, free: 7.496 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006353/0.1256, allocations: 4.797 MB / 483.6 MB, free: 2.539 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002776/0.1284, allocations: 1.113 MB / 484.7 MB, free: 1.391 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.1296, allocations: 0.5695 MB / 485.2 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.112e-05/0.1297, allocations: 8.547 kB / 485.2 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001351/0.1311, allocations: 0.7144 MB / 486 MB, free: 72 kB / 330.7 MB Notification: Performance of pre-optimization done (n=80): time 2.635e-06/0.1311, allocations: 0 / 486 MB, free: 72 kB / 330.7 MB Notification: Performance of matching and sorting (n=81): time 0.007408/0.1385, allocations: 3.189 MB / 489.2 MB, free: 12.78 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.1386, allocations: 131.4 kB / 489.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007526/0.1394, allocations: 0.5927 MB / 489.9 MB, free: 12.03 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.664e-05/0.1394, allocations: 53.69 kB / 489.9 MB, free: 11.97 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004015/0.1399, allocations: 451.1 kB / 490.4 MB, free: 11.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002656/0.1401, allocations: 276.2 kB / 490.6 MB, free: 11.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000305/0.1404, allocations: 198.4 kB / 490.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.1406, allocations: 390.8 kB / 491.2 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006784/0.1413, allocations: 486 kB / 491.7 MB, free: 10.18 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008286/0.1422, allocations: 0.746 MB / 492.4 MB, free: 9.324 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.1437, allocations: 1.254 MB / 493.7 MB, free: 7.949 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.1437, allocations: 4 kB / 493.7 MB, free: 7.945 MB / 346.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002378/0.1461, allocations: 1.58 MB / 495.3 MB, free: 6.324 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.234e-05/0.1462, allocations: 65.61 kB / 495.3 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001817/0.148, allocations: 1.329 MB / 496.7 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003994/0.1484, allocations: 113.6 kB / 496.8 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007117/0.1491, allocations: 203.6 kB / 497 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002683/0.1518, allocations: 3.075 MB / 0.4883 GB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007224/0.1526, allocations: 79.95 kB / 0.4884 GB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/0.1527, allocations: 75.94 kB / 0.4885 GB, free: 1.086 MB / 346.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,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.0005499/0.1533, allocations: 377.5 kB / 0.4888 GB, free: 0.707 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/0.1534, allocations: 75.06 kB / 0.4889 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002782/0.1562, allocations: 1.27 MB / 0.4901 GB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.977e-05/0.1563, allocations: 20 kB / 0.4902 GB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.1563, allocations: 3.984 kB / 0.4902 GB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.1563, allocations: 3.984 kB / 0.4902 GB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00437/0.1607, allocations: 2.428 MB / 0.4925 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.1607, allocations: 0 / 0.4925 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006892/0.1614, allocations: 155.6 kB / 0.4927 GB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001051/0.1615, allocations: 36.94 kB / 0.4927 GB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.492e-05/0.1616, allocations: 27.97 kB / 0.4928 GB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001094/0.1627, allocations: 1.471 MB / 0.4942 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1627, allocations: 3.938 kB / 0.4942 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01671/0.1794, allocations: 9.94 MB / 0.5039 GB, free: 0.625 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005086/0.18, allocations: 240.1 kB / 0.5041 GB, free: 380 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002288/0.1802, allocations: 79.94 kB / 0.5042 GB, free: 300 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007913/0.181, allocations: 87.88 kB / 0.5043 GB, free: 212 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.1812, allocations: 60.52 kB / 0.5044 GB, free: 152 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.773e-05/0.1813, allocations: 35.91 kB / 0.5044 GB, free: 116 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.1815/0.3628, allocations: 396 kB / 0.5048 GB, free: 66.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.3628, allocations: 0 / 0.5048 GB, free: 66.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001643/0.3645, allocations: 315.1 kB / 0.5051 GB, free: 66.04 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 (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.0002928/0.3648, allocations: 179.4 kB / 0.5052 GB, free: 65.95 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002827/0.3676, allocations: 1.622 MB / 0.5068 GB, free: 65.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3676, allocations: 1.156 kB / 0.5068 GB, free: 65.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.369, allocations: 0.661 MB / 0.5075 GB, free: 65.49 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009739/0.37, allocations: 161.7 kB / 0.5076 GB, free: 65.44 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004859/0.3748, allocations: 3.357 MB / 0.5109 GB, free: 63.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000883/0.3758, allocations: 1.149 MB / 0.512 GB, free: 62.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009547/0.3767, allocations: 246 kB / 0.5123 GB, free: 62.81 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002526/0.377, allocations: 68.56 kB / 0.5123 GB, free: 62.8 MB / 362.7 MB Notification: Performance of SimCode: time 7.02e-07/0.377, allocations: 4 kB / 0.5123 GB, free: 62.79 MB / 362.7 MB Notification: Performance of Templates: time 0.01957/0.3966, allocations: 12.24 MB / 0.5243 GB, free: 58.63 MB / 362.7 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)