Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001353/0.001353, allocations: 189.5 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.177/1.177, allocations: 194.2 MB / 212.2 MB, free: 2.355 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.001819/0.00182, allocations: 126.7 kB / 256.6 MB, free: 4.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1689/0.1689, allocations: 37.95 MB / 338.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 67.91 kB / 401.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08124/0.08237, allocations: 52.18 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.006077/0.08851, allocations: 7.785 MB / 461.8 MB, free: 8.742 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002609/0.09115, allocations: 2.081 MB / 463.9 MB, free: 6.652 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004084/0.09158, allocations: 55.62 kB / 463.9 MB, free: 6.598 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003976/0.09199, allocations: 135.1 kB / 464 MB, free: 6.465 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000615/0.09265, allocations: 410.3 kB / 464.4 MB, free: 6.062 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004631/0.09313, allocations: 319.6 kB / 464.8 MB, free: 5.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001112/0.09425, allocations: 2.011 MB / 466.8 MB, free: 3.734 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003204/0.09458, allocations: 328.2 kB / 467.1 MB, free: 3.414 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004587/0.09505, allocations: 0.5175 MB / 467.6 MB, free: 2.895 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005921/0.09565, allocations: 0.662 MB / 468.3 MB, free: 2.23 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.62e-05/0.09576, allocations: 52 kB / 468.3 MB, free: 2.18 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.09589, allocations: 52 kB / 468.4 MB, free: 2.129 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002547/0.09615, allocations: 371.1 kB / 468.7 MB, free: 1.766 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003045/0.09646, allocations: 430 kB / 469.2 MB, free: 1.344 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000608/0.09708, allocations: 1.133 MB / 470.3 MB, free: 212 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.09709, allocations: 0 / 470.3 MB, free: 212 kB / 314.7 MB Notification: Performance of FrontEnd: time 6.62e-07/0.0971, allocations: 0 / 470.3 MB, free: 212 kB / 314.7 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.09711, allocations: 0 / 470.3 MB, free: 212 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002485/0.0996, allocations: 1.313 MB / 471.6 MB, free: 14.83 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.09965, allocations: 8.031 kB / 471.6 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.09983, allocations: 95.91 kB / 471.7 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.1012, allocations: 0.6977 MB / 472.4 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004/0.1017, allocations: 338.8 kB / 472.7 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.1018, allocations: 67.98 kB / 472.8 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002155/0.104, allocations: 1.153 MB / 473.9 MB, free: 12.35 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.104, allocations: 0 / 473.9 MB, free: 12.35 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.389e-05/0.1041, allocations: 24 kB / 474 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/0.1042, allocations: 41.28 kB / 474 MB, free: 12.28 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002489/0.1067, allocations: 1.172 MB / 475.2 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004849/0.1115, allocations: 3.488 MB / 478.7 MB, free: 7.516 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002384/0.114, allocations: 0.9565 MB / 479.6 MB, free: 6.543 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001557/0.1155, allocations: 0.6903 MB / 480.3 MB, free: 5.848 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.32e-05/0.1156, allocations: 8.562 kB / 480.3 MB, free: 5.836 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001467/0.1171, allocations: 0.6849 MB / 481 MB, free: 5.133 MB / 330.7 MB Notification: Performance of pre-optimization done (n=59): time 2.635e-06/0.1171, allocations: 0 / 481 MB, free: 5.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=61): time 0.01891/0.136, allocations: 5.663 MB / 486.7 MB, free: 15.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.412e-05/0.1361, allocations: 101.5 kB / 486.8 MB, free: 15.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000563/0.1367, allocations: 465.8 kB / 487.2 MB, free: 14.81 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.1368, allocations: 45.69 kB / 487.3 MB, free: 14.76 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/0.1371, allocations: 324.2 kB / 487.6 MB, free: 14.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002/0.1373, allocations: 197.2 kB / 487.8 MB, free: 14.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/0.1376, allocations: 138.2 kB / 487.9 MB, free: 14.1 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1377, allocations: 366.7 kB / 488.3 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.1388, allocations: 0.509 MB / 488.8 MB, free: 13.22 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.14, allocations: 0.6258 MB / 489.4 MB, free: 12.55 MB / 346.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.006713/0.1467, allocations: 3.132 MB / 492.5 MB, free: 9.336 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.1467, allocations: 4 kB / 492.5 MB, free: 9.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007402/0.1541, allocations: 2.49 MB / 495 MB, free: 6.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.794e-05/0.1542, allocations: 49.69 kB / 495.1 MB, free: 6.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.1542, allocations: 4 kB / 495.1 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002338/0.1566, allocations: 1.09 MB / 496.2 MB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004424/0.157, allocations: 111.8 kB / 496.3 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01441/0.1715, allocations: 6.299 MB / 0.4908 GB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008189/0.1723, allocations: 91.84 kB / 0.4909 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001328/0.1725, allocations: 43.97 kB / 0.4909 GB, free: 14.99 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * 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 {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004926/0.173, allocations: 283.5 kB / 0.4912 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.1731, allocations: 63.23 kB / 0.4913 GB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007858/0.181, allocations: 2.425 MB / 0.4936 GB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/0.181, allocations: 8 kB / 0.4936 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.1811, allocations: 3.938 kB / 0.4936 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/0.1811, allocations: 3.984 kB / 0.4937 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01012/0.1912, allocations: 3.56 MB / 0.4971 GB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.751e-05/0.1913, allocations: 4 kB / 0.4971 GB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004383/0.1917, allocations: 75.89 kB / 0.4972 GB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002465/0.1942, allocations: 1.086 MB / 0.4983 GB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.1944, allocations: 27.97 kB / 0.4983 GB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01429/0.2087, allocations: 6.264 MB / 0.5044 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.2087, allocations: 8 kB / 0.5044 GB, free: 0.9414 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2772/0.486, allocations: 23.12 MB / 0.527 GB, free: 58.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003173/0.4863, allocations: 214.7 kB / 0.5272 GB, free: 57.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.966e-05/0.4864, allocations: 43.92 kB / 0.5272 GB, free: 57.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006691/0.4871, allocations: 95.8 kB / 0.5273 GB, free: 57.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003716/0.4875, allocations: 168.3 kB / 0.5275 GB, free: 57.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.072e-05/0.4875, allocations: 23.98 kB / 0.5275 GB, free: 57.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002853/0.4878, allocations: 322.9 kB / 0.5278 GB, free: 57.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4878, allocations: 0 / 0.5278 GB, free: 57.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009797/0.4888, allocations: 324 kB / 0.5281 GB, free: 56.89 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * 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 (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001694/0.489, allocations: 129.6 kB / 0.5283 GB, free: 56.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003839/0.4928, allocations: 1.723 MB / 0.5299 GB, free: 55.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.4929, allocations: 0 / 0.5299 GB, free: 55.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002759/0.4956, allocations: 1.106 MB / 0.531 GB, free: 53.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00081/0.4964, allocations: 144.1 kB / 0.5312 GB, free: 53.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004379/0.5008, allocations: 2.843 MB / 0.5339 GB, free: 50.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.5012, allocations: 1.021 MB / 0.5349 GB, free: 49.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004/0.5017, allocations: 129.2 kB / 0.5351 GB, free: 49.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.5018, allocations: 47.42 kB / 0.5351 GB, free: 49.68 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5018, allocations: 4 kB / 0.5351 GB, free: 49.68 MB / 362.7 MB Notification: Performance of Templates: time 0.02303/0.5248, allocations: 21.11 MB / 0.5557 GB, free: 28.58 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)