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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001378/0.001377, allocations: 92.08 kB / 16.65 MB, free: 6.602 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.001461/0.00146, allocations: 182.8 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.3 MB / 241.6 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1876/0.1876, allocations: 38.08 MB / 330.8 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003511, allocations: 12.78 kB / 400.7 MB, free: 34.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1285, allocations: 59.17 MB / 459.9 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008632/0.1371, allocations: 7.294 MB / 467.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004778/0.142, allocations: 2.228 MB / 469.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005577/0.1426, allocations: 47.69 kB / 469.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004956/0.1431, allocations: 135 kB / 469.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009446/0.144, allocations: 390.2 kB / 470 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009409/0.145, allocations: 319.5 kB / 470.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001376/0.1464, allocations: 1.504 MB / 471.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009878/0.1474, allocations: 0.6881 MB / 472.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000527/0.1479, allocations: 374.2 kB / 472.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007292/0.1487, allocations: 0.5568 MB / 473.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.28e-05/0.1487, allocations: 39.94 kB / 473.4 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005053/0.1493, allocations: 259.5 kB / 473.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003159/0.1496, allocations: 331.1 kB / 474 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003825/0.15, allocations: 407.6 kB / 474.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009212/0.1509, allocations: 0.9848 MB / 475.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1509, allocations: 0 / 475.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1509, allocations: 0 / 475.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.1509, allocations: 0 / 475.4 MB, free: 7.449 MB / 350.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.001923/0.1529, allocations: 0.9844 MB / 476.4 MB, free: 6.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.1529, allocations: 12.03 kB / 476.4 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007011/0.1536, allocations: 131.8 kB / 476.5 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009246/0.1546, allocations: 0.5727 MB / 477.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.969e-05/0.1546, allocations: 45.69 kB / 477.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001713/0.1548, allocations: 80.11 kB / 477.2 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.1563, allocations: 1.006 MB / 478.2 MB, free: 4.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.546e-05/0.1563, allocations: 4 kB / 478.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.208e-05/0.1564, allocations: 24 kB / 478.2 MB, free: 4.469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001993/0.1566, allocations: 69.95 kB / 478.3 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.158, allocations: 0.9836 MB / 479.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004626/0.1627, allocations: 3.279 MB / 482.6 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.1638, allocations: 0.6886 MB / 483.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006068/0.1644, allocations: 431.5 kB / 483.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.042e-05/0.1645, allocations: 12.55 kB / 483.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.1645, allocations: 39.12 kB / 483.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.654e-06/0.1645, allocations: 0 / 483.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=75): time 0.004121/0.1686, allocations: 2.431 MB / 486.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.1687, allocations: 85.66 kB / 486.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004865/0.1692, allocations: 441.8 kB / 486.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.62e-05/0.1692, allocations: 41.83 kB / 486.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002389/0.1695, allocations: 355.6 kB / 487.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001996/0.1697, allocations: 264.2 kB / 487.3 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.658e-05/0.1698, allocations: 73.67 kB / 487.4 MB, free: 11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.17, allocations: 382.6 kB / 487.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000485/0.1705, allocations: 337.8 kB / 488.1 MB, free: 10.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006097/0.1711, allocations: 0.5147 MB / 488.6 MB, free: 9.711 MB / 366.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.005026/0.1761, allocations: 2.253 MB / 490.9 MB, free: 7.367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1762, allocations: 4 kB / 490.9 MB, free: 7.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001622/0.1778, allocations: 1.094 MB / 492 MB, free: 6.242 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.1778, allocations: 8 kB / 492 MB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.1778, allocations: 4 kB / 492 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001462/0.178, allocations: 40.83 kB / 492 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007496/0.1788, allocations: 195.8 kB / 492.2 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/0.1799, allocations: 1.389 MB / 493.6 MB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004059/0.1803, allocations: 35.97 kB / 493.6 MB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.095e-05/0.1804, allocations: 32.06 kB / 493.7 MB, free: 4.402 MB / 366.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[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.0003935/0.1808, allocations: 279.9 kB / 493.9 MB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.1809, allocations: 67.17 kB / 494 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/0.1824, allocations: 0.9739 MB / 495 MB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.631e-05/0.1824, allocations: 19.98 kB / 495 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1824, allocations: 0 / 495 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.1824, allocations: 3.984 kB / 495 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003261/0.1857, allocations: 2.012 MB / 497 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.1857, allocations: 4.562 kB / 497 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006397/0.1864, allocations: 159.7 kB / 497.2 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.807e-05/0.1865, allocations: 36.83 kB / 497.2 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.547e-05/0.1865, allocations: 20 kB / 497.2 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001046/0.1876, allocations: 1.378 MB / 498.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.1876, allocations: 11.88 kB / 498.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001901/0.1895, allocations: 1.533 MB / 0.4884 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001454/0.1897, allocations: 148.2 kB / 0.4886 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.072e-05/0.1898, allocations: 20 kB / 0.4886 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/0.1901, allocations: 35.97 kB / 0.4886 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.1903, allocations: 60.36 kB / 0.4887 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.1903, allocations: 28.12 kB / 0.4887 GB, free: 13.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003154/0.1906, allocations: 303.1 kB / 0.489 GB, free: 12.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1906, allocations: 0 / 0.489 GB, free: 12.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006924/0.1913, allocations: 188 kB / 0.4892 GB, free: 12.72 MB / 382.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.0002693/0.1916, allocations: 159.1 kB / 0.4893 GB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.193, allocations: 0.9456 MB / 0.4903 GB, free: 11.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.175e-06/0.193, allocations: 5.375 kB / 0.4903 GB, free: 11.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006952/0.1937, allocations: 0.5216 MB / 0.4908 GB, free: 11.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.1948, allocations: 141.9 kB / 0.4909 GB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003183/0.198, allocations: 2.422 MB / 0.4933 GB, free: 8.414 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006294/0.1987, allocations: 1.009 MB / 0.4943 GB, free: 7.379 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006389/0.1993, allocations: 209.3 kB / 0.4945 GB, free: 7.172 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001821/0.1995, allocations: 55.44 kB / 0.4945 GB, free: 7.117 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1995, allocations: 0 / 0.4945 GB, free: 7.117 MB / 382.1 MB Notification: Performance of Templates: time 0.2407/0.4402, allocations: 7.507 MB / 0.5018 GB, free: 55.75 MB / 382.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)