Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 111.1 kB / 17.74 MB, free: 5.336 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.001322/0.001322, allocations: 188.2 kB / 18.67 MB, free: 4.41 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.348/1.348, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1814/0.1814, allocations: 37.99 MB / 309.9 MB, free: 5.949 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.001645/0.001646, allocations: 75.88 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1142, allocations: 55.24 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.008538/0.1228, allocations: 6.092 MB / 493.9 MB, free: 2.215 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003173/0.126, allocations: 1.458 MB / 495.3 MB, free: 0.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006098/0.1267, allocations: 31.81 kB / 495.4 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006967/0.1274, allocations: 138.9 kB / 495.5 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001238/0.1287, allocations: 374.1 kB / 495.9 MB, free: 220 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006868/0.1294, allocations: 207.5 kB / 496.1 MB, free: 12 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001318/0.1308, allocations: 0.9225 MB / 497 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004139/0.1312, allocations: 274.7 kB / 497.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006479/0.1318, allocations: 410.3 kB / 497.7 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006878/0.1325, allocations: 470.4 kB / 498.1 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.968e-05/0.1326, allocations: 48 kB / 498.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.1327, allocations: 48 kB / 498.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002536/0.133, allocations: 267.3 kB / 498.5 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002921/0.1333, allocations: 322.3 kB / 498.8 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006774/0.134, allocations: 0.6656 MB / 499.4 MB, free: 12.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.134, allocations: 8 kB / 499.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.134, allocations: 0 / 499.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.134, allocations: 0 / 499.5 MB, free: 12.61 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001673/0.1357, allocations: 0.9485 MB / 0.4887 GB, free: 11.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.1358, allocations: 11.89 kB / 0.4887 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.1359, allocations: 68.09 kB / 0.4888 GB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008611/0.1368, allocations: 0.557 MB / 0.4893 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.224e-05/0.1368, allocations: 41.12 kB / 0.4893 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.386e-05/0.1369, allocations: 48 kB / 0.4894 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009022/0.1378, allocations: 0.6326 MB / 0.49 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.1378, allocations: 0 / 0.49 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.773e-05/0.1379, allocations: 20 kB / 0.49 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001107/0.138, allocations: 36.97 kB / 0.4901 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007633/0.1388, allocations: 0.5074 MB / 0.4905 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002977/0.1418, allocations: 2.21 MB / 0.4927 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008395/0.1426, allocations: 497.1 kB / 0.4932 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006978/0.1433, allocations: 354.2 kB / 0.4935 GB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-05/0.1434, allocations: 11.94 kB / 0.4935 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.1434, allocations: 46.5 kB / 0.4936 GB, free: 6.387 MB / 382.1 MB Notification: Performance of pre-optimization done (n=45): time 2.204e-06/0.1434, allocations: 0 / 0.4936 GB, free: 6.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.003485/0.1469, allocations: 1.73 MB / 0.4953 GB, free: 4.578 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.147, allocations: 93.17 kB / 0.4954 GB, free: 4.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005016/0.1475, allocations: 421.8 kB / 0.4958 GB, free: 4.047 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.1475, allocations: 33.7 kB / 0.4958 GB, free: 4.008 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002267/0.1478, allocations: 292.5 kB / 0.4961 GB, free: 3.715 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.1479, allocations: 169.6 kB / 0.4962 GB, free: 3.547 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.1481, allocations: 98.09 kB / 0.4963 GB, free: 3.445 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1483, allocations: 362.8 kB / 0.4967 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003134/0.1486, allocations: 189 kB / 0.4968 GB, free: 2.898 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003833/0.149, allocations: 307.6 kB / 0.4971 GB, free: 2.547 MB / 382.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.002653/0.1516, allocations: 1.239 MB / 0.4983 GB, free: 1.242 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1517, allocations: 7.938 kB / 0.4984 GB, free: 1.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001274/0.1529, allocations: 0.7029 MB / 0.499 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.153, allocations: 4 kB / 0.499 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.153, allocations: 4 kB / 0.4991 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004094/0.1534, allocations: 141.1 kB / 0.4992 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004682/0.1539, allocations: 111.8 kB / 0.4993 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00311/0.157, allocations: 2.607 MB / 0.5018 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004043/0.1574, allocations: 24.03 kB / 0.5019 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-05/0.1575, allocations: 27.98 kB / 0.5019 GB, free: 13.47 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[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003675/0.1579, allocations: 221.7 kB / 0.5021 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.158, allocations: 55.28 kB / 0.5022 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00119/0.1592, allocations: 0.6503 MB / 0.5028 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.1592, allocations: 8.094 kB / 0.5028 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.1592, allocations: 3.984 kB / 0.5028 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.1592, allocations: 11.92 kB / 0.5028 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002249/0.1615, allocations: 1.369 MB / 0.5041 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.1615, allocations: 0 / 0.5041 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003646/0.1619, allocations: 75.89 kB / 0.5042 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004151/0.1623, allocations: 148.9 kB / 0.5044 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.087e-05/0.1624, allocations: 19.92 kB / 0.5044 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002941/0.1653, allocations: 2.619 MB / 0.5069 GB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1654, allocations: 4 kB / 0.5069 GB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.1669, allocations: 0.9854 MB / 0.5079 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001693/0.1671, allocations: 124.5 kB / 0.508 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.1672, allocations: 16 kB / 0.508 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002855/0.1675, allocations: 19.92 kB / 0.5081 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.298e-05/0.1676, allocations: 39.89 kB / 0.5081 GB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.891e-05/0.1677, allocations: 19.98 kB / 0.5081 GB, free: 6.789 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003439/0.168, allocations: 287.1 kB / 0.5084 GB, free: 6.512 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.168, allocations: 0 / 0.5084 GB, free: 6.512 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006743/0.1687, allocations: 144 kB / 0.5085 GB, free: 6.371 MB / 398.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001681/0.1689, allocations: 111.2 kB / 0.5086 GB, free: 6.254 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.1701, allocations: 0.6679 MB / 0.5093 GB, free: 5.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.1701, allocations: 96 / 0.5093 GB, free: 5.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000702/0.1708, allocations: 442.8 kB / 0.5097 GB, free: 5.125 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008288/0.1717, allocations: 138 kB / 0.5098 GB, free: 4.988 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/0.1743, allocations: 1.371 MB / 0.5112 GB, free: 3.566 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006745/0.175, allocations: 0.9292 MB / 0.5121 GB, free: 2.605 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/0.1752, allocations: 39.44 kB / 0.5121 GB, free: 2.566 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1752, allocations: 0 / 0.5121 GB, free: 2.566 MB / 398.1 MB Notification: Performance of Templates: time 0.01527/0.1905, allocations: 9.206 MB / 0.5211 GB, free: 9.34 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)