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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.0009068/0.0009069, allocations: 184.2 kB / 17.4 MB, free: 4.152 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.471/1.471, allocations: 194.5 MB / 212.6 MB, free: 2.945 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001539/0.001539, allocations: 115 kB / 257.9 MB, free: 4.258 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1922/0.1922, allocations: 38.02 MB / 341.1 MB, free: 1.188 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003612, allocations: 12 kB / 405 MB, free: 68.47 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09347, allocations: 53.24 MB / 458.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3922/0.4857, allocations: 106.2 MB / 0.5512 GB, free: 5.062 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003695/0.4862, allocations: 101.6 kB / 0.5513 GB, free: 5.012 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06405/0.5503, allocations: 21.84 MB / 0.5726 GB, free: 2.238 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5503, allocations: 0 / 0.5726 GB, free: 2.238 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.421e-05/0.5504, allocations: 16 kB / 0.5726 GB, free: 2.223 MB / 378.7 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.002381/0.5527, allocations: 1.015 MB / 0.5736 GB, free: 1.207 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.5528, allocations: 8.031 kB / 0.5736 GB, free: 1.199 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006749/0.5535, allocations: 131.8 kB / 0.5738 GB, free: 1.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001849/0.5554, allocations: 0.8181 MB / 0.5746 GB, free: 340 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.082e-05/0.5554, allocations: 48 kB / 0.5746 GB, free: 316 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.5556, allocations: 73.05 kB / 0.5747 GB, free: 264 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001773/0.5574, allocations: 0.9955 MB / 0.5756 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/0.5574, allocations: 0 / 0.5756 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/0.5575, allocations: 33.91 kB / 0.5757 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001883/0.5577, allocations: 61.22 kB / 0.5757 GB, free: 15.42 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002019/0.5598, allocations: 0.9395 MB / 0.5766 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006326/0.5661, allocations: 3.21 MB / 0.5798 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001421/0.5676, allocations: 0.6891 MB / 0.5805 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008413/0.5684, allocations: 457.5 kB / 0.5809 GB, free: 11.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.219e-05/0.5685, allocations: 9.484 kB / 0.5809 GB, free: 11.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/0.5685, allocations: 46 kB / 0.5809 GB, free: 11.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 4.939e-06/0.5686, allocations: 0 / 0.5809 GB, free: 11.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=79): time 0.005086/0.5737, allocations: 2.53 MB / 0.5834 GB, free: 9.16 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.5737, allocations: 89.59 kB / 0.5835 GB, free: 9.051 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000497/0.5742, allocations: 428.5 kB / 0.5839 GB, free: 8.707 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.107e-05/0.5743, allocations: 43.69 kB / 0.584 GB, free: 8.668 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000221/0.5745, allocations: 344.9 kB / 0.5843 GB, free: 8.406 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.5747, allocations: 279 kB / 0.5845 GB, free: 8.164 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.554e-05/0.5748, allocations: 21.44 kB / 0.5846 GB, free: 8.156 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.575, allocations: 371.6 kB / 0.5849 GB, free: 7.809 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004935/0.5755, allocations: 356.3 kB / 0.5853 GB, free: 7.574 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005874/0.5761, allocations: 0.5148 MB / 0.5858 GB, free: 7.121 MB / 394.7 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.009272/0.5853, allocations: 3.568 MB / 0.5892 GB, free: 4.043 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.5854, allocations: 0 / 0.5892 GB, free: 4.043 MB / 394.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001648/0.587, allocations: 1.123 MB / 0.5903 GB, free: 3.168 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.5871, allocations: 4 kB / 0.5903 GB, free: 3.164 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.5871, allocations: 8 kB / 0.5904 GB, free: 3.156 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001771/0.5873, allocations: 44 kB / 0.5904 GB, free: 3.117 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007585/0.588, allocations: 191.5 kB / 0.5906 GB, free: 2.934 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.5892, allocations: 1.387 MB / 0.5919 GB, free: 1.496 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004817/0.5897, allocations: 44.16 kB / 0.592 GB, free: 1.465 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.524e-05/0.5898, allocations: 33.86 kB / 0.592 GB, free: 1.438 MB / 394.7 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: 21 * 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 (93): * Single equations (assignments): 89 * Array equations: 3 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004641/0.5902, allocations: 274.6 kB / 0.5923 GB, free: 1.219 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.636e-05/0.5903, allocations: 59.25 kB / 0.5923 GB, free: 1.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001518/0.5918, allocations: 1.025 MB / 0.5933 GB, free: 420 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.952e-05/0.5919, allocations: 19.94 kB / 0.5933 GB, free: 404 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.5919, allocations: 0 / 0.5933 GB, free: 404 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.5919, allocations: 3.984 kB / 0.5934 GB, free: 400 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00344/0.5954, allocations: 2.083 MB / 0.5954 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.5954, allocations: 8.094 kB / 0.5954 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000654/0.5961, allocations: 155.7 kB / 0.5955 GB, free: 14.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001039/0.5962, allocations: 36.83 kB / 0.5956 GB, free: 14.22 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.457e-05/0.5962, allocations: 27.98 kB / 0.5956 GB, free: 14.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.5973, allocations: 1.39 MB / 0.597 GB, free: 12.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.5974, allocations: 7.984 kB / 0.597 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002098/0.5995, allocations: 1.607 MB / 0.5985 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/0.5997, allocations: 140.3 kB / 0.5987 GB, free: 10.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.015e-05/0.5998, allocations: 23.98 kB / 0.5987 GB, free: 10.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003576/0.6001, allocations: 35.91 kB / 0.5987 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.6002, allocations: 64.36 kB / 0.5988 GB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.336e-05/0.6003, allocations: 32 kB / 0.5988 GB, free: 10.65 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003432/0.6007, allocations: 287.1 kB / 0.5991 GB, free: 10.37 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6007, allocations: 0 / 0.5991 GB, free: 10.37 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008234/0.6015, allocations: 211.9 kB / 0.5993 GB, free: 10.16 MB / 410.7 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 (76): * Single equations (assignments): 71 * Array equations: 3 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003013/0.6018, allocations: 158.9 kB / 0.5994 GB, free: 9.996 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.6034, allocations: 0.99 MB / 0.6004 GB, free: 8.996 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.6034, allocations: 0 / 0.6004 GB, free: 8.996 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000876/0.6043, allocations: 0.5486 MB / 0.601 GB, free: 8.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001424/0.6057, allocations: 135.5 kB / 0.6011 GB, free: 8.301 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004636/0.6104, allocations: 2.4 MB / 0.6034 GB, free: 5.812 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009165/0.6113, allocations: 1.017 MB / 0.6044 GB, free: 4.766 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009748/0.6123, allocations: 209.2 kB / 0.6046 GB, free: 4.559 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002436/0.6125, allocations: 59.36 kB / 0.6047 GB, free: 4.5 MB / 410.7 MB Notification: Performance of SimCode: time 2.013e-06/0.6126, allocations: 4 kB / 0.6047 GB, free: 4.496 MB / 410.7 MB Notification: Performance of Templates: time 0.01946/0.632, allocations: 7.596 MB / 0.6121 GB, free: 12.9 MB / 426.7 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)