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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 116 kB / 16.63 MB, free: 6.812 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.001687/0.001687, allocations: 186 kB / 17.55 MB, free: 5.934 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.363/1.363, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1736/0.1736, allocations: 38.02 MB / 329.4 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.0014, allocations: 68.7 kB / 398.3 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1258, allocations: 58.06 MB / 456.3 MB, free: 8.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.00876/0.1346, allocations: 7.798 MB / 464.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003326/0.138, allocations: 2.026 MB / 466.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004162/0.1384, allocations: 51.62 kB / 466.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004563/0.1389, allocations: 131.1 kB / 466.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007871/0.1397, allocations: 410.2 kB / 466.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005587/0.1403, allocations: 311.7 kB / 467.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001326/0.1416, allocations: 1.512 MB / 468.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000453/0.1421, allocations: 401.7 kB / 469 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000747/0.1429, allocations: 0.5995 MB / 469.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008543/0.1437, allocations: 0.6855 MB / 470.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001408/0.1439, allocations: 96 kB / 470.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.1441, allocations: 104 kB / 470.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003901/0.1444, allocations: 411.1 kB / 470.8 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00046/0.1449, allocations: 481.9 kB / 471.3 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009977/0.1459, allocations: 1.172 MB / 472.5 MB, free: 8.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1459, allocations: 0 / 472.5 MB, free: 8.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1459, allocations: 0 / 472.5 MB, free: 8.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.146, allocations: 0 / 472.5 MB, free: 8.172 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002645/0.1486, allocations: 1.305 MB / 473.8 MB, free: 6.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.1487, allocations: 19.89 kB / 473.8 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.1489, allocations: 99.89 kB / 473.9 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.1501, allocations: 0.6821 MB / 474.6 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000396/0.1505, allocations: 346.9 kB / 474.9 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.1507, allocations: 67.91 kB / 475 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002259/0.1529, allocations: 1.145 MB / 476.1 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.153, allocations: 4 kB / 476.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.291e-05/0.153, allocations: 24 kB / 476.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.1532, allocations: 41.28 kB / 476.2 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002614/0.1558, allocations: 1.18 MB / 477.4 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005162/0.161, allocations: 3.484 MB / 480.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002445/0.1634, allocations: 0.9651 MB / 481.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00163/0.1651, allocations: 0.6903 MB / 482.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.446e-05/0.1652, allocations: 4.562 kB / 482.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001563/0.1667, allocations: 0.6849 MB / 483.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.785e-06/0.1667, allocations: 4 kB / 483.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.01945/0.1862, allocations: 5.659 MB / 488.9 MB, free: 7.348 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.63e-05/0.1863, allocations: 89.66 kB / 489 MB, free: 7.238 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006114/0.1869, allocations: 473.8 kB / 489.4 MB, free: 6.766 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001441/0.1871, allocations: 37.7 kB / 489.5 MB, free: 6.723 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003024/0.1874, allocations: 328.2 kB / 489.8 MB, free: 6.398 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002238/0.1876, allocations: 205.1 kB / 490 MB, free: 6.195 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002526/0.1879, allocations: 126.3 kB / 490.1 MB, free: 6.066 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.1881, allocations: 370.8 kB / 490.5 MB, free: 5.695 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.1892, allocations: 0.509 MB / 491 MB, free: 5.188 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.1903, allocations: 0.6258 MB / 491.6 MB, free: 4.52 MB / 366.1 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.006843/0.1972, allocations: 3.144 MB / 494.7 MB, free: 1.297 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1972, allocations: 0 / 494.7 MB, free: 1.297 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00737/0.2046, allocations: 2.491 MB / 497.2 MB, free: 14.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.069e-05/0.2047, allocations: 53.72 kB / 497.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.2047, allocations: 11.98 kB / 497.3 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00265/0.2074, allocations: 1.093 MB / 498.4 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005251/0.2079, allocations: 107.8 kB / 498.5 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01534/0.2233, allocations: 6.854 MB / 0.4935 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007977/0.2241, allocations: 87.95 kB / 0.4936 GB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.88e-05/0.2242, allocations: 39.98 kB / 0.4936 GB, free: 6.395 MB / 382.1 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.0004866/0.2247, allocations: 275.4 kB / 0.4939 GB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.2248, allocations: 63.33 kB / 0.494 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00769/0.2325, allocations: 2.432 MB / 0.4963 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.2325, allocations: 4 kB / 0.4963 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.2325, allocations: 0 / 0.4963 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-05/0.2326, allocations: 7.984 kB / 0.4963 GB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2192/0.4517, allocations: 3.561 MB / 0.4998 GB, free: 56.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/0.4518, allocations: 1.469 kB / 0.4998 GB, free: 56.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000461/0.4523, allocations: 79.12 kB / 0.4999 GB, free: 56.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00258/0.4549, allocations: 1.088 MB / 0.501 GB, free: 56.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.455, allocations: 18.05 kB / 0.501 GB, free: 56.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0154/0.4704, allocations: 6.851 MB / 0.5077 GB, free: 53.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/0.4704, allocations: 1.188 kB / 0.5077 GB, free: 53.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009655/0.4801, allocations: 3.201 MB / 0.5108 GB, free: 53.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004248/0.4806, allocations: 220.8 kB / 0.511 GB, free: 53.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.4807, allocations: 28.67 kB / 0.511 GB, free: 53.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006709/0.4814, allocations: 103.8 kB / 0.5111 GB, free: 53.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004474/0.4818, allocations: 170.5 kB / 0.5113 GB, free: 53.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.897e-05/0.4819, allocations: 22.08 kB / 0.5113 GB, free: 53.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000359/0.4823, allocations: 324.5 kB / 0.5116 GB, free: 52.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4823, allocations: 0 / 0.5116 GB, free: 52.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008854/0.4832, allocations: 224.6 kB / 0.5118 GB, free: 52.85 MB / 382.1 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.0002026/0.4834, allocations: 130.8 kB / 0.512 GB, free: 52.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004432/0.4878, allocations: 1.851 MB / 0.5138 GB, free: 52.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.4879, allocations: 4.375 kB / 0.5138 GB, free: 52.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002955/0.4908, allocations: 1.11 MB / 0.5149 GB, free: 51.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000971/0.4918, allocations: 166.5 kB / 0.515 GB, free: 51.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003186/0.495, allocations: 1.978 MB / 0.5169 GB, free: 50.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004989/0.4955, allocations: 0.9965 MB / 0.5179 GB, free: 49.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004213/0.496, allocations: 118.4 kB / 0.518 GB, free: 49.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.4961, allocations: 49.95 kB / 0.5181 GB, free: 49.88 MB / 382.1 MB Notification: Performance of SimCode: time 1.803e-06/0.4961, allocations: 4 kB / 0.5181 GB, free: 49.87 MB / 382.1 MB Notification: Performance of Templates: time 0.01978/0.5159, allocations: 16.4 MB / 0.5341 GB, free: 37.8 MB / 382.1 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)