Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 110.9 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.001259/0.001259, allocations: 188.5 kB / 18.67 MB, free: 4.441 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.402/1.402, 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.1797/0.1797, allocations: 37.98 MB / 309.9 MB, free: 5.969 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.002249/0.002249, allocations: 71.89 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1085, allocations: 55.24 MB / 487.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.007553/0.1161, allocations: 5.967 MB / 493.7 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002904/0.119, allocations: 1.602 MB / 495.3 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005025/0.1195, allocations: 31.81 kB / 495.4 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005767/0.1201, allocations: 131 kB / 495.5 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.1212, allocations: 362.1 kB / 495.9 MB, free: 232 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007409/0.122, allocations: 315.5 kB / 496.2 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001557/0.1236, allocations: 1.337 MB / 497.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005169/0.1241, allocations: 372.6 kB / 497.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009887/0.1251, allocations: 0.549 MB / 498.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009724/0.1261, allocations: 0.5374 MB / 499 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002316/0.1263, allocations: 92 kB / 499 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002634/0.1266, allocations: 92 kB / 499.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004389/0.1271, allocations: 355.2 kB / 499.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000612/0.1277, allocations: 402.3 kB / 499.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.1288, allocations: 1.063 MB / 0.4892 GB, free: 11.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1289, allocations: 4 kB / 0.4892 GB, free: 11.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1289, allocations: 0 / 0.4892 GB, free: 11.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.527e-05/0.1289, allocations: 0 / 0.4892 GB, free: 11.13 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.003012/0.1319, allocations: 1.203 MB / 0.4904 GB, free: 9.863 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.132, allocations: 11.89 kB / 0.4904 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.1322, allocations: 84.09 kB / 0.4905 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001476/0.1337, allocations: 0.659 MB / 0.4911 GB, free: 9.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004411/0.1341, allocations: 339.4 kB / 0.4914 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/0.1343, allocations: 63.94 kB / 0.4915 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002306/0.1366, allocations: 1.046 MB / 0.4925 GB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.1366, allocations: 4 kB / 0.4925 GB, free: 7.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.848e-05/0.1367, allocations: 20 kB / 0.4925 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.1368, allocations: 12 kB / 0.4925 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002726/0.1395, allocations: 1.093 MB / 0.4936 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005182/0.1447, allocations: 3.201 MB / 0.4967 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002148/0.1468, allocations: 0.7451 MB / 0.4975 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001383/0.1482, allocations: 0.5299 MB / 0.498 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.078e-05/0.1483, allocations: 8.438 kB / 0.498 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001464/0.1498, allocations: 0.6225 MB / 0.4986 GB, free: 1.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.665e-06/0.1498, allocations: 0 / 0.4986 GB, free: 1.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003925/0.1537, allocations: 1.374 MB / 0.4999 GB, free: 15.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.1538, allocations: 140.5 kB / 0.5001 GB, free: 15.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000465/0.1543, allocations: 393.8 kB / 0.5005 GB, free: 15.22 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.679e-05/0.1544, allocations: 37.7 kB / 0.5005 GB, free: 15.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000231/0.1546, allocations: 292.3 kB / 0.5008 GB, free: 14.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.1548, allocations: 165.7 kB / 0.5009 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002399/0.155, allocations: 114.2 kB / 0.501 GB, free: 14.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1552, allocations: 362.8 kB / 0.5014 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.1562, allocations: 452.9 kB / 0.5018 GB, free: 13.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.1573, allocations: 0.5561 MB / 0.5024 GB, free: 13.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001952/0.1593, allocations: 0.8934 MB / 0.5032 GB, free: 12.26 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1593, allocations: 0 / 0.5032 GB, free: 12.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002369/0.1617, allocations: 1.082 MB / 0.5043 GB, free: 11.17 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.072e-05/0.1618, allocations: 53.62 kB / 0.5043 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.1618, allocations: 4 kB / 0.5043 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.1618, allocations: 12.2 kB / 0.5044 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005898/0.1677, allocations: 1.104 MB / 0.5054 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008183/0.1759, allocations: 4.705 MB / 0.51 GB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007398/0.1767, allocations: 107.4 kB / 0.5101 GB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.1768, allocations: 35.98 kB / 0.5102 GB, free: 4.863 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1) * 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004078/0.1772, allocations: 255.4 kB / 0.5104 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.1773, allocations: 51.38 kB / 0.5105 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002704/0.18, allocations: 0.9809 MB / 0.5114 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.779e-06/0.1801, allocations: 11.94 kB / 0.5114 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.1801, allocations: 7.922 kB / 0.5114 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.1801, allocations: 4 kB / 0.5114 GB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004435/0.1845, allocations: 2.134 MB / 0.5135 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.1845, allocations: 0 / 0.5135 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007143/0.1917, allocations: 1.287 MB / 0.5148 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.698e-06/0.1917, allocations: 4 kB / 0.5148 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.76e-05/0.1918, allocations: 11.98 kB / 0.5148 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/0.1918, allocations: 11.94 kB / 0.5148 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.1918, allocations: 4 kB / 0.5148 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004195/0.196, allocations: 1.693 MB / 0.5165 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003536/0.1964, allocations: 204.5 kB / 0.5167 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.1965, allocations: 27.98 kB / 0.5167 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007191/0.1972, allocations: 91.88 kB / 0.5168 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002347/0.1975, allocations: 95.72 kB / 0.5169 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.846e-05/0.1975, allocations: 19.98 kB / 0.5169 GB, free: 13.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003082/0.1979, allocations: 267.2 kB / 0.5171 GB, free: 13.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1979, allocations: 0 / 0.5171 GB, free: 13.56 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006349/0.1985, allocations: 183.5 kB / 0.5173 GB, free: 13.38 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001701/0.1987, allocations: 131.2 kB / 0.5174 GB, free: 13.24 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007747/0.2064, allocations: 2.078 MB / 0.5195 GB, free: 11.15 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2065, allocations: 0 / 0.5195 GB, free: 11.15 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003501/0.21, allocations: 0.9367 MB / 0.5204 GB, free: 10.21 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008259/0.2108, allocations: 149.4 kB / 0.5205 GB, free: 10.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003652/0.2145, allocations: 1.618 MB / 0.5221 GB, free: 8.398 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005143/0.215, allocations: 0.9329 MB / 0.523 GB, free: 7.438 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002412/0.2153, allocations: 51.38 kB / 0.5231 GB, free: 7.387 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2153, allocations: 4 kB / 0.5231 GB, free: 7.383 MB / 414.1 MB Notification: Performance of Templates: time 0.2001/0.4153, allocations: 11.51 MB / 0.5343 GB, free: 52.07 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)