Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001122/0.001122, allocations: 184.7 kB / 17.4 MB, free: 4.266 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.413/1.413, allocations: 194.5 MB / 212.6 MB, free: 2.941 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.001781/0.001781, allocations: 125.3 kB / 257.9 MB, free: 4.262 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1868/0.1868, allocations: 38.01 MB / 341.1 MB, free: 1.18 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003634/0.0003637, allocations: 12 kB / 405 MB, free: 68.47 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09679/0.09717, allocations: 53.23 MB / 458.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3821/0.4793, allocations: 97.17 MB / 0.5424 GB, free: 13.72 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003365/0.4797, allocations: 105.8 kB / 0.5425 GB, free: 13.67 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03959/0.5193, allocations: 14.32 MB / 0.5565 GB, free: 1.328 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5194, allocations: 4 kB / 0.5565 GB, free: 1.324 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.352e-05/0.5194, allocations: 12 kB / 0.5565 GB, free: 1.312 MB / 362.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.001927/0.5213, allocations: 1.04 MB / 0.5575 GB, free: 272 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.5214, allocations: 8.031 kB / 0.5575 GB, free: 264 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/0.5216, allocations: 87.91 kB / 0.5576 GB, free: 176 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00179/0.5234, allocations: 0.8713 MB / 0.5585 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/0.5235, allocations: 113.1 kB / 0.5586 GB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.5237, allocations: 64.94 kB / 0.5586 GB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.5251, allocations: 0.8759 MB / 0.5595 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.5252, allocations: 3.938 kB / 0.5595 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.154e-05/0.5252, allocations: 35.59 kB / 0.5595 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.5253, allocations: 16 kB / 0.5595 GB, free: 14.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/0.5264, allocations: 0.6075 MB / 0.5601 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003743/0.5301, allocations: 2.752 MB / 0.5628 GB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001553/0.5317, allocations: 0.9102 MB / 0.5637 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005635/0.5323, allocations: 288.5 kB / 0.564 GB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.5323, allocations: 8.312 kB / 0.564 GB, free: 10.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006648/0.533, allocations: 358.5 kB / 0.5643 GB, free: 10.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 3.226e-06/0.533, allocations: 0 / 0.5643 GB, free: 10.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.004067/0.5371, allocations: 1.966 MB / 0.5663 GB, free: 8.555 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.085e-05/0.5372, allocations: 118.7 kB / 0.5664 GB, free: 8.414 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006062/0.5378, allocations: 0.5099 MB / 0.5669 GB, free: 8.008 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.255e-05/0.5378, allocations: 40.58 kB / 0.5669 GB, free: 7.969 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002471/0.5381, allocations: 357.7 kB / 0.5673 GB, free: 7.703 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.5382, allocations: 140.3 kB / 0.5674 GB, free: 7.586 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.758e-05/0.5382, allocations: 8.5 kB / 0.5674 GB, free: 7.586 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.5384, allocations: 379.5 kB / 0.5678 GB, free: 7.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003044/0.5387, allocations: 210.2 kB / 0.568 GB, free: 7.094 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004001/0.5391, allocations: 381.7 kB / 0.5683 GB, free: 6.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007081/0.5398, allocations: 0.6177 MB / 0.5689 GB, free: 6.203 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.5398, allocations: 0 / 0.5689 GB, free: 6.203 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001053/0.5409, allocations: 0.8529 MB / 0.5698 GB, free: 5.504 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.274e-05/0.541, allocations: 49.44 kB / 0.5698 GB, free: 5.453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.541, allocations: 8 kB / 0.5698 GB, free: 5.445 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002405/0.5412, allocations: 72.88 kB / 0.5699 GB, free: 5.379 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003959/0.5416, allocations: 107.7 kB / 0.57 GB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002036/0.5437, allocations: 2.854 MB / 0.5728 GB, free: 2.293 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000372/0.5441, allocations: 39.56 kB / 0.5728 GB, free: 2.262 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.482e-05/0.5442, allocations: 43.75 kB / 0.5729 GB, free: 2.227 MB / 378.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.0004384/0.5446, allocations: 267.4 kB / 0.5731 GB, free: 2.012 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.579e-05/0.5447, allocations: 55.34 kB / 0.5732 GB, free: 1.957 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/0.546, allocations: 0.6973 MB / 0.5738 GB, free: 1.379 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.546, allocations: 4 kB / 0.5738 GB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.546, allocations: 0 / 0.5738 GB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.5461, allocations: 3.984 kB / 0.5738 GB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002396/0.5485, allocations: 1.539 MB / 0.5754 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.5485, allocations: 4 kB / 0.5754 GB, free: 32 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003089/0.5488, allocations: 59.95 kB / 0.5754 GB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002076/0.549, allocations: 75.77 kB / 0.5755 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.003e-05/0.5491, allocations: 18.3 kB / 0.5755 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001994/0.5511, allocations: 2.836 MB / 0.5783 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5511, allocations: 0 / 0.5783 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/0.553, allocations: 1.058 MB / 0.5793 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002828/0.5533, allocations: 177.9 kB / 0.5795 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.71e-05/0.5534, allocations: 26.67 kB / 0.5795 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003584/0.5538, allocations: 47.19 kB / 0.5795 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.535e-05/0.5539, allocations: 31.33 kB / 0.5796 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-05/0.5539, allocations: 15.81 kB / 0.5796 GB, free: 11.75 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004387/0.5544, allocations: 353 kB / 0.5799 GB, free: 11.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5544, allocations: 0 / 0.5799 GB, free: 11.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008041/0.5552, allocations: 149.8 kB / 0.5801 GB, free: 11.35 MB / 394.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.0002399/0.5554, allocations: 141.4 kB / 0.5802 GB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.557, allocations: 0.8934 MB / 0.5811 GB, free: 10.45 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.557, allocations: 0 / 0.5811 GB, free: 10.45 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008227/0.5578, allocations: 0.5078 MB / 0.5816 GB, free: 9.984 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008296/0.5587, allocations: 138.9 kB / 0.5817 GB, free: 9.883 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.5615, allocations: 1.795 MB / 0.5835 GB, free: 8.172 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005582/0.562, allocations: 0.9765 MB / 0.5844 GB, free: 7.191 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000376/0.5624, allocations: 108.9 kB / 0.5845 GB, free: 7.082 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.5625, allocations: 43.44 kB / 0.5846 GB, free: 7.039 MB / 394.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5625, allocations: 0 / 0.5846 GB, free: 7.039 MB / 394.7 MB Notification: Performance of Templates: time 0.01246/0.575, allocations: 6.799 MB / 0.5912 GB, free: 260 kB / 394.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)