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.001778/0.001778, allocations: 114.1 kB / 17.07 MB, free: 5.973 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.001757/0.001757, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.647/1.647, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1735/0.1735, allocations: 37.98 MB / 309.2 MB, free: 5.934 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.001522/0.001522, allocations: 72.31 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1133, allocations: 55.24 MB / 487.1 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007872/0.1212, allocations: 6.485 MB / 493.6 MB, free: 1.812 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003655/0.1249, allocations: 1.917 MB / 495.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000353/0.1253, allocations: 31.81 kB / 495.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.1265, allocations: 445.8 kB / 496 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008931/0.1274, allocations: 409.9 kB / 496.4 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008655/0.1283, allocations: 351.2 kB / 496.7 MB, free: 14.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001021/0.1293, allocations: 1.032 MB / 497.8 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006901/0.13, allocations: 0.4965 MB / 498.2 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006671/0.1307, allocations: 470.1 kB / 498.7 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007478/0.1314, allocations: 0.5763 MB / 499.3 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.1316, allocations: 64 kB / 499.3 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005041/0.1321, allocations: 255.6 kB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003514/0.1324, allocations: 375.1 kB / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004382/0.1329, allocations: 421.9 kB / 0.4886 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.134, allocations: 1.04 MB / 0.4897 GB, free: 9.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.134, allocations: 0 / 0.4897 GB, free: 9.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.134, allocations: 0 / 0.4897 GB, free: 9.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.134, allocations: 0 / 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.00209/0.1361, allocations: 1.125 MB / 0.4908 GB, free: 8.785 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.1362, allocations: 15.89 kB / 0.4908 GB, free: 8.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007131/0.1369, allocations: 131.8 kB / 0.4909 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.138, allocations: 0.6117 MB / 0.4915 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.598e-05/0.1381, allocations: 45.69 kB / 0.4915 GB, free: 7.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001731/0.1383, allocations: 80.09 kB / 0.4916 GB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.1398, allocations: 1.01 MB / 0.4926 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.1398, allocations: 3.938 kB / 0.4926 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.717e-05/0.1399, allocations: 20 kB / 0.4926 GB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001912/0.1401, allocations: 77.95 kB / 0.4927 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.1415, allocations: 0.9758 MB / 0.4937 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004713/0.1462, allocations: 3.264 MB / 0.4968 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.1473, allocations: 0.6914 MB / 0.4975 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005889/0.1479, allocations: 427.5 kB / 0.4979 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.533e-05/0.1479, allocations: 12.55 kB / 0.4979 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.148, allocations: 43.11 kB / 0.498 GB, free: 1.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 2.715e-06/0.148, allocations: 0 / 0.498 GB, free: 1.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=75): time 0.003882/0.1519, allocations: 2.431 MB / 0.5004 GB, free: 14.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.152, allocations: 81.67 kB / 0.5004 GB, free: 14.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005055/0.1525, allocations: 437.8 kB / 0.5008 GB, free: 14.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.126e-05/0.1525, allocations: 41.69 kB / 0.5009 GB, free: 14.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003074/0.1528, allocations: 363.5 kB / 0.5012 GB, free: 13.69 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002474/0.1531, allocations: 252.3 kB / 0.5015 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002165/0.1533, allocations: 146.6 kB / 0.5016 GB, free: 13.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002187/0.1535, allocations: 382.7 kB / 0.502 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004775/0.154, allocations: 345.7 kB / 0.5023 GB, free: 12.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006598/0.1547, allocations: 0.5262 MB / 0.5028 GB, free: 11.97 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.004988/0.1597, allocations: 2.241 MB / 0.505 GB, free: 9.645 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/0.1597, allocations: 4 kB / 0.505 GB, free: 9.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001704/0.1614, allocations: 1.098 MB / 0.5061 GB, free: 8.512 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.1615, allocations: 8 kB / 0.5061 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.1615, allocations: 12.06 kB / 0.5061 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000153/0.1616, allocations: 32.84 kB / 0.5061 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007236/0.1624, allocations: 195.6 kB / 0.5063 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.1636, allocations: 1.5 MB / 0.5078 GB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004084/0.164, allocations: 35.97 kB / 0.5078 GB, free: 6.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.63e-05/0.1641, allocations: 31.98 kB / 0.5079 GB, free: 6.555 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.0004164/0.1645, allocations: 285.5 kB / 0.5081 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.1647, allocations: 63.16 kB / 0.5082 GB, free: 6.203 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001584/0.1662, allocations: 0.9661 MB / 0.5091 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.397e-05/0.1663, allocations: 23.92 kB / 0.5092 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1663, allocations: 0 / 0.5092 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.1663, allocations: 7.922 kB / 0.5092 GB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003528/0.1698, allocations: 2.005 MB / 0.5111 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.1699, allocations: 4 kB / 0.5111 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006315/0.1705, allocations: 151.7 kB / 0.5113 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001112/0.1706, allocations: 36.83 kB / 0.5113 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.646e-05/0.1707, allocations: 20 kB / 0.5113 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001285/0.172, allocations: 1.5 MB / 0.5128 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.553e-05/0.172, allocations: 7.938 kB / 0.5128 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002037/0.1741, allocations: 1.529 MB / 0.5143 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/0.1743, allocations: 148.3 kB / 0.5144 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.477e-05/0.1743, allocations: 20 kB / 0.5144 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003467/0.1747, allocations: 31.97 kB / 0.5145 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.1748, allocations: 68.36 kB / 0.5145 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.84e-05/0.1749, allocations: 23.94 kB / 0.5146 GB, free: 15.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003426/0.1752, allocations: 303.1 kB / 0.5149 GB, free: 14.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1752, allocations: 0 / 0.5149 GB, free: 14.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007474/0.176, allocations: 180 kB / 0.515 GB, free: 14.77 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.0003016/0.1763, allocations: 159 kB / 0.5152 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.1778, allocations: 0.9654 MB / 0.5161 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.1778, allocations: 0 / 0.5161 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007411/0.1786, allocations: 0.5231 MB / 0.5166 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008131/0.1794, allocations: 149.9 kB / 0.5168 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003046/0.1825, allocations: 1.97 MB / 0.5187 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006552/0.1831, allocations: 1.013 MB / 0.5197 GB, free: 9.852 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004899/0.1836, allocations: 201.4 kB / 0.5199 GB, free: 9.652 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.1838, allocations: 59.44 kB / 0.5199 GB, free: 9.594 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1838, allocations: 0 / 0.5199 GB, free: 9.594 MB / 414.1 MB Notification: Performance of Templates: time 0.01546/0.1993, allocations: 8.203 MB / 0.5279 GB, free: 1.375 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)