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 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.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.001705/0.001705, allocations: 109.2 kB / 16.62 MB, free: 6.961 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.001823/0.001823, allocations: 189.8 kB / 17.54 MB, free: 6.066 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.368/1.368, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2012/0.2012, allocations: 38.03 MB / 329.4 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 68.77 kB / 398.3 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1135, allocations: 58.07 MB / 456.3 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.009146/0.1227, allocations: 7.015 MB / 463.4 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003917/0.1267, allocations: 1.858 MB / 465.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005089/0.1272, allocations: 47.69 kB / 465.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005019/0.1277, allocations: 119.2 kB / 465.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007397/0.1285, allocations: 326.6 kB / 465.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000541/0.129, allocations: 279.6 kB / 466 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001156/0.1302, allocations: 1.348 MB / 467.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004926/0.1307, allocations: 368.6 kB / 467.7 MB, free: 13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000728/0.1315, allocations: 0.5217 MB / 468.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007488/0.1322, allocations: 0.5803 MB / 468.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001206/0.1324, allocations: 88 kB / 468.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.1325, allocations: 92 kB / 469 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003754/0.1329, allocations: 351.2 kB / 469.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004299/0.1333, allocations: 430.2 kB / 469.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009952/0.1343, allocations: 1.036 MB / 470.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1344, allocations: 4 kB / 470.8 MB, free: 9.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.1344, allocations: 0 / 470.8 MB, free: 9.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.1344, allocations: 0 / 470.8 MB, free: 9.91 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002771/0.1372, allocations: 1.196 MB / 472 MB, free: 8.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.1372, allocations: 15.89 kB / 472 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001805/0.1374, allocations: 80.09 kB / 472.1 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001157/0.1386, allocations: 0.6277 MB / 472.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000425/0.139, allocations: 339.4 kB / 473 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.1391, allocations: 63.94 kB / 473.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002086/0.1412, allocations: 1.039 MB / 474.1 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.1412, allocations: 3.938 kB / 474.1 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-05/0.1413, allocations: 24 kB / 474.1 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.1414, allocations: 16 kB / 474.2 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002577/0.1439, allocations: 1.093 MB / 475.3 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005014/0.149, allocations: 3.209 MB / 478.5 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002066/0.151, allocations: 0.749 MB / 479.2 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.1524, allocations: 0.5221 MB / 479.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.12e-05/0.1525, allocations: 12.42 kB / 479.7 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001457/0.1539, allocations: 0.6225 MB / 480.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.434e-06/0.1539, allocations: 0 / 480.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003944/0.1579, allocations: 1.367 MB / 481.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.267e-05/0.158, allocations: 140.5 kB / 481.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005076/0.1585, allocations: 393.9 kB / 482.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.435e-05/0.1586, allocations: 37.7 kB / 482.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002443/0.1589, allocations: 296.3 kB / 482.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.159, allocations: 157.7 kB / 482.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002372/0.1593, allocations: 118.1 kB / 482.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.1594, allocations: 358.8 kB / 483.2 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.1604, allocations: 456.9 kB / 483.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.1615, allocations: 0.5561 MB / 484.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001864/0.1634, allocations: 0.8896 MB / 485.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.1634, allocations: 0 / 485.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002373/0.1658, allocations: 1.085 MB / 486.2 MB, free: 9.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.019e-05/0.1659, allocations: 53.62 kB / 486.2 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.1659, allocations: 4 kB / 486.2 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.531e-05/0.1659, allocations: 8 kB / 486.2 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005673/0.1716, allocations: 1.108 MB / 487.4 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008258/0.1799, allocations: 4.705 MB / 492.1 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.181, allocations: 107.3 kB / 492.2 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.1811, allocations: 47.97 kB / 492.2 MB, free: 3.664 MB / 366.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.0005944/0.1817, allocations: 255.3 kB / 492.5 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.1818, allocations: 51.38 kB / 492.5 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002675/0.1845, allocations: 0.9849 MB / 493.5 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.1846, allocations: 7.984 kB / 493.5 MB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1846, allocations: 8 kB / 493.5 MB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.906e-06/0.1846, allocations: 3.984 kB / 493.5 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004021/0.1886, allocations: 2.131 MB / 495.6 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.1886, allocations: 4 kB / 495.6 MB, free: 124 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006455/0.1951, allocations: 1.28 MB / 496.9 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-05/0.1951, allocations: 4 kB / 496.9 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.948e-05/0.1952, allocations: 15.98 kB / 496.9 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.1952, allocations: 4 kB / 496.9 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.1952, allocations: 4 kB / 497 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0042/0.1995, allocations: 1.695 MB / 498.6 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003411/0.1998, allocations: 200.5 kB / 498.8 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.1999, allocations: 31.98 kB / 498.9 MB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006529/0.2006, allocations: 87.88 kB / 499 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/0.2009, allocations: 99.72 kB / 499.1 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-05/0.2009, allocations: 20 kB / 499.1 MB, free: 12.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003158/0.2012, allocations: 271.1 kB / 499.3 MB, free: 12.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2012, allocations: 0 / 499.3 MB, free: 12.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007174/0.202, allocations: 183.5 kB / 499.5 MB, free: 12.19 MB / 382.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.0002286/0.2022, allocations: 126.1 kB / 499.6 MB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007605/0.2098, allocations: 2.171 MB / 0.4901 GB, free: 9.875 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2098, allocations: 320 / 0.4901 GB, free: 9.875 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0035/0.2134, allocations: 0.9639 MB / 0.491 GB, free: 8.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009485/0.2143, allocations: 126.9 kB / 0.4911 GB, free: 8.785 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004073/0.2184, allocations: 1.835 MB / 0.4929 GB, free: 6.906 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006869/0.2191, allocations: 0.929 MB / 0.4938 GB, free: 5.953 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006075/0.2197, allocations: 156.6 kB / 0.494 GB, free: 5.801 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.2199, allocations: 43.44 kB / 0.494 GB, free: 5.758 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.2199, allocations: 0 / 0.494 GB, free: 5.758 MB / 382.1 MB Notification: Performance of Templates: time 0.2407/0.4607, allocations: 8.432 MB / 0.5022 GB, free: 55.33 MB / 382.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)