Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Elementary.Inverter.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.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002354/0.002354, allocations: 355.3 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.18/3.18, allocations: 388.9 MB / 406.2 MB, free: 6.902 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003321/0.003321, allocations: 231.9 kB / 451.6 MB, free: 0.5898 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.6286/0.6286, allocations: 76.03 MB / 0.5594 GB, free: 14.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004548/0.0004549, allocations: 12 kB / 0.6216 GB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2609, allocations: 53.22 MB / 0.6736 GB, free: 62.63 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.006924/0.2679, allocations: 7.484 MB / 0.6809 GB, free: 55.12 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003669/0.2716, allocations: 2.381 MB / 0.6832 GB, free: 52.74 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004909/0.2721, allocations: 55.62 kB / 0.6833 GB, free: 52.69 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000326/0.2725, allocations: 150.9 kB / 0.6834 GB, free: 52.54 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001225/0.2737, allocations: 0.618 MB / 0.684 GB, free: 51.92 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009061/0.2746, allocations: 391.2 kB / 0.6844 GB, free: 51.54 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001191/0.2758, allocations: 1.562 MB / 0.6859 GB, free: 49.97 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001298/0.2771, allocations: 0.9043 MB / 0.6868 GB, free: 49.03 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005465/0.2777, allocations: 498 kB / 0.6873 GB, free: 48.54 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007914/0.2785, allocations: 0.6309 MB / 0.6879 GB, free: 47.91 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.2786, allocations: 44 kB / 0.688 GB, free: 47.86 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007259/0.2794, allocations: 475.2 kB / 0.6884 GB, free: 47.4 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003853/0.2798, allocations: 458.8 kB / 0.6888 GB, free: 46.95 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.28, allocations: 213.2 kB / 0.689 GB, free: 46.73 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.281, allocations: 1.157 MB / 0.6902 GB, free: 45.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.894e-06/0.2811, allocations: 0 / 0.6902 GB, free: 45.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.612e-06/0.2811, allocations: 0 / 0.6902 GB, free: 45.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.2811, allocations: 0 / 0.6902 GB, free: 45.57 MB / 346.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.002443/0.2835, allocations: 1.372 MB / 0.6915 GB, free: 44.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.035e-05/0.2836, allocations: 8.031 kB / 0.6915 GB, free: 44.12 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008334/0.2844, allocations: 166.6 kB / 0.6917 GB, free: 43.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.2856, allocations: 0.6698 MB / 0.6923 GB, free: 43.24 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001612/0.2858, allocations: 187 kB / 0.6925 GB, free: 43.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002747/0.2861, allocations: 99.98 kB / 0.6926 GB, free: 42.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002703/0.2888, allocations: 1.556 MB / 0.6941 GB, free: 41.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.119e-05/0.2889, allocations: 4 kB / 0.6941 GB, free: 41.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001201/0.289, allocations: 35.98 kB / 0.6942 GB, free: 41.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001592/0.2892, allocations: 69.97 kB / 0.6942 GB, free: 41.21 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002459/0.2917, allocations: 1.179 MB / 0.6954 GB, free: 40.03 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00629/0.298, allocations: 4.797 MB / 0.7001 GB, free: 35.08 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003087/0.3011, allocations: 1.205 MB / 0.7012 GB, free: 33.84 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/0.3025, allocations: 0.5813 MB / 0.7018 GB, free: 33.26 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.037e-05/0.3026, allocations: 16.55 kB / 0.7018 GB, free: 33.24 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001498/0.3041, allocations: 0.73 MB / 0.7025 GB, free: 32.49 MB / 346.7 MB Notification: Performance of pre-optimization done (n=80): time 3.706e-06/0.3041, allocations: 0 / 0.7025 GB, free: 32.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=81): time 0.007448/0.3116, allocations: 3.307 MB / 0.7058 GB, free: 29.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/0.3116, allocations: 131.4 kB / 0.7059 GB, free: 28.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006502/0.3123, allocations: 0.5849 MB / 0.7065 GB, free: 28.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.675e-05/0.3124, allocations: 49.7 kB / 0.7065 GB, free: 28.29 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002594/0.3127, allocations: 459 kB / 0.707 GB, free: 27.83 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/0.3129, allocations: 272.3 kB / 0.7072 GB, free: 27.56 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.175e-05/0.313, allocations: 19.94 kB / 0.7072 GB, free: 27.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3131, allocations: 390.7 kB / 0.7076 GB, free: 27.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007739/0.3139, allocations: 466 kB / 0.7081 GB, free: 26.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009387/0.3148, allocations: 0.7343 MB / 0.7088 GB, free: 25.85 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009243/0.3158, allocations: 0.5938 MB / 0.7093 GB, free: 25.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.067e-06/0.3158, allocations: 4 kB / 0.7094 GB, free: 25.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00269/0.3185, allocations: 1.553 MB / 0.7109 GB, free: 23.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.645e-05/0.3186, allocations: 69.62 kB / 0.7109 GB, free: 23.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002111/0.3207, allocations: 1.294 MB / 0.7122 GB, free: 22.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004292/0.3211, allocations: 113.6 kB / 0.7123 GB, free: 22.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008681/0.322, allocations: 195.7 kB / 0.7125 GB, free: 21.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002523/0.3246, allocations: 3.071 MB / 0.7155 GB, free: 18.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007182/0.3253, allocations: 83.92 kB / 0.7156 GB, free: 18.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.3255, allocations: 71.95 kB / 0.7156 GB, free: 18.45 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,$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.0005094/0.326, allocations: 384.7 kB / 0.716 GB, free: 18.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.3262, allocations: 83.02 kB / 0.7161 GB, free: 17.99 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003038/0.3292, allocations: 1.313 MB / 0.7174 GB, free: 16.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.528e-05/0.3293, allocations: 12 kB / 0.7174 GB, free: 16.63 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.243e-06/0.3293, allocations: 0 / 0.7174 GB, free: 16.63 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/0.3293, allocations: 11.98 kB / 0.7174 GB, free: 16.62 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004498/0.3338, allocations: 2.491 MB / 0.7198 GB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.024e-06/0.3339, allocations: 96 / 0.7198 GB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000887/0.3347, allocations: 143.8 kB / 0.72 GB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001032/0.3349, allocations: 36.83 kB / 0.72 GB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.111e-05/0.335, allocations: 23.98 kB / 0.72 GB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009702/0.3359, allocations: 1.474 MB / 0.7215 GB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.002e-06/0.336, allocations: 11.92 kB / 0.7215 GB, free: 12.22 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004215/0.3402, allocations: 1.989 MB / 0.7234 GB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003492/0.3406, allocations: 236.1 kB / 0.7236 GB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002058/0.3408, allocations: 87.89 kB / 0.7237 GB, free: 9.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008057/0.3416, allocations: 103.9 kB / 0.7238 GB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.3418, allocations: 52.58 kB / 0.7239 GB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.842e-05/0.3418, allocations: 31.97 kB / 0.7239 GB, free: 9.656 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004836/0.3423, allocations: 390.8 kB / 0.7243 GB, free: 9.277 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.33e-07/0.3424, allocations: 0 / 0.7243 GB, free: 9.277 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009942/0.3434, allocations: 240 kB / 0.7245 GB, free: 9.043 MB / 346.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.0002944/0.3437, allocations: 187 kB / 0.7247 GB, free: 8.848 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002925/0.3466, allocations: 1.631 MB / 0.7263 GB, free: 7.184 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.112e-06/0.3466, allocations: 0 / 0.7263 GB, free: 7.184 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002076/0.3487, allocations: 0.6863 MB / 0.7269 GB, free: 6.488 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.3502, allocations: 161.6 kB / 0.7271 GB, free: 6.336 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00798/0.3582, allocations: 2.815 MB / 0.7298 GB, free: 3.48 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/0.3595, allocations: 1.134 MB / 0.731 GB, free: 2.32 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001596/0.3612, allocations: 242.5 kB / 0.7312 GB, free: 2.078 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005133/0.3617, allocations: 63.44 kB / 0.7312 GB, free: 2.016 MB / 346.7 MB Notification: Performance of SimCode: time 2.726e-06/0.3617, allocations: 0 / 0.7312 GB, free: 2.016 MB / 346.7 MB Notification: Performance of Templates: time 0.02284/0.3846, allocations: 10.1 MB / 0.7411 GB, free: 8.012 MB / 362.7 MB