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.001011/0.001011, allocations: 112.6 kB / 17.02 MB, free: 6.129 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.0009619/0.000962, allocations: 196 kB / 17.96 MB, free: 5.238 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.181/1.181, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1617/0.1617, allocations: 38 MB / 309.2 MB, free: 5.965 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.001348/0.001348, allocations: 75.88 kB / 431.8 MB, free: 15.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08855, allocations: 55.23 MB / 487 MB, free: 8.391 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007439/0.09603, allocations: 6.559 MB / 493.6 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002965/0.09902, allocations: 1.7 MB / 495.3 MB, free: 88 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005393/0.09958, allocations: 23.88 kB / 495.3 MB, free: 64 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006573/0.1003, allocations: 162.7 kB / 495.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001053/0.1014, allocations: 445.8 kB / 495.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007411/0.1021, allocations: 339.5 kB / 496.2 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001758/0.1039, allocations: 1.504 MB / 497.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005016/0.1044, allocations: 405.7 kB / 498.1 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009356/0.1053, allocations: 0.5956 MB / 498.7 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001093/0.1065, allocations: 0.6426 MB / 499.4 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002614/0.1067, allocations: 96 kB / 499.5 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002868/0.107, allocations: 100 kB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004581/0.1075, allocations: 419 kB / 500 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006697/0.1082, allocations: 470 kB / 0.4887 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001145/0.1093, allocations: 1.184 MB / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1093, allocations: 0 / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1093, allocations: 0 / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.633e-05/0.1094, allocations: 0 / 0.4899 GB, free: 9.734 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.00292/0.1123, allocations: 1.317 MB / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.1124, allocations: 11.89 kB / 0.4912 GB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002167/0.1126, allocations: 92 kB / 0.4913 GB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/0.1139, allocations: 0.7366 MB / 0.492 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004195/0.1144, allocations: 343 kB / 0.4923 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.1145, allocations: 64 kB / 0.4924 GB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002236/0.1168, allocations: 1.149 MB / 0.4935 GB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.1168, allocations: 4 kB / 0.4935 GB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.193e-05/0.1169, allocations: 24 kB / 0.4935 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001096/0.117, allocations: 41.28 kB / 0.4936 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002679/0.1197, allocations: 1.172 MB / 0.4947 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00494/0.1246, allocations: 3.484 MB / 0.4981 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002456/0.1271, allocations: 0.9604 MB / 0.499 GB, free: 32 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001584/0.1287, allocations: 0.6865 MB / 0.4997 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-05/0.1288, allocations: 4.562 kB / 0.4997 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001461/0.1302, allocations: 0.681 MB / 0.5004 GB, free: 14.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.605e-06/0.1303, allocations: 0 / 0.5004 GB, free: 14.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.01902/0.1493, allocations: 5.67 MB / 0.5059 GB, free: 8.887 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.844e-05/0.1494, allocations: 89.67 kB / 0.506 GB, free: 8.777 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005702/0.1499, allocations: 473.8 kB / 0.5065 GB, free: 8.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.027e-05/0.15, allocations: 45.62 kB / 0.5065 GB, free: 8.254 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002409/0.1503, allocations: 324.3 kB / 0.5068 GB, free: 7.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.1505, allocations: 201 kB / 0.507 GB, free: 7.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002309/0.1507, allocations: 134.2 kB / 0.5071 GB, free: 7.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1509, allocations: 366.8 kB / 0.5075 GB, free: 7.227 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.152, allocations: 0.509 MB / 0.508 GB, free: 6.719 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/0.1531, allocations: 0.6297 MB / 0.5086 GB, free: 6.047 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.006695/0.1598, allocations: 3.131 MB / 0.5116 GB, free: 2.828 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1598, allocations: 0 / 0.5116 GB, free: 2.828 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007326/0.1671, allocations: 2.494 MB / 0.5141 GB, free: 328 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.561e-05/0.1672, allocations: 53.59 kB / 0.5141 GB, free: 268 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.1672, allocations: 4 kB / 0.5141 GB, free: 264 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002313/0.1696, allocations: 1.09 MB / 0.5152 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004278/0.17, allocations: 111.7 kB / 0.5153 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01529/0.1853, allocations: 6.861 MB / 0.522 GB, free: 8.047 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007301/0.1861, allocations: 87.95 kB / 0.5221 GB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.35e-05/0.1862, allocations: 43.97 kB / 0.5221 GB, free: 7.918 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.0004126/0.1866, allocations: 275.6 kB / 0.5224 GB, free: 7.641 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.1867, allocations: 59.25 kB / 0.5224 GB, free: 7.582 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007786/0.1945, allocations: 2.436 MB / 0.5248 GB, free: 5.129 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.1945, allocations: 7.938 kB / 0.5248 GB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.1945, allocations: 0 / 0.5248 GB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.908e-06/0.1945, allocations: 7.984 kB / 0.5248 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009178/0.2037, allocations: 3.563 MB / 0.5283 GB, free: 1.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.2038, allocations: 4 kB / 0.5283 GB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003525/0.2041, allocations: 76.06 kB / 0.5284 GB, free: 1.383 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002337/0.2065, allocations: 1.098 MB / 0.5295 GB, free: 288 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.897e-05/0.2066, allocations: 23.97 kB / 0.5295 GB, free: 264 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1859/0.3925, allocations: 6.818 MB / 0.5362 GB, free: 51.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3925, allocations: 5.5 kB / 0.5362 GB, free: 51.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008979/0.4015, allocations: 3.199 MB / 0.5393 GB, free: 50.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003312/0.4019, allocations: 220.5 kB / 0.5395 GB, free: 50.3 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.402, allocations: 32.64 kB / 0.5395 GB, free: 50.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007487/0.4028, allocations: 97.5 kB / 0.5396 GB, free: 50.28 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003945/0.4032, allocations: 168.2 kB / 0.5398 GB, free: 50.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.22e-05/0.4033, allocations: 25.52 kB / 0.5398 GB, free: 50.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003833/0.4037, allocations: 326.6 kB / 0.5401 GB, free: 50.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4037, allocations: 0 / 0.5401 GB, free: 50.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009575/0.4046, allocations: 223.8 kB / 0.5403 GB, free: 50.08 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.0002196/0.4049, allocations: 132 kB / 0.5405 GB, free: 49.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004366/0.4092, allocations: 1.736 MB / 0.5421 GB, free: 49.42 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4093, allocations: 0 / 0.5421 GB, free: 49.42 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002925/0.4122, allocations: 1.116 MB / 0.5432 GB, free: 49.08 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008175/0.413, allocations: 170.9 kB / 0.5434 GB, free: 49.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002565/0.4156, allocations: 1.681 MB / 0.545 GB, free: 48.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004197/0.416, allocations: 0.9926 MB / 0.546 GB, free: 47.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003202/0.4164, allocations: 125.7 kB / 0.5461 GB, free: 47.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.4165, allocations: 50.11 kB / 0.5462 GB, free: 47.46 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4165, allocations: 0 / 0.5462 GB, free: 47.46 MB / 414.1 MB Notification: Performance of Templates: time 0.01866/0.4351, allocations: 16.8 MB / 0.5626 GB, free: 35.67 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)