Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002636/0.00264, allocations: 364.4 kB / 17.21 MB, free: 4.953 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.688/3.688, allocations: 388.9 MB / 406.8 MB, free: 12.01 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.003568/0.003568, allocations: 235.5 kB / 452.2 MB, free: 14.6 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.7415/0.7415, allocations: 76.01 MB / 0.56 GB, free: 177.6 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004513/0.0004515, allocations: 12 kB / 0.6222 GB, free: 114.2 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08812/0.08859, allocations: 53.23 MB / 0.6742 GB, free: 60.93 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.451/0.5397, allocations: 97.13 MB / 0.7691 GB, free: 81.59 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/0.54, allocations: 98.67 kB / 0.7692 GB, free: 81.59 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0565/0.5965, allocations: 14.3 MB / 0.7831 GB, free: 78.84 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.5966, allocations: 2.625 kB / 0.7831 GB, free: 78.84 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.383e-05/0.5966, allocations: 15.38 kB / 0.7832 GB, free: 78.84 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00259/0.5992, allocations: 1.043 MB / 0.7842 GB, free: 78.08 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.5993, allocations: 7.719 kB / 0.7842 GB, free: 78.08 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002779/0.5996, allocations: 88.94 kB / 0.7843 GB, free: 78.04 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002769/0.6024, allocations: 0.8528 MB / 0.7851 GB, free: 77.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000152/0.6026, allocations: 111.8 kB / 0.7852 GB, free: 77.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001814/0.6028, allocations: 69.33 kB / 0.7853 GB, free: 77.51 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002324/0.6051, allocations: 0.8795 MB / 0.7861 GB, free: 77.17 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.065e-05/0.6052, allocations: 0 / 0.7861 GB, free: 77.17 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.563e-05/0.6053, allocations: 27.05 kB / 0.7862 GB, free: 77.17 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.6053, allocations: 15.25 kB / 0.7862 GB, free: 77.17 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0019/0.6072, allocations: 0.6157 MB / 0.7868 GB, free: 77.04 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005111/0.6123, allocations: 2.754 MB / 0.7895 GB, free: 75.37 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002747/0.6151, allocations: 0.9115 MB / 0.7904 GB, free: 74.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.6162, allocations: 292.9 kB / 0.7906 GB, free: 74.76 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.005e-05/0.6163, allocations: 12.08 kB / 0.7906 GB, free: 74.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001071/0.6173, allocations: 353.3 kB / 0.791 GB, free: 74.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 3.497e-06/0.6174, allocations: 0 / 0.791 GB, free: 74.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=42): time 0.006468/0.6238, allocations: 1.964 MB / 0.7929 GB, free: 73.55 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/0.6239, allocations: 125.8 kB / 0.793 GB, free: 73.41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007995/0.6248, allocations: 0.5098 MB / 0.7935 GB, free: 73.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.741e-05/0.6248, allocations: 40.64 kB / 0.7936 GB, free: 73.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002754/0.6251, allocations: 357.1 kB / 0.7939 GB, free: 72.96 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001405/0.6253, allocations: 141.7 kB / 0.794 GB, free: 72.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.041e-05/0.6253, allocations: 14.09 kB / 0.794 GB, free: 72.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.6255, allocations: 370.6 kB / 0.7944 GB, free: 72.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004748/0.6259, allocations: 198.3 kB / 0.7946 GB, free: 72.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005569/0.6265, allocations: 373.9 kB / 0.7949 GB, free: 72.27 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005774/0.6271, allocations: 293.7 kB / 0.7952 GB, free: 72.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.6271, allocations: 0 / 0.7952 GB, free: 72.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001647/0.6288, allocations: 0.8334 MB / 0.796 GB, free: 71.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.366e-05/0.6289, allocations: 48.34 kB / 0.7961 GB, free: 71.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.6289, allocations: 13.72 kB / 0.7961 GB, free: 71.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003367/0.6292, allocations: 72.8 kB / 0.7962 GB, free: 71.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007247/0.63, allocations: 108.2 kB / 0.7963 GB, free: 71.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002285/0.6323, allocations: 2.844 MB / 0.799 GB, free: 69.08 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007106/0.633, allocations: 34.38 kB / 0.7991 GB, free: 69.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.6332, allocations: 41.83 kB / 0.7991 GB, free: 69.06 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.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): 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005594/0.6337, allocations: 279 kB / 0.7994 GB, free: 68.91 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.6338, allocations: 58.41 kB / 0.7994 GB, free: 68.88 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002335/0.6362, allocations: 0.6842 MB / 0.8001 GB, free: 68.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.6362, allocations: 5.875 kB / 0.8001 GB, free: 68.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.6362, allocations: 6.922 kB / 0.8001 GB, free: 68.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.6363, allocations: 3.984 kB / 0.8001 GB, free: 68.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003692/0.64, allocations: 1.534 MB / 0.8016 GB, free: 67.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.64, allocations: 0.75 kB / 0.8016 GB, free: 67.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005413/0.6406, allocations: 59.78 kB / 0.8017 GB, free: 67.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002998/0.6409, allocations: 74.69 kB / 0.8017 GB, free: 67.74 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.889e-05/0.641, allocations: 19.77 kB / 0.8018 GB, free: 67.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002181/0.6431, allocations: 2.835 MB / 0.8045 GB, free: 65.03 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.6432, allocations: 0 / 0.8045 GB, free: 65.03 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003243/0.6464, allocations: 1.056 MB / 0.8056 GB, free: 64.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003322/0.6468, allocations: 175 kB / 0.8057 GB, free: 64.43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/0.647, allocations: 28.36 kB / 0.8058 GB, free: 64.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006941/0.6477, allocations: 51.38 kB / 0.8058 GB, free: 64.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.6478, allocations: 26.31 kB / 0.8058 GB, free: 64.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.142e-05/0.6479, allocations: 22.77 kB / 0.8059 GB, free: 64.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005783/0.6485, allocations: 355.5 kB / 0.8062 GB, free: 64.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6485, allocations: 0 / 0.8062 GB, free: 64.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009547/0.6495, allocations: 151.8 kB / 0.8063 GB, free: 64.25 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002431/0.6497, allocations: 130.3 kB / 0.8065 GB, free: 64.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002202/0.6519, allocations: 0.8929 MB / 0.8073 GB, free: 63.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.652, allocations: 3.969 kB / 0.8073 GB, free: 63.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001344/0.6533, allocations: 0.4964 MB / 0.8078 GB, free: 63.46 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/0.6547, allocations: 145.2 kB / 0.808 GB, free: 63.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00387/0.6586, allocations: 1.791 MB / 0.8097 GB, free: 62.32 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.6592, allocations: 0.9907 MB / 0.8107 GB, free: 61.5 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006031/0.6598, allocations: 104.2 kB / 0.8108 GB, free: 61.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001811/0.66, allocations: 46.94 kB / 0.8108 GB, free: 61.44 MB / 442.7 MB Notification: Performance of SimCode: time 7.81e-07/0.66, allocations: 0 / 0.8108 GB, free: 61.44 MB / 442.7 MB Notification: Performance of Templates: time 0.01886/0.6789, allocations: 6.75 MB / 0.8174 GB, free: 58.12 MB / 442.7 MB