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.001353/0.001353, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001363/0.001363, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.33/1.33, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1753/0.1753, allocations: 38.03 MB / 330.4 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002342/0.002342, allocations: 65.97 kB / 399.5 MB, free: 34.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.112, allocations: 58.06 MB / 457.5 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.009025/0.1211, allocations: 6.577 MB / 464.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00318/0.1243, allocations: 1.752 MB / 465.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006549/0.125, allocations: 27.81 kB / 465.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000898/0.1259, allocations: 226.4 kB / 466.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001162/0.1272, allocations: 385.8 kB / 466.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000659/0.1278, allocations: 227.6 kB / 466.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001447/0.1293, allocations: 1.067 MB / 467.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007918/0.1301, allocations: 0.51 MB / 468.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000929/0.1311, allocations: 470.2 kB / 468.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.1321, allocations: 486.3 kB / 469.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002322/0.1324, allocations: 84 kB / 469.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002806/0.1327, allocations: 84 kB / 469.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003582/0.133, allocations: 279.3 kB / 469.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006462/0.1337, allocations: 406.3 kB / 470.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.1348, allocations: 1.036 MB / 471.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1348, allocations: 0 / 471.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1348, allocations: 0 / 471.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.506e-05/0.1349, allocations: 0 / 471.1 MB, free: 10.42 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.00263/0.1375, allocations: 1.013 MB / 472.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.1376, allocations: 8.031 kB / 472.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001987/0.1378, allocations: 72.09 kB / 472.2 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001189/0.139, allocations: 0.633 MB / 472.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.1391, allocations: 109.3 kB / 472.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.1393, allocations: 59.94 kB / 473 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.1406, allocations: 0.7499 MB / 473.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.1407, allocations: 3.938 kB / 473.7 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.083e-05/0.1407, allocations: 24 kB / 473.8 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.1408, allocations: 12 kB / 473.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001245/0.142, allocations: 0.6089 MB / 474.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003612/0.1456, allocations: 2.456 MB / 476.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009247/0.1466, allocations: 440.1 kB / 477.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004333/0.147, allocations: 198.6 kB / 477.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/0.1471, allocations: 4.281 kB / 477.5 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004647/0.1475, allocations: 247.3 kB / 477.7 MB, free: 3.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.505e-06/0.1475, allocations: 0 / 477.7 MB, free: 3.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003244/0.1508, allocations: 0.8784 MB / 478.6 MB, free: 2.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.122e-05/0.1509, allocations: 136.5 kB / 478.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004744/0.1514, allocations: 405.9 kB / 479.1 MB, free: 2.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.1514, allocations: 37.7 kB / 479.1 MB, free: 2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/0.1517, allocations: 316 kB / 479.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.1518, allocations: 122.3 kB / 479.6 MB, free: 1.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001293/0.1519, allocations: 74.14 kB / 479.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1521, allocations: 354.8 kB / 480 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003172/0.1524, allocations: 140.7 kB / 480.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003686/0.1528, allocations: 242 kB / 480.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.1543, allocations: 0.6672 MB / 481 MB, free: 15.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.1543, allocations: 4 kB / 481 MB, free: 15.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001173/0.1555, allocations: 0.5168 MB / 481.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.1556, allocations: 8 kB / 481.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.1556, allocations: 4.469 kB / 481.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004881/0.1561, allocations: 148.8 kB / 481.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002888/0.1564, allocations: 83.83 kB / 481.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003652/0.16, allocations: 2.259 MB / 484.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000368/0.1604, allocations: 55.45 kB / 484.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-05/0.1605, allocations: 20 kB / 484.1 MB, free: 12.74 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.0003793/0.1609, allocations: 247.6 kB / 484.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.161, allocations: 51.38 kB / 484.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001356/0.1623, allocations: 474.7 kB / 484.9 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.1624, allocations: 11.94 kB / 484.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.1624, allocations: 0 / 484.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.1624, allocations: 3.984 kB / 484.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.1634, allocations: 0.6746 MB / 485.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.796e-06/0.1635, allocations: 7.938 kB / 485.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00025/0.1637, allocations: 51.91 kB / 485.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004414/0.1642, allocations: 144.8 kB / 485.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.359e-05/0.1642, allocations: 4 kB / 485.8 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00359/0.1678, allocations: 2.248 MB / 488 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.1678, allocations: 7.969 kB / 488 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.1695, allocations: 0.6869 MB / 488.7 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002308/0.1697, allocations: 152.4 kB / 488.9 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.627e-05/0.1698, allocations: 4.188 kB / 488.9 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002636/0.1701, allocations: 23.91 kB / 488.9 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.1702, allocations: 39.89 kB / 488.9 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/0.1702, allocations: 19.88 kB / 489 MB, free: 7.645 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003949/0.1707, allocations: 283.1 kB / 489.2 MB, free: 7.371 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.1707, allocations: 0 / 489.2 MB, free: 7.371 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007161/0.1714, allocations: 163.4 kB / 489.4 MB, free: 7.211 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.0001624/0.1716, allocations: 103.2 kB / 489.5 MB, free: 7.098 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.1729, allocations: 0.5383 MB / 490 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.1729, allocations: 0 / 490 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005969/0.1735, allocations: 335.5 kB / 490.4 MB, free: 6.207 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007633/0.1743, allocations: 159.9 kB / 490.5 MB, free: 6.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.1769, allocations: 1.302 MB / 491.8 MB, free: 4.715 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006149/0.1776, allocations: 0.925 MB / 492.7 MB, free: 3.762 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.1777, allocations: 39.44 kB / 492.8 MB, free: 3.723 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.1777, allocations: 4 kB / 492.8 MB, free: 3.719 MB / 366.1 MB Notification: Performance of Templates: time 0.01711/0.1948, allocations: 10.26 MB / 0.4913 GB, free: 9.496 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)