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 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.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.001629/0.001629, allocations: 108.3 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.001717/0.001717, allocations: 175.1 kB / 18.66 MB, free: 4.449 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.328/1.328, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1798/0.1798, allocations: 37.98 MB / 309.9 MB, free: 5.957 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.001601/0.001601, allocations: 72.42 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09955/0.1012, allocations: 55.24 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008674/0.1099, allocations: 6.559 MB / 494.3 MB, free: 1.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003259/0.1132, allocations: 1.692 MB / 496 MB, free: 52 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005602/0.1138, allocations: 27.81 kB / 496.1 MB, free: 24 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006687/0.1145, allocations: 162.7 kB / 496.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001182/0.1157, allocations: 437.9 kB / 496.6 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008469/0.1166, allocations: 343.4 kB / 497 MB, free: 15.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001878/0.1185, allocations: 1.508 MB / 498.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005838/0.1191, allocations: 405.8 kB / 498.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.1202, allocations: 0.6112 MB / 499.5 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.1214, allocations: 0.6504 MB / 0.4884 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002919/0.1217, allocations: 100 kB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003481/0.1221, allocations: 96 kB / 0.4886 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005257/0.1226, allocations: 427 kB / 0.489 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000775/0.1234, allocations: 462 kB / 0.4895 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001419/0.1249, allocations: 1.18 MB / 0.4906 GB, free: 9.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.1249, allocations: 4 kB / 0.4906 GB, free: 9.672 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1249, allocations: 0 / 0.4906 GB, free: 9.672 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.666e-05/0.1249, allocations: 0 / 0.4906 GB, free: 9.672 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.003501/0.1284, allocations: 1.313 MB / 0.4919 GB, free: 8.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1285, allocations: 15.89 kB / 0.4919 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002675/0.1288, allocations: 92 kB / 0.492 GB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001583/0.1304, allocations: 0.7366 MB / 0.4927 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004665/0.1308, allocations: 351 kB / 0.493 GB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.131, allocations: 64 kB / 0.4931 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002631/0.1337, allocations: 1.141 MB / 0.4942 GB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.1337, allocations: 0 / 0.4942 GB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.757e-05/0.1338, allocations: 28 kB / 0.4943 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001514/0.134, allocations: 37.28 kB / 0.4943 GB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002951/0.1369, allocations: 1.176 MB / 0.4954 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005732/0.1427, allocations: 3.488 MB / 0.4988 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00274/0.1455, allocations: 0.9527 MB / 0.4998 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001834/0.1473, allocations: 0.6863 MB / 0.5004 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.06e-05/0.1474, allocations: 8.562 kB / 0.5005 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001669/0.1491, allocations: 0.6849 MB / 0.5011 GB, free: 14.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.735e-06/0.1491, allocations: 0 / 0.5011 GB, free: 14.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.02051/0.1696, allocations: 5.663 MB / 0.5067 GB, free: 8.828 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.479e-05/0.1698, allocations: 89.66 kB / 0.5067 GB, free: 8.719 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005779/0.1704, allocations: 473.8 kB / 0.5072 GB, free: 8.246 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001407/0.1705, allocations: 37.7 kB / 0.5072 GB, free: 8.203 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000247/0.1708, allocations: 324.3 kB / 0.5075 GB, free: 7.879 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002151/0.171, allocations: 213 kB / 0.5077 GB, free: 7.668 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000237/0.1712, allocations: 130.2 kB / 0.5079 GB, free: 7.535 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1714, allocations: 370.8 kB / 0.5082 GB, free: 7.164 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.1725, allocations: 0.5051 MB / 0.5087 GB, free: 6.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.1737, allocations: 0.6257 MB / 0.5093 GB, free: 5.992 MB / 398.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.007109/0.1808, allocations: 3.131 MB / 0.5124 GB, free: 2.773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.1809, allocations: 3.984 kB / 0.5124 GB, free: 2.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007799/0.1887, allocations: 2.498 MB / 0.5148 GB, free: 264 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.253e-05/0.1888, allocations: 57.67 kB / 0.5149 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.1888, allocations: 0 / 0.5149 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002559/0.1914, allocations: 1.082 MB / 0.5159 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000567/0.192, allocations: 119.7 kB / 0.516 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01647/0.2085, allocations: 6.857 MB / 0.5227 GB, free: 7.988 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008961/0.2094, allocations: 83.95 kB / 0.5228 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/0.2096, allocations: 51.91 kB / 0.5229 GB, free: 7.855 MB / 414.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.0004798/0.2101, allocations: 267.6 kB / 0.5231 GB, free: 7.586 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.2102, allocations: 63.25 kB / 0.5232 GB, free: 7.523 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008248/0.2185, allocations: 2.433 MB / 0.5256 GB, free: 5.074 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-05/0.2185, allocations: 8 kB / 0.5256 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2185, allocations: 0 / 0.5256 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.2186, allocations: 3.984 kB / 0.5256 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00994/0.2285, allocations: 3.563 MB / 0.5291 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/0.2286, allocations: 4 kB / 0.5291 GB, free: 1.406 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000447/0.229, allocations: 75.89 kB / 0.5291 GB, free: 1.332 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002535/0.2316, allocations: 1.094 MB / 0.5302 GB, free: 240 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001261/0.2317, allocations: 19.98 kB / 0.5302 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2422/0.4739, allocations: 6.821 MB / 0.5369 GB, free: 51.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.4739, allocations: 5.281 kB / 0.5369 GB, free: 51.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01046/0.4844, allocations: 3.204 MB / 0.54 GB, free: 50.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004288/0.4849, allocations: 217.5 kB / 0.5402 GB, free: 50.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.485, allocations: 36.16 kB / 0.5403 GB, free: 50.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008087/0.4859, allocations: 98.95 kB / 0.5403 GB, free: 50.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005288/0.4864, allocations: 167.4 kB / 0.5405 GB, free: 50.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.759e-05/0.4865, allocations: 30.25 kB / 0.5405 GB, free: 50.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004676/0.487, allocations: 321.8 kB / 0.5408 GB, free: 50.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.487, allocations: 1.469 kB / 0.5408 GB, free: 50.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001058/0.488, allocations: 223 kB / 0.5411 GB, free: 50.03 MB / 414.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.0002059/0.4882, allocations: 135.1 kB / 0.5412 GB, free: 49.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004894/0.4931, allocations: 1.73 MB / 0.5429 GB, free: 49.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.4932, allocations: 0 / 0.5429 GB, free: 49.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003418/0.4966, allocations: 1.123 MB / 0.544 GB, free: 49.03 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.4977, allocations: 164 kB / 0.5441 GB, free: 48.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003124/0.5009, allocations: 1.743 MB / 0.5458 GB, free: 48.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005546/0.5015, allocations: 0.9962 MB / 0.5468 GB, free: 47.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.5017, allocations: 51.91 kB / 0.5469 GB, free: 47.38 MB / 414.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5017, allocations: 0 / 0.5469 GB, free: 47.38 MB / 414.1 MB Notification: Performance of Templates: time 0.01678/0.5184, allocations: 13.49 MB / 0.56 GB, free: 38.94 MB / 414.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)