Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001783/0.001783, allocations: 111.1 kB / 17.29 MB, free: 6.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002473/0.002473, allocations: 197.3 kB / 18.21 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.608/1.608, allocations: 222.9 MB / 241.9 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3084/0.3084, allocations: 38.02 MB / 330 MB, free: 8.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002586/0.002586, allocations: 64.89 kB / 398.9 MB, free: 34.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1912/0.1939, allocations: 58.06 MB / 457 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.01705/0.211, allocations: 7.214 MB / 464.2 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006416/0.2175, allocations: 1.92 MB / 466.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001421/0.219, allocations: 31.81 kB / 466.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001491/0.2205, allocations: 198.8 kB / 466.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002163/0.2227, allocations: 354.3 kB / 466.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.2238, allocations: 191.8 kB / 466.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002223/0.2261, allocations: 1.079 MB / 468 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.2274, allocations: 0.51 MB / 468.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001335/0.2288, allocations: 470.2 kB / 468.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001502/0.2303, allocations: 0.5022 MB / 469.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003432/0.2307, allocations: 84 kB / 469.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004634/0.2312, allocations: 88 kB / 469.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006367/0.2318, allocations: 275.4 kB / 469.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001006/0.2328, allocations: 410.3 kB / 470.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001505/0.2344, allocations: 0.8457 MB / 471.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.2344, allocations: 0 / 471.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.2344, allocations: 0 / 471.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.034e-05/0.2345, allocations: 4 kB / 471.1 MB, free: 10.19 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.004132/0.2386, allocations: 1.02 MB / 472.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.367e-05/0.2387, allocations: 15.88 kB / 472.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003454/0.2391, allocations: 76.09 kB / 472.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002101/0.2412, allocations: 0.6213 MB / 472.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000263/0.2415, allocations: 113.3 kB / 473 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002167/0.2417, allocations: 63.94 kB / 473 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002498/0.2443, allocations: 0.746 MB / 473.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.685e-05/0.2443, allocations: 0 / 473.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001087/0.2444, allocations: 24 kB / 473.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.909e-05/0.2445, allocations: 16 kB / 473.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002086/0.2466, allocations: 0.6011 MB / 474.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006302/0.2529, allocations: 2.475 MB / 476.9 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.2545, allocations: 423.4 kB / 477.3 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007234/0.2553, allocations: 210.5 kB / 477.5 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.8e-05/0.2554, allocations: 8.219 kB / 477.5 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007322/0.2561, allocations: 243.4 kB / 477.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 5.2e-06/0.2561, allocations: 0 / 477.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.005209/0.2614, allocations: 0.8822 MB / 478.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.2615, allocations: 132.5 kB / 478.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009408/0.2625, allocations: 405.8 kB / 479.2 MB, free: 1.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.367e-05/0.2626, allocations: 29.7 kB / 479.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004567/0.2631, allocations: 320.1 kB / 479.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002077/0.2633, allocations: 122.3 kB / 479.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000237/0.2636, allocations: 82.16 kB / 479.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002119/0.2638, allocations: 358.7 kB / 480.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005396/0.2643, allocations: 124.8 kB / 480.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006356/0.265, allocations: 254 kB / 480.4 MB, free: 468 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002724/0.2677, allocations: 0.6632 MB / 481.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.994e-06/0.2678, allocations: 4 kB / 481.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00204/0.2698, allocations: 0.5172 MB / 481.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/0.2699, allocations: 4 kB / 481.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.2699, allocations: 4 kB / 481.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007973/0.2707, allocations: 152.9 kB / 481.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005281/0.2713, allocations: 71.91 kB / 481.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006039/0.2773, allocations: 2.259 MB / 484.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007184/0.2781, allocations: 55.58 kB / 484.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-05/0.2782, allocations: 16.08 kB / 484.2 MB, free: 12.52 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t1,$PRE.chopper.modulator.t0,chopper.chopper.diode.on,chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.gate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0007201/0.2789, allocations: 249.5 kB / 484.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001825/0.2791, allocations: 51.45 kB / 484.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002195/0.2813, allocations: 478.7 kB / 484.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.2814, allocations: 11.94 kB / 484.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2814, allocations: 0 / 484.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.2814, allocations: 4 kB / 484.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.283, allocations: 0.6746 MB / 485.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.283, allocations: 3.938 kB / 485.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004439/0.2835, allocations: 48.16 kB / 485.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007445/0.2843, allocations: 152.7 kB / 485.8 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.453e-05/0.2843, allocations: 12 kB / 485.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005577/0.2899, allocations: 2.252 MB / 488.1 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.29, allocations: 0 / 488.1 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002905/0.2929, allocations: 0.6843 MB / 488.8 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003866/0.2933, allocations: 156.4 kB / 488.9 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.2935, allocations: 12 kB / 488.9 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004696/0.294, allocations: 19.92 kB / 488.9 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.2942, allocations: 35.95 kB / 489 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-05/0.2942, allocations: 11.98 kB / 489 MB, free: 7.414 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006287/0.2949, allocations: 279.2 kB / 489.3 MB, free: 7.141 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.2949, allocations: 0 / 489.3 MB, free: 7.141 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001131/0.296, allocations: 155.5 kB / 489.4 MB, free: 6.988 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002431/0.2963, allocations: 119.2 kB / 489.5 MB, free: 6.859 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001935/0.2982, allocations: 0.5256 MB / 490.1 MB, free: 6.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.2983, allocations: 0 / 490.1 MB, free: 6.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009887/0.2993, allocations: 334.5 kB / 490.4 MB, free: 5.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.3006, allocations: 166.2 kB / 490.5 MB, free: 5.816 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004026/0.3046, allocations: 1.548 MB / 492.1 MB, free: 4.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000851/0.3055, allocations: 0.925 MB / 493 MB, free: 3.277 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.3057, allocations: 39.44 kB / 493.1 MB, free: 3.238 MB / 366.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3057, allocations: 0 / 493.1 MB, free: 3.238 MB / 366.1 MB Notification: Performance of Templates: time 0.02551/0.3312, allocations: 10.25 MB / 0.4915 GB, free: 9.031 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)