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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001491/0.00149, allocations: 111.8 kB / 17.74 MB, free: 5.359 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.001844/0.001844, allocations: 177.5 kB / 18.66 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1779/0.1779, allocations: 37.98 MB / 309.9 MB, free: 5.973 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 67.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1217, allocations: 55.24 MB / 487.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.009873/0.1316, allocations: 6.597 MB / 494.4 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003648/0.1353, allocations: 1.777 MB / 496.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007041/0.1361, allocations: 27.81 kB / 496.2 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009503/0.137, allocations: 222.4 kB / 496.4 MB, free: 15.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001357/0.1384, allocations: 385.8 kB / 496.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006787/0.1392, allocations: 223.7 kB / 497 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001753/0.1409, allocations: 1.082 MB / 498.1 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00082/0.1418, allocations: 0.5139 MB / 498.6 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001136/0.1429, allocations: 474.3 kB / 499 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001294/0.1442, allocations: 490.3 kB / 499.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003004/0.1446, allocations: 88 kB / 499.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004096/0.145, allocations: 84 kB / 499.7 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004489/0.1454, allocations: 275.3 kB / 500 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008753/0.1463, allocations: 410.3 kB / 0.4886 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001527/0.1479, allocations: 1.036 MB / 0.4896 GB, free: 10.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.391e-06/0.1479, allocations: 0 / 0.4896 GB, free: 10.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1479, allocations: 4 kB / 0.4897 GB, free: 10.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.5e-05/0.148, allocations: 0 / 0.4897 GB, free: 10.66 MB / 382.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.002985/0.1509, allocations: 1.017 MB / 0.4906 GB, free: 9.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.151, allocations: 15.89 kB / 0.4907 GB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002348/0.1512, allocations: 76.09 kB / 0.4907 GB, free: 9.496 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/0.1527, allocations: 0.6487 MB / 0.4914 GB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.1528, allocations: 109.3 kB / 0.4915 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.153, allocations: 63.94 kB / 0.4915 GB, free: 8.629 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.1546, allocations: 0.7538 MB / 0.4923 GB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.1546, allocations: 0 / 0.4923 GB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.091e-05/0.1547, allocations: 24 kB / 0.4923 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.1547, allocations: 12 kB / 0.4923 GB, free: 7.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.1561, allocations: 0.6089 MB / 0.4929 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003975/0.1601, allocations: 2.467 MB / 0.4953 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009645/0.1611, allocations: 420.9 kB / 0.4957 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004661/0.1616, allocations: 203.6 kB / 0.4959 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.1616, allocations: 4.281 kB / 0.4959 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000518/0.1622, allocations: 239.3 kB / 0.4961 GB, free: 3.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=36): time 4.489e-06/0.1622, allocations: 4 kB / 0.4961 GB, free: 3.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.003258/0.1654, allocations: 0.8775 MB / 0.497 GB, free: 2.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.911e-05/0.1656, allocations: 136.5 kB / 0.4971 GB, free: 2.656 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005738/0.1661, allocations: 405.9 kB / 0.4975 GB, free: 2.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.1662, allocations: 29.7 kB / 0.4975 GB, free: 2.215 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002726/0.1665, allocations: 320 kB / 0.4978 GB, free: 1.898 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.1666, allocations: 118.4 kB / 0.498 GB, free: 1.781 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.1667, allocations: 82.12 kB / 0.498 GB, free: 1.691 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002223/0.167, allocations: 354.8 kB / 0.4984 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003211/0.1673, allocations: 128.8 kB / 0.4985 GB, free: 1.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003933/0.1677, allocations: 254 kB / 0.4987 GB, free: 0.918 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00158/0.1693, allocations: 0.6489 MB / 0.4994 GB, free: 224 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.1693, allocations: 0 / 0.4994 GB, free: 224 kB / 382.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00116/0.1705, allocations: 0.5291 MB / 0.4999 GB, free: 15.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.1705, allocations: 4 kB / 0.4999 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1705, allocations: 4 kB / 0.4999 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004753/0.171, allocations: 152.9 kB / 0.5 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002956/0.1713, allocations: 75.84 kB / 0.5001 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003719/0.175, allocations: 2.259 MB / 0.5023 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003953/0.1755, allocations: 59.45 kB / 0.5024 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/0.1755, allocations: 16 kB / 0.5024 GB, free: 12.97 MB / 398.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.0004126/0.1759, allocations: 245.9 kB / 0.5026 GB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.176, allocations: 55.36 kB / 0.5027 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001329/0.1774, allocations: 478.7 kB / 0.5031 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.1774, allocations: 11.88 kB / 0.5031 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1774, allocations: 4 kB / 0.5032 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.1774, allocations: 7.938 kB / 0.5032 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.1784, allocations: 0.6785 MB / 0.5038 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.1784, allocations: 3.938 kB / 0.5038 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002545/0.1787, allocations: 47.91 kB / 0.5039 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004324/0.1791, allocations: 140.8 kB / 0.504 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.602e-05/0.1792, allocations: 8 kB / 0.504 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00372/0.1829, allocations: 2.248 MB / 0.5062 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1829, allocations: 0 / 0.5062 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/0.1846, allocations: 0.6941 MB / 0.5069 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002168/0.1848, allocations: 152.5 kB / 0.507 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.213e-05/0.1849, allocations: 8 kB / 0.507 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002536/0.1852, allocations: 23.92 kB / 0.5071 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.1853, allocations: 39.89 kB / 0.5071 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.1853, allocations: 15.98 kB / 0.5071 GB, free: 7.867 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003457/0.1857, allocations: 271.3 kB / 0.5074 GB, free: 7.602 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1857, allocations: 4 kB / 0.5074 GB, free: 7.598 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006908/0.1864, allocations: 167.4 kB / 0.5075 GB, free: 7.434 MB / 398.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.000175/0.1866, allocations: 119.2 kB / 0.5077 GB, free: 7.305 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.1878, allocations: 0.4926 MB / 0.5081 GB, free: 6.801 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.1878, allocations: 4.125 kB / 0.5081 GB, free: 6.797 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006345/0.1884, allocations: 326.5 kB / 0.5084 GB, free: 6.465 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007629/0.1892, allocations: 165.5 kB / 0.5086 GB, free: 6.301 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.1917, allocations: 1.301 MB / 0.5099 GB, free: 4.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006622/0.1924, allocations: 0.9328 MB / 0.5108 GB, free: 3.992 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.1925, allocations: 35.44 kB / 0.5108 GB, free: 3.961 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1926, allocations: 0 / 0.5108 GB, free: 3.961 MB / 398.1 MB Notification: Performance of Templates: time 0.01772/0.2103, allocations: 10.31 MB / 0.5209 GB, free: 9.633 MB / 414.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)