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/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.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/Complex 3.2.2+maint.om/package.mo): time 0.001138/0.001138, allocations: 179.1 kB / 17.4 MB, free: 4.293 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.439/1.439, allocations: 194.5 MB / 212.6 MB, free: 2.938 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.001644/0.001644, allocations: 109.4 kB / 257.9 MB, free: 4.27 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1774/0.1774, allocations: 38.02 MB / 341.1 MB, free: 1.188 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.0003772, allocations: 16 kB / 405 MB, free: 68.48 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1137, allocations: 53.23 MB / 458.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3936/0.5073, allocations: 96.04 MB / 0.5413 GB, free: 14.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/0.5076, allocations: 105.5 kB / 0.5414 GB, free: 14.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04479/0.5524, allocations: 15.26 MB / 0.5563 GB, free: 1.652 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5524, allocations: 0 / 0.5563 GB, free: 1.652 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.743e-05/0.5525, allocations: 12.22 kB / 0.5563 GB, free: 1.641 MB / 362.7 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.001916/0.5544, allocations: 0.8777 MB / 0.5572 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.5545, allocations: 8.031 kB / 0.5572 GB, free: 0.7461 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001964/0.5547, allocations: 67.81 kB / 0.5573 GB, free: 0.6836 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001615/0.5563, allocations: 0.7438 MB / 0.558 GB, free: 8 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.827e-05/0.5564, allocations: 41.73 kB / 0.558 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.793e-05/0.5565, allocations: 52.81 kB / 0.5581 GB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.5575, allocations: 0.6289 MB / 0.5587 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.887e-05/0.5575, allocations: 7.938 kB / 0.5587 GB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.959e-05/0.5576, allocations: 19.56 kB / 0.5587 GB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.5576, allocations: 12 kB / 0.5587 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008645/0.5585, allocations: 0.5091 MB / 0.5592 GB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0034/0.5619, allocations: 2.254 MB / 0.5614 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008468/0.5628, allocations: 475.3 kB / 0.5619 GB, free: 12.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006253/0.5634, allocations: 350.7 kB / 0.5622 GB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.5634, allocations: 4 kB / 0.5622 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.5635, allocations: 38.84 kB / 0.5623 GB, free: 12.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.284e-06/0.5635, allocations: 0 / 0.5623 GB, free: 12.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.003448/0.5669, allocations: 1.725 MB / 0.5639 GB, free: 11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.567, allocations: 81.11 kB / 0.564 GB, free: 10.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004591/0.5675, allocations: 422.3 kB / 0.5644 GB, free: 10.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.459e-05/0.5675, allocations: 32.95 kB / 0.5645 GB, free: 10.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.5677, allocations: 292 kB / 0.5647 GB, free: 10.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.5679, allocations: 166.4 kB / 0.5649 GB, free: 10.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.052e-05/0.5679, allocations: 7.125 kB / 0.5649 GB, free: 10.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.568, allocations: 368.2 kB / 0.5652 GB, free: 9.836 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000291/0.5683, allocations: 185 kB / 0.5654 GB, free: 9.711 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003868/0.5687, allocations: 309 kB / 0.5657 GB, free: 9.43 MB / 378.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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002496/0.5713, allocations: 1.228 MB / 0.5669 GB, free: 8.438 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.5713, allocations: 0 / 0.5669 GB, free: 8.438 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001174/0.5724, allocations: 0.6909 MB / 0.5676 GB, free: 7.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.5725, allocations: 8.406 kB / 0.5676 GB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.5725, allocations: 8 kB / 0.5676 GB, free: 7.895 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003699/0.5729, allocations: 138.2 kB / 0.5677 GB, free: 7.781 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004819/0.5734, allocations: 107.7 kB / 0.5678 GB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002636/0.576, allocations: 2.332 MB / 0.5701 GB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.5764, allocations: 31.28 kB / 0.5701 GB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.039e-05/0.5764, allocations: 23.86 kB / 0.5702 GB, free: 5.551 MB / 378.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[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.000345/0.5768, allocations: 220.1 kB / 0.5704 GB, free: 5.367 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.5769, allocations: 51.45 kB / 0.5704 GB, free: 5.316 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/0.578, allocations: 0.6472 MB / 0.5711 GB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.578, allocations: 8 kB / 0.5711 GB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.578, allocations: 0 / 0.5711 GB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.578, allocations: 4.078 kB / 0.5711 GB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002095/0.5801, allocations: 1.36 MB / 0.5724 GB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.5801, allocations: 0 / 0.5724 GB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003445/0.5805, allocations: 76.05 kB / 0.5725 GB, free: 3.613 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003686/0.5808, allocations: 146.9 kB / 0.5726 GB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.859e-05/0.5809, allocations: 15.27 kB / 0.5726 GB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002808/0.5837, allocations: 2.344 MB / 0.5749 GB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.5837, allocations: 4 kB / 0.5749 GB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.5851, allocations: 0.968 MB / 0.5759 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.5853, allocations: 120.5 kB / 0.576 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.642e-05/0.5854, allocations: 14.97 kB / 0.576 GB, free: 500 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002445/0.5856, allocations: 19.61 kB / 0.576 GB, free: 488 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.904e-05/0.5857, allocations: 38.95 kB / 0.5761 GB, free: 452 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.5858, allocations: 15.88 kB / 0.5761 GB, free: 440 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003627/0.5861, allocations: 286.3 kB / 0.5763 GB, free: 208 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5861, allocations: 0 / 0.5763 GB, free: 208 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.000707/0.5869, allocations: 149.3 kB / 0.5765 GB, free: 76 kB / 378.7 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.0002559/0.5871, allocations: 121.5 kB / 0.5766 GB, free: 15.95 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001132/0.5883, allocations: 0.6525 MB / 0.5772 GB, free: 15.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5883, allocations: 0 / 0.5772 GB, free: 15.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006354/0.5889, allocations: 437.1 kB / 0.5777 GB, free: 15.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008005/0.5897, allocations: 124.8 kB / 0.5778 GB, free: 14.98 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/0.5921, allocations: 1.607 MB / 0.5793 GB, free: 13.45 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005907/0.5927, allocations: 0.9242 MB / 0.5802 GB, free: 12.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003794/0.593, allocations: 108.7 kB / 0.5803 GB, free: 12.41 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.5932, allocations: 43.42 kB / 0.5804 GB, free: 12.37 MB / 394.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5932, allocations: 0 / 0.5804 GB, free: 12.37 MB / 394.7 MB Notification: Performance of Templates: time 0.01318/0.6064, allocations: 6.375 MB / 0.5866 GB, free: 6 MB / 394.7 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)