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.001598/0.001598, allocations: 114.9 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.001803/0.001803, allocations: 188.5 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.363/1.363, allocations: 205.1 MB / 224.5 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1736/0.1736, allocations: 37.98 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.001447/0.001447, allocations: 67.91 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1091, allocations: 55.24 MB / 487.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007617/0.1167, allocations: 6.091 MB / 493.9 MB, free: 2.207 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002823/0.1196, allocations: 1.45 MB / 495.3 MB, free: 0.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005536/0.1202, allocations: 27.88 kB / 495.3 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006179/0.1208, allocations: 142.9 kB / 495.5 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001071/0.1219, allocations: 386 kB / 495.9 MB, free: 208 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000603/0.1225, allocations: 195.6 kB / 496.1 MB, free: 12 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.1238, allocations: 0.9148 MB / 497 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004227/0.1242, allocations: 282.7 kB / 497.2 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007231/0.125, allocations: 410.3 kB / 497.6 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006958/0.1257, allocations: 466.3 kB / 498.1 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.487e-05/0.1258, allocations: 44 kB / 498.1 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.1259, allocations: 48 kB / 498.2 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000281/0.1262, allocations: 271.3 kB / 498.5 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003241/0.1265, allocations: 318.4 kB / 498.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007024/0.1272, allocations: 0.6695 MB / 499.4 MB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1272, allocations: 0 / 499.4 MB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1273, allocations: 0 / 499.4 MB, free: 12.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.1273, allocations: 0 / 499.4 MB, free: 12.62 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.001674/0.129, allocations: 0.9524 MB / 0.4887 GB, free: 11.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.129, allocations: 15.89 kB / 0.4887 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.1291, allocations: 68.09 kB / 0.4887 GB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008748/0.13, allocations: 0.557 MB / 0.4893 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.13, allocations: 41.12 kB / 0.4893 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.88e-05/0.1301, allocations: 48 kB / 0.4894 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000876/0.131, allocations: 0.6326 MB / 0.49 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.131, allocations: 3.938 kB / 0.49 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.1311, allocations: 20 kB / 0.49 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001059/0.1312, allocations: 32.97 kB / 0.49 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007691/0.132, allocations: 0.5113 MB / 0.4905 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002975/0.135, allocations: 2.214 MB / 0.4927 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008362/0.1358, allocations: 493.1 kB / 0.4932 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006618/0.1365, allocations: 350.2 kB / 0.4935 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.629e-05/0.1365, allocations: 7.953 kB / 0.4935 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.1366, allocations: 42.56 kB / 0.4936 GB, free: 6.398 MB / 382.1 MB Notification: Performance of pre-optimization done (n=45): time 2.334e-06/0.1366, allocations: 0 / 0.4936 GB, free: 6.398 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.003308/0.1399, allocations: 1.741 MB / 0.4953 GB, free: 4.578 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.391e-05/0.14, allocations: 89.17 kB / 0.4953 GB, free: 4.473 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004461/0.1405, allocations: 425.8 kB / 0.4958 GB, free: 4.047 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.227e-05/0.1405, allocations: 33.7 kB / 0.4958 GB, free: 4.008 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001904/0.1407, allocations: 288.5 kB / 0.4961 GB, free: 3.719 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.1408, allocations: 165.6 kB / 0.4962 GB, free: 3.555 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/0.141, allocations: 106.1 kB / 0.4963 GB, free: 3.445 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.1412, allocations: 358.8 kB / 0.4967 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/0.1415, allocations: 185 kB / 0.4968 GB, free: 2.906 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003702/0.1418, allocations: 315.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.002568/0.1444, allocations: 1.239 MB / 0.4983 GB, free: 1.242 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1444, allocations: 3.984 kB / 0.4984 GB, free: 1.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00116/0.1456, allocations: 0.7029 MB / 0.499 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.1456, allocations: 8 kB / 0.499 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.1457, allocations: 4 kB / 0.499 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004019/0.1461, allocations: 141 kB / 0.4992 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004581/0.1465, allocations: 111.8 kB / 0.4993 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002996/0.1495, allocations: 2.607 MB / 0.5018 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003847/0.1499, allocations: 28.02 kB / 0.5019 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.765e-05/0.15, allocations: 24 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.0003605/0.1504, allocations: 217.7 kB / 0.5021 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.949e-05/0.1505, allocations: 59.27 kB / 0.5021 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.1516, allocations: 0.6503 MB / 0.5028 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.1516, allocations: 8 kB / 0.5028 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1516, allocations: 4 kB / 0.5028 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.1516, allocations: 7.922 kB / 0.5028 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00215/0.1538, allocations: 1.369 MB / 0.5041 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.767e-05/0.1538, allocations: 4 kB / 0.5041 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003417/0.1542, allocations: 71.89 kB / 0.5042 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003898/0.1546, allocations: 149 kB / 0.5044 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.669e-05/0.1546, allocations: 15.92 kB / 0.5044 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00277/0.1574, allocations: 2.619 MB / 0.5069 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1574, allocations: 11.94 kB / 0.5069 GB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.1588, allocations: 0.9854 MB / 0.5079 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.159, allocations: 120.5 kB / 0.508 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.339e-05/0.159, allocations: 16.03 kB / 0.508 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.1593, allocations: 23.92 kB / 0.5081 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.952e-05/0.1594, allocations: 31.95 kB / 0.5081 GB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.129e-05/0.1594, allocations: 16 kB / 0.5081 GB, free: 6.801 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003242/0.1597, allocations: 291.1 kB / 0.5084 GB, free: 6.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.663e-06/0.1597, allocations: 0 / 0.5084 GB, free: 6.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006721/0.1604, allocations: 151.9 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.0001577/0.1606, allocations: 107.2 kB / 0.5086 GB, free: 6.258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.1617, allocations: 0.6679 MB / 0.5093 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.1618, allocations: 0 / 0.5093 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006447/0.1624, allocations: 434.9 kB / 0.5097 GB, free: 5.137 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007533/0.1632, allocations: 141.8 kB / 0.5098 GB, free: 4.996 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.1653, allocations: 1.379 MB / 0.5112 GB, free: 3.566 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004833/0.1658, 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.0001208/0.1659, allocations: 39.44 kB / 0.5121 GB, free: 2.566 MB / 398.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1659, allocations: 0 / 0.5121 GB, free: 2.566 MB / 398.1 MB Notification: Performance of Templates: time 0.01198/0.1779, allocations: 9.144 MB / 0.521 GB, free: 9.402 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)