Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.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.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.00135/0.00135, allocations: 195 kB / 18 MB, free: 5.105 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.598/1.598, allocations: 205.1 MB / 223.9 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.181/0.181, allocations: 37.98 MB / 309.2 MB, free: 5.961 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.001342/0.001342, allocations: 71.89 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1167, allocations: 55.24 MB / 487.1 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008025/0.1248, allocations: 6.489 MB / 493.6 MB, free: 1.824 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003433/0.1283, allocations: 1.921 MB / 495.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003539/0.1287, allocations: 27.81 kB / 495.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001225/0.1299, allocations: 445.9 kB / 496 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009277/0.1309, allocations: 405.9 kB / 496.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008963/0.1318, allocations: 355.3 kB / 496.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001345/0.1331, allocations: 1.032 MB / 497.8 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008709/0.134, allocations: 0.4965 MB / 498.2 MB, free: 13.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008125/0.1348, allocations: 466.1 kB / 498.7 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007836/0.1356, allocations: 0.5802 MB / 499.3 MB, free: 12.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001047/0.1357, allocations: 68 kB / 499.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005714/0.1363, allocations: 255.6 kB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004119/0.1367, allocations: 371.1 kB / 500 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005106/0.1373, allocations: 425.9 kB / 0.4887 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0014/0.1387, allocations: 1.044 MB / 0.4897 GB, free: 9.969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.1387, allocations: 0 / 0.4897 GB, free: 9.969 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1387, allocations: 0 / 0.4897 GB, free: 9.969 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.1387, allocations: 4 kB / 0.4897 GB, free: 9.965 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.00223/0.141, allocations: 1.117 MB / 0.4908 GB, free: 8.793 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.141, allocations: 15.88 kB / 0.4908 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007747/0.1418, allocations: 127.8 kB / 0.4909 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.143, allocations: 0.6118 MB / 0.4915 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.018e-05/0.143, allocations: 49.62 kB / 0.4915 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.1432, allocations: 80.09 kB / 0.4916 GB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.1447, allocations: 1.006 MB / 0.4926 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.431e-05/0.1447, allocations: 4 kB / 0.4926 GB, free: 6.824 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.041e-05/0.1448, allocations: 23.94 kB / 0.4926 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002122/0.145, allocations: 73.95 kB / 0.4927 GB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00148/0.1465, allocations: 0.9758 MB / 0.4937 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004947/0.1514, allocations: 3.268 MB / 0.4968 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.1525, allocations: 0.6875 MB / 0.4975 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006105/0.1531, allocations: 427.5 kB / 0.4979 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.867e-05/0.1532, allocations: 8.547 kB / 0.4979 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/0.1532, allocations: 47.11 kB / 0.498 GB, free: 1.172 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 2.926e-06/0.1532, allocations: 0 / 0.498 GB, free: 1.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=75): time 0.004029/0.1573, allocations: 2.427 MB / 0.5003 GB, free: 14.65 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.1573, allocations: 85.67 kB / 0.5004 GB, free: 14.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004824/0.1578, allocations: 441.8 kB / 0.5009 GB, free: 14.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.1579, allocations: 41.7 kB / 0.5009 GB, free: 14.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.1581, allocations: 359.5 kB / 0.5012 GB, free: 13.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002062/0.1584, allocations: 256.3 kB / 0.5015 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000232/0.1586, allocations: 146.6 kB / 0.5016 GB, free: 13.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.1588, allocations: 378.7 kB / 0.502 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005344/0.1593, allocations: 341.8 kB / 0.5023 GB, free: 12.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006545/0.16, allocations: 0.5262 MB / 0.5028 GB, free: 11.98 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005319/0.1653, allocations: 2.245 MB / 0.505 GB, free: 9.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.1653, allocations: 0 / 0.505 GB, free: 9.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001754/0.1671, allocations: 1.102 MB / 0.5061 GB, free: 8.523 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.1671, allocations: 12.12 kB / 0.5061 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.1672, allocations: 4 kB / 0.5061 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001643/0.1673, allocations: 40.83 kB / 0.5061 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007589/0.1681, allocations: 191.6 kB / 0.5063 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.1695, allocations: 1.496 MB / 0.5078 GB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005104/0.17, allocations: 35.97 kB / 0.5078 GB, free: 6.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.059e-05/0.1701, allocations: 35.92 kB / 0.5079 GB, free: 6.566 MB / 398.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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 92 * Array equations: 2 * Algorithm blocks: 0 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004982/0.1706, allocations: 285.4 kB / 0.5081 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002323/0.1709, allocations: 63.16 kB / 0.5082 GB, free: 6.215 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.1725, allocations: 0.9739 MB / 0.5091 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-05/0.1726, allocations: 16 kB / 0.5092 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.1726, allocations: 4 kB / 0.5092 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.1726, allocations: 11.92 kB / 0.5092 GB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003998/0.1766, allocations: 1.997 MB / 0.5111 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.1766, allocations: 4 kB / 0.5111 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006917/0.1773, allocations: 147.8 kB / 0.5113 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001419/0.1775, allocations: 44.77 kB / 0.5113 GB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.515e-05/0.1776, allocations: 20.56 kB / 0.5113 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001382/0.1789, allocations: 1.496 MB / 0.5128 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.179, allocations: 12.06 kB / 0.5128 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.1814, allocations: 1.528 MB / 0.5143 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002626/0.1816, allocations: 136.3 kB / 0.5144 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001512/0.1818, allocations: 28 kB / 0.5144 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006115/0.1824, allocations: 35.97 kB / 0.5145 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.1826, allocations: 60.36 kB / 0.5145 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.91e-05/0.1827, allocations: 24 kB / 0.5146 GB, free: 15.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005259/0.1832, allocations: 299.1 kB / 0.5148 GB, free: 14.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1832, allocations: 0 / 0.5148 GB, free: 14.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001167/0.1844, allocations: 188 kB / 0.515 GB, free: 14.79 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004029/0.1848, allocations: 158.9 kB / 0.5152 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002196/0.187, allocations: 0.9655 MB / 0.5161 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/0.1871, allocations: 4 kB / 0.5161 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007943/0.1879, allocations: 0.5231 MB / 0.5166 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.1889, allocations: 145.8 kB / 0.5168 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003485/0.1924, allocations: 1.97 MB / 0.5187 GB, free: 10.9 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007045/0.1931, allocations: 1.013 MB / 0.5197 GB, free: 9.863 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006048/0.1937, allocations: 209.3 kB / 0.5199 GB, free: 9.656 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001876/0.1939, allocations: 51.44 kB / 0.5199 GB, free: 9.605 MB / 414.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1939, allocations: 4 kB / 0.5199 GB, free: 9.602 MB / 414.1 MB Notification: Performance of Templates: time 0.01659/0.2105, allocations: 8.297 MB / 0.528 GB, free: 1.289 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)