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.001213/0.001212, allocations: 108.2 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.001175/0.001175, allocations: 183.1 kB / 18.67 MB, free: 4.441 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.375/1.375, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1793/0.1793, allocations: 37.99 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.001521/0.001521, allocations: 72.42 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1107, allocations: 55.24 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009316/0.1201, allocations: 6.485 MB / 494.3 MB, free: 1.824 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003901/0.124, allocations: 1.925 MB / 496.2 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006954/0.1247, allocations: 23.88 kB / 496.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001618/0.1264, allocations: 441.9 kB / 496.6 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001428/0.1278, allocations: 417.8 kB / 497 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001169/0.129, allocations: 351.3 kB / 497.4 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001794/0.1308, allocations: 1.028 MB / 498.4 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009291/0.1318, allocations: 0.4926 MB / 498.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001049/0.1328, allocations: 470.1 kB / 499.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00117/0.134, allocations: 0.5802 MB / 500 MB, free: 12.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002352/0.1343, allocations: 68 kB / 0.4883 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008351/0.1351, allocations: 255.6 kB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005159/0.1356, allocations: 367.1 kB / 0.4889 GB, free: 11.44 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008506/0.1365, allocations: 429.8 kB / 0.4893 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001617/0.1381, allocations: 1.04 MB / 0.4903 GB, free: 9.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1381, allocations: 0 / 0.4903 GB, free: 9.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1382, allocations: 4 kB / 0.4903 GB, free: 9.969 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.987e-05/0.1382, allocations: 0 / 0.4903 GB, free: 9.969 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.002812/0.141, allocations: 1.117 MB / 0.4914 GB, free: 8.797 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.1411, allocations: 11.89 kB / 0.4914 GB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000846/0.1419, allocations: 131.8 kB / 0.4915 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.1431, allocations: 0.6078 MB / 0.4921 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.734e-05/0.1432, allocations: 53.62 kB / 0.4922 GB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001863/0.1434, allocations: 76.09 kB / 0.4923 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.1451, allocations: 1.01 MB / 0.4933 GB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/0.1451, allocations: 3.938 kB / 0.4933 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.536e-05/0.1452, allocations: 31.94 kB / 0.4933 GB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002213/0.1454, allocations: 69.95 kB / 0.4934 GB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.1471, allocations: 0.9797 MB / 0.4943 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005448/0.1526, allocations: 3.256 MB / 0.4975 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.1537, allocations: 0.6915 MB / 0.4982 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006272/0.1544, allocations: 423.5 kB / 0.4986 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.116e-05/0.1544, allocations: 12.56 kB / 0.4986 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.1545, allocations: 43.12 kB / 0.4986 GB, free: 1.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 8.776e-06/0.1545, allocations: 0 / 0.4986 GB, free: 1.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=75): time 0.004281/0.1588, allocations: 2.435 MB / 0.501 GB, free: 14.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.838e-05/0.1588, allocations: 85.67 kB / 0.5011 GB, free: 14.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005503/0.1594, allocations: 441.8 kB / 0.5015 GB, free: 14.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.025e-05/0.1595, allocations: 37.7 kB / 0.5015 GB, free: 14.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002603/0.1597, allocations: 363.4 kB / 0.5019 GB, free: 13.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/0.16, allocations: 252.3 kB / 0.5021 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002271/0.1602, allocations: 154.6 kB / 0.5023 GB, free: 13.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.1604, allocations: 378.7 kB / 0.5026 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004988/0.1609, allocations: 337.8 kB / 0.503 GB, free: 12.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006327/0.1615, allocations: 0.5262 MB / 0.5035 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.005058/0.1666, allocations: 2.245 MB / 0.5057 GB, free: 9.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.1666, allocations: 4 kB / 0.5057 GB, free: 9.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001742/0.1684, allocations: 1.102 MB / 0.5067 GB, free: 8.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.1684, allocations: 8 kB / 0.5068 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.1684, allocations: 4 kB / 0.5068 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001716/0.1686, allocations: 40.84 kB / 0.5068 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007632/0.1694, allocations: 191.6 kB / 0.507 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001287/0.1707, allocations: 1.5 MB / 0.5084 GB, free: 6.633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005321/0.1713, allocations: 35.97 kB / 0.5085 GB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.76e-05/0.1714, allocations: 35.98 kB / 0.5085 GB, free: 6.562 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.000458/0.1718, allocations: 277.5 kB / 0.5088 GB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001976/0.172, allocations: 67.16 kB / 0.5088 GB, free: 6.215 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001573/0.1736, allocations: 0.9662 MB / 0.5098 GB, free: 5.219 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.814e-05/0.1737, allocations: 19.92 kB / 0.5098 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.1737, allocations: 4 kB / 0.5098 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.1737, allocations: 11.92 kB / 0.5098 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003357/0.177, allocations: 1.993 MB / 0.5118 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.968e-06/0.1771, allocations: 7.938 kB / 0.5118 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006687/0.1777, allocations: 151.8 kB / 0.5119 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001223/0.1779, allocations: 37.39 kB / 0.512 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.027e-05/0.178, allocations: 24 kB / 0.512 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.1792, allocations: 1.508 MB / 0.5134 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.1792, allocations: 4 kB / 0.5134 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002017/0.1812, allocations: 1.528 MB / 0.5149 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.1814, allocations: 140.3 kB / 0.5151 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.1816, allocations: 27.94 kB / 0.5151 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004105/0.182, allocations: 31.97 kB / 0.5151 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.1821, allocations: 60.36 kB / 0.5152 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.378e-05/0.1822, allocations: 28 kB / 0.5152 GB, free: 15.26 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003631/0.1825, allocations: 295.1 kB / 0.5155 GB, free: 14.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1825, allocations: 4 kB / 0.5155 GB, free: 14.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000819/0.1834, allocations: 188 kB / 0.5157 GB, free: 14.78 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.0003456/0.1837, allocations: 158.9 kB / 0.5158 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.1853, allocations: 0.9574 MB / 0.5168 GB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.1853, allocations: 0 / 0.5168 GB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000676/0.186, allocations: 0.5272 MB / 0.5173 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009095/0.1869, allocations: 145.8 kB / 0.5174 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003161/0.1901, allocations: 2.034 MB / 0.5194 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000732/0.1909, allocations: 1.009 MB / 0.5204 GB, free: 9.801 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002476/0.1911, allocations: 67.42 kB / 0.5205 GB, free: 9.734 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1911, allocations: 4 kB / 0.5205 GB, free: 9.73 MB / 414.1 MB Notification: Performance of Templates: time 0.2508/0.442, allocations: 12.1 MB / 0.5323 GB, free: 51.19 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)