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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001061/0.001061, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.175/1.175, allocations: 194.2 MB / 212.2 MB, free: 2.359 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001625/0.001625, allocations: 124.7 kB / 256.6 MB, free: 4.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1712/0.1712, allocations: 37.95 MB / 338.8 MB, free: 2.211 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 64.23 kB / 401.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08579/0.08701, allocations: 52.19 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.006288/0.09333, allocations: 6.999 MB / 461 MB, free: 9.531 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003045/0.09641, allocations: 1.917 MB / 462.9 MB, free: 7.605 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006685/0.09711, allocations: 43.75 kB / 463 MB, free: 7.562 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004874/0.0976, allocations: 127.2 kB / 463.1 MB, free: 7.438 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000775/0.09843, allocations: 330.5 kB / 463.4 MB, free: 7.113 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000584/0.09902, allocations: 283.7 kB / 463.7 MB, free: 6.836 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001051/0.1001, allocations: 1.672 MB / 465.3 MB, free: 5.16 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003713/0.1005, allocations: 310.9 kB / 465.6 MB, free: 4.855 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005718/0.101, allocations: 466.2 kB / 466.1 MB, free: 4.398 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005788/0.1016, allocations: 0.5452 MB / 466.7 MB, free: 3.852 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.507e-05/0.1017, allocations: 48 kB / 466.7 MB, free: 3.805 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001214/0.1019, allocations: 48 kB / 466.7 MB, free: 3.758 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000249/0.1021, allocations: 307.2 kB / 467 MB, free: 3.457 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002838/0.1024, allocations: 374.3 kB / 467.4 MB, free: 3.09 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006217/0.103, allocations: 1.016 MB / 468.4 MB, free: 2.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1031, allocations: 0 / 468.4 MB, free: 2.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1031, allocations: 0 / 468.4 MB, free: 2.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.866e-06/0.1031, allocations: 0 / 468.4 MB, free: 2.07 MB / 314.7 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.002246/0.1053, allocations: 1.192 MB / 469.6 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.1054, allocations: 12.02 kB / 469.6 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001508/0.1055, allocations: 84.09 kB / 469.7 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.1066, allocations: 0.6238 MB / 470.3 MB, free: 56 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004384/0.107, allocations: 343.2 kB / 470.7 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.1071, allocations: 59.84 kB / 470.7 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00197/0.1091, allocations: 1.046 MB / 471.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.1092, allocations: 0 / 471.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.261e-05/0.1092, allocations: 28 kB / 471.8 MB, free: 14.51 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.1092, allocations: 12 kB / 471.8 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/0.1117, allocations: 1.089 MB / 472.9 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004748/0.1165, allocations: 3.201 MB / 476.1 MB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002/0.1185, allocations: 0.749 MB / 476.9 MB, free: 9.332 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.1199, allocations: 0.5299 MB / 477.4 MB, free: 8.797 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.862e-05/0.1199, allocations: 4.438 kB / 477.4 MB, free: 8.793 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001382/0.1213, allocations: 0.6264 MB / 478 MB, free: 8.137 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 4.197e-06/0.1213, allocations: 0 / 478 MB, free: 8.137 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.00374/0.1251, allocations: 1.364 MB / 479.4 MB, free: 6.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.559e-05/0.1252, allocations: 144.5 kB / 479.5 MB, free: 6.598 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004393/0.1256, allocations: 385.9 kB / 479.9 MB, free: 6.211 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.703e-05/0.1257, allocations: 41.7 kB / 479.9 MB, free: 6.164 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002129/0.1259, allocations: 296.4 kB / 480.2 MB, free: 5.867 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.1261, allocations: 173.6 kB / 480.4 MB, free: 5.695 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000206/0.1263, allocations: 114.1 kB / 480.5 MB, free: 5.578 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.1265, allocations: 358.8 kB / 480.9 MB, free: 5.219 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.1275, allocations: 456.9 kB / 481.3 MB, free: 4.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.1286, allocations: 0.5639 MB / 481.9 MB, free: 4.172 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001875/0.1304, allocations: 0.8779 MB / 482.7 MB, free: 3.242 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.1305, allocations: 8 kB / 482.8 MB, free: 3.234 MB / 330.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002295/0.1328, allocations: 1.085 MB / 483.8 MB, free: 2.137 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.429e-05/0.1328, allocations: 49.69 kB / 483.9 MB, free: 2.082 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.1328, allocations: 3.984 kB / 483.9 MB, free: 2.078 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.1329, allocations: 8 kB / 483.9 MB, free: 2.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005772/0.1387, allocations: 1.108 MB / 485 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007502/0.1462, allocations: 4.375 MB / 489.4 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008246/0.147, allocations: 111.5 kB / 489.5 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-05/0.1472, allocations: 35.97 kB / 489.5 MB, free: 12.18 MB / 346.7 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.0004515/0.1476, allocations: 255.3 kB / 489.8 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.1477, allocations: 47.44 kB / 489.8 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002662/0.1504, allocations: 0.9887 MB / 490.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.1504, allocations: 8 kB / 490.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.1504, allocations: 0 / 490.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.505e-06/0.1504, allocations: 7.875 kB / 490.8 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004148/0.1546, allocations: 2.151 MB / 493 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.1546, allocations: 0 / 493 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006777/0.1614, allocations: 1.287 MB / 494.3 MB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.038e-05/0.1614, allocations: 4 kB / 494.3 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.951e-05/0.1615, allocations: 11.98 kB / 494.3 MB, free: 7.324 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.655e-06/0.1615, allocations: 4 kB / 494.3 MB, free: 7.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.1615, allocations: 0 / 494.3 MB, free: 7.32 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01923/0.1808, allocations: 8.124 MB / 0.4906 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003078/0.1811, allocations: 200.4 kB / 0.4908 GB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.516e-05/0.1812, allocations: 35.98 kB / 0.4909 GB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006639/0.1819, allocations: 83.88 kB / 0.4909 GB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/0.1821, allocations: 91.78 kB / 0.491 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.741e-05/0.1822, allocations: 23.98 kB / 0.491 GB, free: 14.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002715/0.1825, allocations: 271.1 kB / 0.4913 GB, free: 14.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1825, allocations: 0 / 0.4913 GB, free: 14.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007578/0.1832, allocations: 235.6 kB / 0.4915 GB, free: 14.08 MB / 362.7 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.0001659/0.1834, allocations: 139.6 kB / 0.4917 GB, free: 13.94 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007395/0.1908, allocations: 2.078 MB / 0.4937 GB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.1908, allocations: 0 / 0.4937 GB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003612/0.1944, allocations: 0.9566 MB / 0.4946 GB, free: 10.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008809/0.1953, allocations: 129.9 kB / 0.4948 GB, free: 10.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004626/0.2, allocations: 2.163 MB / 0.4969 GB, free: 8.539 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006383/0.2006, allocations: 0.9412 MB / 0.4978 GB, free: 7.57 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007689/0.2014, allocations: 176.6 kB / 0.498 GB, free: 7.398 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002829/0.2017, allocations: 51.44 kB / 0.498 GB, free: 7.348 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/0.2017, allocations: 0 / 0.498 GB, free: 7.348 MB / 362.7 MB Notification: Performance of Templates: time 0.1922/0.3939, allocations: 10.34 MB / 0.5081 GB, free: 65.47 MB / 362.7 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)