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.001014/0.001014, allocations: 87.11 kB / 16.31 MB, free: 6.449 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.0009798/0.0009798, allocations: 178.7 kB / 17.21 MB, free: 6.32 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.326/1.326, allocations: 205.4 MB / 223.4 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3228/0.3228, allocations: 38.05 MB / 309.7 MB, free: 8.902 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.0007515/0.0007516, allocations: 12 kB / 376.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1235, allocations: 56.33 MB / 432.9 MB, free: 6.695 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.006465/0.13, allocations: 6.508 MB / 439.4 MB, free: 164 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002996/0.133, allocations: 1.778 MB / 441.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003742/0.1334, allocations: 47.69 kB / 441.2 MB, free: 14.33 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004292/0.1338, allocations: 150.9 kB / 441.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007903/0.1346, allocations: 445.7 kB / 441.8 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005781/0.1352, allocations: 231.6 kB / 442 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001515/0.1368, allocations: 1.098 MB / 443.1 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003929/0.1372, allocations: 196.3 kB / 443.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006632/0.1379, allocations: 338.4 kB / 443.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006629/0.1385, allocations: 454.5 kB / 444.1 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.589e-05/0.1386, allocations: 24 kB / 444.1 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.572e-05/0.1387, allocations: 28 kB / 444.1 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002588/0.139, allocations: 227.4 kB / 444.3 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000152/0.1391, allocations: 141.3 kB / 444.5 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004422/0.1396, allocations: 0.4948 MB / 445 MB, free: 10.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.1396, allocations: 8 kB / 445 MB, free: 10.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1396, allocations: 0 / 445 MB, free: 10.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.1396, allocations: 0 / 445 MB, free: 10.52 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.001433/0.1411, allocations: 0.8512 MB / 445.8 MB, free: 9.609 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.1411, allocations: 8.031 kB / 445.8 MB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.1412, allocations: 67.16 kB / 445.9 MB, free: 9.535 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007933/0.142, allocations: 0.5053 MB / 446.4 MB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.1421, allocations: 37 kB / 446.4 MB, free: 8.953 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.668e-05/0.1421, allocations: 51.98 kB / 446.5 MB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008458/0.143, allocations: 0.6171 MB / 447.1 MB, free: 8.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.143, allocations: 4 kB / 447.1 MB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.94e-05/0.1431, allocations: 23.95 kB / 447.1 MB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.84e-05/0.1432, allocations: 32.97 kB / 447.2 MB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007007/0.1439, allocations: 0.5074 MB / 447.7 MB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002664/0.1466, allocations: 2.238 MB / 449.9 MB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000741/0.1473, allocations: 493 kB / 450.4 MB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005324/0.1479, allocations: 341.5 kB / 450.7 MB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.1479, allocations: 7.984 kB / 450.7 MB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/0.1479, allocations: 42.56 kB / 450.8 MB, free: 4.457 MB / 382.1 MB Notification: Performance of pre-optimization done (n=45): time 1.904e-06/0.148, allocations: 0 / 450.8 MB, free: 4.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.003013/0.151, allocations: 1.758 MB / 452.5 MB, free: 2.621 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.151, allocations: 81.11 kB / 452.6 MB, free: 2.523 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003683/0.1514, allocations: 418 kB / 453 MB, free: 2.109 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.1514, allocations: 33.7 kB / 453.1 MB, free: 2.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.1516, allocations: 296.5 kB / 453.3 MB, free: 1.773 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.1517, allocations: 165.6 kB / 453.5 MB, free: 1.609 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/0.1518, allocations: 15.94 kB / 453.5 MB, free: 1.594 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1519, allocations: 358.8 kB / 453.9 MB, free: 1.234 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.1521, allocations: 181 kB / 454 MB, free: 1.059 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003134/0.1525, allocations: 311.6 kB / 454.3 MB, free: 0.707 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.177/0.3294, allocations: 0.7656 MB / 455.1 MB, free: 51.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.3295, allocations: 0 / 455.1 MB, free: 51.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001261/0.3307, allocations: 0.7095 MB / 455.8 MB, free: 51.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3308, allocations: 11.64 kB / 455.8 MB, free: 51.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.3308, allocations: 3.125 kB / 455.8 MB, free: 51.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003621/0.3312, allocations: 141 kB / 456 MB, free: 51.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003961/0.3316, allocations: 105 kB / 456.1 MB, free: 51.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002451/0.334, allocations: 2.372 MB / 458.5 MB, free: 49.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003154/0.3344, allocations: 29.55 kB / 458.5 MB, free: 49.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.244e-05/0.3344, allocations: 21.73 kB / 458.5 MB, free: 49.83 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002783/0.3347, allocations: 225.5 kB / 458.7 MB, free: 49.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.098e-05/0.3348, allocations: 52.16 kB / 458.8 MB, free: 49.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001062/0.3359, allocations: 0.6494 MB / 459.4 MB, free: 49.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.3359, allocations: 10.3 kB / 459.4 MB, free: 49.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.3359, allocations: 1.844 kB / 459.4 MB, free: 49.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.3359, allocations: 6.484 kB / 459.4 MB, free: 49.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001741/0.3376, allocations: 1.377 MB / 460.8 MB, free: 49.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.3377, allocations: 5.016 kB / 460.8 MB, free: 49.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003011/0.338, allocations: 73.44 kB / 460.9 MB, free: 49.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003411/0.3383, allocations: 145.2 kB / 461 MB, free: 49.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.838e-05/0.3384, allocations: 14.12 kB / 461 MB, free: 49.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002/0.3404, allocations: 2.37 MB / 463.4 MB, free: 47.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.3404, allocations: 9.453 kB / 463.4 MB, free: 47.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.3416, allocations: 0.9816 MB / 464.4 MB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.001e-05/0.3417, allocations: 122.9 kB / 464.5 MB, free: 47.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.344e-05/0.3418, allocations: 13.55 kB / 464.5 MB, free: 47.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.342, allocations: 19.89 kB / 464.6 MB, free: 47.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.743e-05/0.3421, allocations: 37.58 kB / 464.6 MB, free: 47.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.3421, allocations: 19.61 kB / 464.6 MB, free: 47.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002345/0.3423, allocations: 288.6 kB / 464.9 MB, free: 47.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3424, allocations: 0 / 464.9 MB, free: 47.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005857/0.3429, allocations: 147.6 kB / 465 MB, free: 47.4 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000139/0.3431, allocations: 111.2 kB / 465.2 MB, free: 47.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000955/0.3441, allocations: 0.6566 MB / 465.8 MB, free: 47.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3441, allocations: 0 / 465.8 MB, free: 47.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005097/0.3446, allocations: 436.1 kB / 466.2 MB, free: 46.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007388/0.3453, allocations: 127.3 kB / 466.4 MB, free: 46.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.3471, allocations: 1.584 MB / 467.9 MB, free: 45.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.3474, allocations: 0.9288 MB / 468.9 MB, free: 45.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003068/0.3478, allocations: 106.2 kB / 469 MB, free: 45.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.966e-05/0.3479, allocations: 43.28 kB / 469 MB, free: 45.23 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3479, allocations: 0 / 469 MB, free: 45.23 MB / 382.1 MB Notification: Performance of Templates: time 0.009819/0.3577, allocations: 6.216 MB / 475.2 MB, free: 44.82 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: