Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002428/0.002427, allocations: 353.2 kB / 16.57 MB, free: 5.59 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.488/3.488, allocations: 388.9 MB / 406.2 MB, free: 12 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003475/0.003474, allocations: 235.8 kB / 451.6 MB, free: 14.58 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.6499/0.6499, allocations: 76.01 MB / 0.5594 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004614/0.0004616, allocations: 16 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0715/0.072, allocations: 53.23 MB / 0.6736 GB, free: 60.81 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.005961/0.078, allocations: 6.217 MB / 0.6797 GB, free: 54.57 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002681/0.08071, allocations: 1.825 MB / 0.6815 GB, free: 52.73 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003826/0.08111, allocations: 39.75 kB / 0.6815 GB, free: 52.7 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003895/0.08152, allocations: 139 kB / 0.6816 GB, free: 52.56 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007388/0.08227, allocations: 385.8 kB / 0.682 GB, free: 52.18 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00065/0.08294, allocations: 279.5 kB / 0.6823 GB, free: 51.91 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001087/0.08405, allocations: 1.371 MB / 0.6836 GB, free: 50.53 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003502/0.08441, allocations: 271.6 kB / 0.6839 GB, free: 50.26 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000508/0.08493, allocations: 422.3 kB / 0.6843 GB, free: 49.85 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006352/0.08559, allocations: 0.5102 MB / 0.6848 GB, free: 49.34 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.0857, allocations: 40 kB / 0.6848 GB, free: 49.3 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001302/0.08585, allocations: 40 kB / 0.6848 GB, free: 49.26 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.08614, allocations: 295.2 kB / 0.6851 GB, free: 48.97 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.08631, allocations: 153.4 kB / 0.6853 GB, free: 48.81 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006986/0.08702, allocations: 0.7988 MB / 0.6861 GB, free: 48.01 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.228e-06/0.08704, allocations: 0 / 0.6861 GB, free: 48.01 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.347e-06/0.08705, allocations: 3.938 kB / 0.6861 GB, free: 48.01 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.635e-06/0.08707, allocations: 0 / 0.6861 GB, free: 48.01 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002155/0.08923, allocations: 1.086 MB / 0.6871 GB, free: 46.86 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.08928, allocations: 15.97 kB / 0.6871 GB, free: 46.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.08946, allocations: 83.16 kB / 0.6872 GB, free: 46.76 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.09071, allocations: 0.615 MB / 0.6878 GB, free: 46.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004424/0.09118, allocations: 350.8 kB / 0.6881 GB, free: 45.71 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.09132, allocations: 60 kB / 0.6882 GB, free: 45.65 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002391/0.09372, allocations: 1.101 MB / 0.6893 GB, free: 44.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.09376, allocations: 0 / 0.6893 GB, free: 44.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.808e-05/0.09386, allocations: 31.94 kB / 0.6893 GB, free: 44.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.09389, allocations: 12 kB / 0.6893 GB, free: 44.47 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003026/0.09692, allocations: 1.194 MB / 0.6905 GB, free: 43.28 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005036/0.102, allocations: 3.268 MB / 0.6937 GB, free: 39.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002367/0.1044, allocations: 0.8315 MB / 0.6945 GB, free: 39.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001594/0.106, allocations: 0.5962 MB / 0.6951 GB, free: 38.46 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.828e-05/0.106, allocations: 4.438 kB / 0.6951 GB, free: 38.45 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001649/0.1077, allocations: 0.6812 MB / 0.6957 GB, free: 37.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 3.886e-06/0.1077, allocations: 4 kB / 0.6957 GB, free: 37.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.004476/0.1122, allocations: 1.559 MB / 0.6973 GB, free: 36.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.1123, allocations: 136.5 kB / 0.6974 GB, free: 36.02 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004534/0.1127, allocations: 385.9 kB / 0.6978 GB, free: 35.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.226e-05/0.1128, allocations: 37.7 kB / 0.6978 GB, free: 35.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.113, allocations: 296.3 kB / 0.6981 GB, free: 35.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.1132, allocations: 161.7 kB / 0.6982 GB, free: 35.13 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.077e-05/0.1132, allocations: 19.94 kB / 0.6983 GB, free: 35.11 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.707e-05/0.1133, allocations: 358.8 kB / 0.6986 GB, free: 34.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.1146, allocations: 492.9 kB / 0.6991 GB, free: 34.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.1158, allocations: 0.5835 MB / 0.6996 GB, free: 33.64 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.117, allocations: 0.4957 MB / 0.7001 GB, free: 33.14 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.147e-06/0.1171, allocations: 4 kB / 0.7001 GB, free: 33.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002702/0.1198, allocations: 1.152 MB / 0.7013 GB, free: 31.97 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.994e-05/0.1198, allocations: 53.64 kB / 0.7013 GB, free: 31.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.1199, allocations: 4 kB / 0.7013 GB, free: 31.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.1199, allocations: 8.156 kB / 0.7013 GB, free: 31.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00648/0.1264, allocations: 1.592 MB / 0.7029 GB, free: 30.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008166/0.1346, allocations: 4.844 MB / 0.7076 GB, free: 25.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008073/0.1354, allocations: 131.5 kB / 0.7077 GB, free: 25.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.733e-05/0.1355, allocations: 39.97 kB / 0.7078 GB, free: 25.03 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003921/0.1359, allocations: 251.3 kB / 0.708 GB, free: 24.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.136, allocations: 55.38 kB / 0.7081 GB, free: 24.72 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00311/0.1392, allocations: 1.102 MB / 0.7091 GB, free: 23.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.492e-06/0.1392, allocations: 4 kB / 0.7091 GB, free: 23.61 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.143e-06/0.1392, allocations: 4 kB / 0.7091 GB, free: 23.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.952e-06/0.1392, allocations: 7.922 kB / 0.7091 GB, free: 23.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004579/0.1438, allocations: 2.249 MB / 0.7113 GB, free: 21.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.713e-06/0.1438, allocations: 0 / 0.7113 GB, free: 21.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00779/0.1516, allocations: 1.838 MB / 0.7131 GB, free: 19.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.107e-05/0.1517, allocations: 4 kB / 0.7131 GB, free: 19.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.799e-05/0.1518, allocations: 15.98 kB / 0.7132 GB, free: 19.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.274e-06/0.1518, allocations: 4 kB / 0.7132 GB, free: 19.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.32e-06/0.1518, allocations: 0 / 0.7132 GB, free: 19.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004657/0.1565, allocations: 1.89 MB / 0.715 GB, free: 17.47 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003413/0.1568, allocations: 204.4 kB / 0.7152 GB, free: 17.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.157, allocations: 27.98 kB / 0.7152 GB, free: 17.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007569/0.1577, allocations: 127.9 kB / 0.7154 GB, free: 17.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002235/0.158, allocations: 91.73 kB / 0.7154 GB, free: 17.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.209e-05/0.1581, allocations: 19.98 kB / 0.7155 GB, free: 16.99 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000322/0.1584, allocations: 263.2 kB / 0.7157 GB, free: 16.73 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.95e-07/0.1584, allocations: 0 / 0.7157 GB, free: 16.73 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007495/0.1592, allocations: 187.5 kB / 0.7159 GB, free: 16.55 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001642/0.1593, allocations: 127.3 kB / 0.716 GB, free: 16.42 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008332/0.1677, allocations: 2.625 MB / 0.7186 GB, free: 13.78 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.352e-06/0.1677, allocations: 0 / 0.7186 GB, free: 13.78 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004051/0.1718, allocations: 1.203 MB / 0.7197 GB, free: 12.57 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009197/0.1727, allocations: 136.9 kB / 0.7199 GB, free: 12.44 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003712/0.1764, allocations: 1.879 MB / 0.7217 GB, free: 10.52 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004117/0.1769, allocations: 0.9371 MB / 0.7226 GB, free: 9.555 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006649/0.1776, allocations: 156.6 kB / 0.7228 GB, free: 9.398 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002225/0.1778, allocations: 43.44 kB / 0.7228 GB, free: 9.355 MB / 442.7 MB Notification: Performance of SimCode: time 1.466e-06/0.1778, allocations: 0 / 0.7228 GB, free: 9.355 MB / 442.7 MB Notification: Performance of Templates: time 0.01544/0.1932, allocations: 7.786 MB / 0.7304 GB, free: 1.602 MB / 442.7 MB