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.001552/0.001552, allocations: 180 kB / 17.4 MB, free: 4.414 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.435/1.435, allocations: 194.5 MB / 212.6 MB, free: 2.859 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.001706/0.001705, allocations: 108.3 kB / 257.9 MB, free: 4.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1858/0.1858, allocations: 38.01 MB / 341.1 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004118/0.0004118, allocations: 12 kB / 405 MB, free: 68.47 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1011, allocations: 53.23 MB / 458.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4118/0.513, allocations: 107.5 MB / 0.5525 GB, free: 3.801 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.5133, allocations: 105.6 kB / 0.5526 GB, free: 3.746 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06626/0.5796, allocations: 24.03 MB / 0.5761 GB, free: 15.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5796, allocations: 0 / 0.5761 GB, free: 15.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.386e-05/0.5797, allocations: 20 kB / 0.5761 GB, free: 15.02 MB / 394.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.002906/0.5826, allocations: 1.406 MB / 0.5774 GB, free: 13.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.5826, allocations: 12.03 kB / 0.5775 GB, free: 13.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007752/0.5834, allocations: 159.5 kB / 0.5776 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002466/0.5859, allocations: 1.068 MB / 0.5787 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001799/0.5861, allocations: 176.3 kB / 0.5788 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000166/0.5863, allocations: 95.42 kB / 0.5789 GB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002767/0.589, allocations: 1.541 MB / 0.5804 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.716e-05/0.5891, allocations: 11.84 kB / 0.5804 GB, free: 11.06 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.5892, allocations: 46.34 kB / 0.5805 GB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001042/0.5893, allocations: 57.55 kB / 0.5805 GB, free: 10.99 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002053/0.5914, allocations: 1.146 MB / 0.5816 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006191/0.5976, allocations: 4.793 MB / 0.5863 GB, free: 6.047 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002731/0.6003, allocations: 1.189 MB / 0.5875 GB, free: 5.082 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/0.6016, allocations: 0.5896 MB / 0.5881 GB, free: 4.652 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.526e-05/0.6016, allocations: 8.547 kB / 0.5881 GB, free: 4.645 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001358/0.603, allocations: 0.7308 MB / 0.5888 GB, free: 4.062 MB / 394.7 MB Notification: Performance of pre-optimization done (n=82): time 4.107e-06/0.603, allocations: 4 kB / 0.5888 GB, free: 4.059 MB / 394.7 MB Notification: Performance of matching and sorting (n=83): time 0.006874/0.6099, allocations: 3.316 MB / 0.592 GB, free: 1.301 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.478e-05/0.61, allocations: 122.9 kB / 0.5921 GB, free: 1.16 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007423/0.6108, allocations: 0.5854 MB / 0.5927 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.769e-05/0.6109, allocations: 60.23 kB / 0.5928 GB, free: 0.6445 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003522/0.6112, allocations: 448.3 kB / 0.5932 GB, free: 312 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002213/0.6115, allocations: 282.9 kB / 0.5935 GB, free: 64 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.303e-05/0.6115, allocations: 17.31 kB / 0.5935 GB, free: 60 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.6117, allocations: 390.9 kB / 0.5939 GB, free: 15.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006538/0.6124, allocations: 482.7 kB / 0.5943 GB, free: 15.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00088/0.6133, allocations: 0.7531 MB / 0.5951 GB, free: 14.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001678/0.615, allocations: 1.261 MB / 0.5963 GB, free: 13.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.615, allocations: 0 / 0.5963 GB, free: 13.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002564/0.6175, allocations: 1.572 MB / 0.5978 GB, free: 11.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.853e-05/0.6176, allocations: 66.39 kB / 0.5979 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001925/0.6196, allocations: 1.317 MB / 0.5992 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004074/0.62, allocations: 97.64 kB / 0.5993 GB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007389/0.6207, allocations: 195.6 kB / 0.5994 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002686/0.6234, allocations: 2.981 MB / 0.6024 GB, free: 7.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007092/0.6242, allocations: 91.92 kB / 0.6024 GB, free: 6.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/0.6243, allocations: 63.95 kB / 0.6025 GB, free: 6.867 MB / 410.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): 108 * Array equations: 2 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007921/0.6251, allocations: 369.4 kB / 0.6029 GB, free: 6.496 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002861/0.6254, allocations: 79.06 kB / 0.6029 GB, free: 6.418 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002934/0.6283, allocations: 1.302 MB / 0.6042 GB, free: 5.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-05/0.6284, allocations: 19.94 kB / 0.6042 GB, free: 5.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.6284, allocations: 0 / 0.6042 GB, free: 5.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.6284, allocations: 7.984 kB / 0.6042 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004855/0.6333, allocations: 2.498 MB / 0.6067 GB, free: 2.473 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.6333, allocations: 0 / 0.6067 GB, free: 2.473 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000695/0.634, allocations: 143.8 kB / 0.6068 GB, free: 2.332 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.523e-05/0.6341, allocations: 28.78 kB / 0.6068 GB, free: 2.301 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.462e-05/0.6342, allocations: 23.97 kB / 0.6069 GB, free: 2.277 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.6353, allocations: 1.389 MB / 0.6082 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.6353, allocations: 0 / 0.6082 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003861/0.6391, allocations: 2.001 MB / 0.6102 GB, free: 14.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004847/0.6397, allocations: 244.1 kB / 0.6104 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002459/0.6399, allocations: 79.94 kB / 0.6105 GB, free: 14.37 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000782/0.6407, allocations: 103.9 kB / 0.6106 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.6409, allocations: 52.58 kB / 0.6106 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.721e-05/0.641, allocations: 35.97 kB / 0.6107 GB, free: 14.18 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006449/0.6416, allocations: 394.8 kB / 0.611 GB, free: 13.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6416, allocations: 0 / 0.611 GB, free: 13.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001371/0.643, allocations: 256.2 kB / 0.6113 GB, free: 13.55 MB / 426.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 (77): * Single equations (assignments): 61 * Array equations: 2 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00044/0.6434, allocations: 207 kB / 0.6115 GB, free: 13.33 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002933/0.6464, allocations: 1.654 MB / 0.6131 GB, free: 11.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.6464, allocations: 0 / 0.6131 GB, free: 11.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.6477, allocations: 0.6908 MB / 0.6138 GB, free: 10.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.6489, allocations: 163.3 kB / 0.6139 GB, free: 10.78 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004732/0.6536, allocations: 2.825 MB / 0.6167 GB, free: 7.914 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009516/0.6546, allocations: 1.107 MB / 0.6178 GB, free: 6.777 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007677/0.6554, allocations: 238.5 kB / 0.618 GB, free: 6.539 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002469/0.6556, allocations: 63.42 kB / 0.6181 GB, free: 6.477 MB / 426.7 MB Notification: Performance of SimCode: time 5.11e-07/0.6556, allocations: 4 kB / 0.6181 GB, free: 6.473 MB / 426.7 MB Notification: Performance of Templates: time 0.01967/0.6753, allocations: 10.07 MB / 0.6279 GB, free: 12.4 MB / 442.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)