/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7236
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin774
RA = 334.823, Dec = -3.7102
tmin = 439948801, tmax = 440208001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='259576', job_status='RUN', time_executed='2021-09-28 09:10:43.979389', time_epoch_executed='1632845443.98' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259576

Creating custom pfile directory:
/scratch/kocevski/259576/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=439948801.0 && nMetStart<440208001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=439948801.0 && nMetStart<440208001.0' /Data/Flight/Level1/LPA

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259576/ft1_4FGL_J2219.2-0342_daily_bin774.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=439948801.0 && nMetStart<440208001.0' /Data/Flight/Level1/LPA

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259576/ft2_4FGL_J2219.2-0342_daily_bin774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259576/ft1_4FGL_J2219.2-0342_daily_bin774.fits outfile=/scratch/kocevski/259576/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin774.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=439948801.0 tmax=440208001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.38
user 3.17
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/259576/ft2_4FGL_J2219.2-0342_daily_bin774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259576/ft2_4FGL_J2219.2-0342_daily_bin774.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/259576/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin774.fits evtable="EVENTS" outfile="/scratch/kocevski/259576/ft1_filtered_4FGL_J2219.2-0342_daily_bin774.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259576/ft1_filtered_4FGL_J2219.2-0342_daily_bin774.fits" evtable="EVENTS" scfile=/scratch/kocevski/259576/ft2_4FGL_J2219.2-0342_daily_bin774.fits sctable="SC_DATA" outfile=/scratch/kocevski/259576/ltcube_439948801_440208001_4FGL_J2219.2-0342_daily_bin774.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/259576/ft2_4FGL_J2219.2-0342_daily_bin774.fits
.....................!
real 11.64
user 11.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259576/ft1_filtered_4FGL_J2219.2-0342_daily_bin774.fits evtable="EVENTS" scfile=/scratch/kocevski/259576/ft2_4FGL_J2219.2-0342_daily_bin774.fits sctable="SC_DATA" expcube=/scratch/kocevski/259576/ltcube_439948801_440208001_4FGL_J2219.2-0342_daily_bin774.fits outfile=/scratch/kocevski/259576/expmap_439948801_440208001_4FGL_J2219.2-0342_daily_bin774.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/259576/ltcube_439948801_440208001_4FGL_J2219.2-0342_daily_bin774.fits
.....................!
real 191.00
user 185.73
sys 4.96

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2219.2-0342 @ 334.823 -3.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/259576/ft1_filtered_4FGL_J2219.2-0342_daily_bin774.fits scfile=/scratch/kocevski/259576/ft2_4FGL_J2219.2-0342_daily_bin774.fits outfile=/scratch/kocevski/259576/cmap_439948801_440208001_4FGL_J2219.2-0342_daily_bin774.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259576/ft1_filtered_4FGL_J2219.2-0342_daily_bin774.fits scfile=/scratch/kocevski/259576/ft2_4FGL_J2219.2-0342_daily_bin774.fits outfile=/scratch/kocevski/259576/cmap_HighResolution_439948801_440208001_4FGL_J2219.2-0342_daily_bin774.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259576/ft1_filtered_4FGL_J2219.2-0342_daily_bin774.fits evtable="EVENTS" scfile=/scratch/kocevski/259576/ft2_4FGL_J2219.2-0342_daily_bin774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259576/Model_4FGL_J2219.2-0342_daily_bin774.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/259576/ft1_filtered_4FGL_J2219.2-0342_daily_bin774.fits.....................!
real 59.49
user 56.79
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/259576/ft1_filtered_4FGL_J2219.2-0342_daily_bin774.fits', '/scratch/kocevski/259576/ft2_4FGL_J2219.2-0342_daily_bin774.fits', expMap='/scratch/kocevski/259576/expmap_439948801_440208001_4FGL_J2219.2-0342_daily_bin774.fits', expCube='/scratch/kocevski/259576/ltcube_439948801_440208001_4FGL_J2219.2-0342_daily_bin774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/259576/Model_4FGL_J2219.2-0342_daily_bin774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2219.2-0342'

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.492e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/259576/ft1_filtered_4FGL_J2219.2-0342_daily_bin774.fits
Spacecraft file(s): /scratch/kocevski/259576/ft2_4FGL_J2219.2-0342_daily_bin774.fits
Exposure map: /scratch/kocevski/259576/expmap_439948801_440208001_4FGL_J2219.2-0342_daily_bin774.fits
Exposure cube: /scratch/kocevski/259576/ltcube_439948801_440208001_4FGL_J2219.2-0342_daily_bin774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/259576/Model_4FGL_J2219.2-0342_daily_bin774.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5683.65097173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5683.64289169

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.765       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.471       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.218       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.551       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9182       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.792       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.0384       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7738       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14608E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.2325       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2504       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77649       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5683.643     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2676 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7760       -.63357E-07** at limit **
   2  Prefactor     55.756        50.171       -.19491E-05   -.18236E-03
   3  Prefactor     .10000E-03    12.903        .13628E-06** at limit **
   4  Prefactor     54.462        63.560       -.22225E-05   -.12647E-03
   5  Prefactor     .10000E-03    2.8607       -.51908E-07** at limit **
   6  Prefactor     .10000E-03    3.2793       -.35181E-07** at limit **
   7  Prefactor     14.217        15.166        .24283E-06   -.94043E-05
   8  Prefactor     32.554        24.030        .38559E-06    .40138E-04
   9  Prefactor     .10000E-03    14.570        .77152E-06** at limit **
  10  Prefactor     .10000E-03    7.2357       -.35105E-06** at limit **
  11  Prefactor     3.9179        7.8057        .39708E-05   -.78173E-03
  12  Prefactor     .10000E-03    9.2212        .42254E-06** at limit **
  13  Prefactor     19.792        16.009       -.23947E-07   -.98576E-05
  14  Prefactor     .10000E-03    36.402       -.32576E-05** at limit **
  15  Prefactor     .10000E-03    4.7125        .21645E-07** at limit **
  16  norm          8.0383        4.8712        .11956E-06    .12598E-03
  17  Prefactor     .10002E-03    70.627       -.72836E-05** at limit **
  18  norm          1.7738        1.2031       -.10344E-07   -.20252E-03
  19  Prefactor     .10002E-03    50.116        .89819E-05** at limit **
  20  norm          3.2322        2.0075        .13805E-06   -.87882E-03
  21  Prefactor     .10000E-03    6.9035        .22791E-06** at limit **
  22  norm          .10000E-03    11.702       -.87815E-06** at limit **
  23  Normalizat    1.2503        .23513        .12780E-06   -.41925E-04
  24  Prefactor     .77657        .13144       -.26028E-06   -.11383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 55.7556
  Prefactor  = 0.0001
  Prefactor  = 54.4624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2173
  Prefactor  = 32.5539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.91786
  Prefactor  = 0.0001
  Prefactor  = 19.7925
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 8.03835
  Prefactor  = 0.000100018
  norm       = 1.77378
  Prefactor  = 0.000100023
  norm       = 3.23223
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.25032
  Prefactor  = 0.77657
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.643     FROM HESSE     STATUS=OK           391 CALLS     3067 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8057        .97904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.756        50.700        .53717E-04   -1.4213    
   3  Prefactor     .10000E-03    12.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     54.462        64.108        .54348E-04   -1.4231    
   5  Prefactor     .10000E-03    2.8637        .12447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2965        .13331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.217        15.167        .10622E-03   -1.4954    
   8  Prefactor     32.554        24.046        .70233E-04   -1.4566    
   9  Prefactor     .10000E-03    14.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9179        8.5630        .10191E-02   -1.5312    
  12  Prefactor     .10000E-03    9.2344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.792        16.037        .90029E-04   -1.4818    
  14  Prefactor     .10000E-03    36.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7877        .15915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0383        4.8832        .12275E-03   -1.5141    
  17  Prefactor     .10002E-03    73.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7738        1.2006        .65872E-04   -1.5442    
  19  Prefactor     .10002E-03    53.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2322        1.9931        .80721E-04   -1.5348    
  21  Prefactor     .10000E-03    6.9670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    11.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2503        .28059        .28896E-03   -.85062    
  24  Prefactor     .77657        .15594        .20760E-03   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35225e-09
Minuit parameter uncertainties:
  1  1.05058e-05
  2  50.739
  3  2.2015e-05
  4  64.1892
  5  7.42774e-06
  6  4.48769e-06
  7  15.1706
  8  24.0534
  9  0.000103991
  10  3.49749e-05
  11  8.56564
  12  4.61396e-05
  13  16.0406
  14  0.000744723
  15  2.17449e-06
  16  4.88346
  17  0.00232882
  18  1.20057
  19  0.00222917
  20  1.99317
  21  1.84085e-05
  22  0.000114716
  23  0.280928
  24  0.156029
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5683.64289101

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.979e+01  1.604e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  7.766e-01  1.560e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.250e+00  2.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.12e-08 +/- 7.38e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.80e-05

TS (Fixed Index): 1.96
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 2.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259576/likelihoodResults_439948801_440208001_4FGL_J2219.2-0342_daily_bin774.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5683.34981774
delta logL = 0.293073268631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5683.34438412
delta logL = 0.298506894881

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.104       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2623       1.0000          .0000       10.000    
     3 'Normalizat'    1.2099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79362       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5683.344     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      287 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.109        17.045        .10665E-03   -.65610E-03
   2  Index         3.2626        .92967        .67946E-02   -.18678E-03
   3  Normalizat    1.2099        .27701        .29296E-03    .12238E-02
   4  Prefactor     .79352        .15791        .20558E-03    .17545E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1088
  Index      = 3.2626
  Normalizat = 1.20991
  Prefactor  = 0.79352
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.344     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.109        15.474        .42661E-05   -1.4957    
   2  Index         3.2626        .84380        .27178E-03   -.35488    
   3  Normalizat    1.2099        .27723        .58593E-04   -.86297    
   4  Prefactor     .79352        .15783        .41116E-04   -.99968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9262e-09
Minuit parameter uncertainties:
  1  15.4781
  2  0.848419
  3  0.277567
  4  0.157917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259576': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5683.34438272
delta logL = 0.298508289756

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.411e+01  1.548e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.263e+00  8.484e-01  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  7.935e-01  1.579e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.210e+00  2.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.60
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.26 +/- 0.85
Photon Flux (Free Index): 1.24e-07 +/- 9.08e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.61e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/259576/cmap_HighResolution_439948801_440208001_4FGL_J2219.2-0342_daily_bin774.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/259576

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-02', comment='SUCCESS', photon_flux='9.12e-08', energy_flux2='2.22e-05', photon_flux_error='7.38e-08', dlogl='2.99e-01', energy_flux='2.23e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-28 09:20:53.046277', photon_index_error2='0.85', photon_index2='3.26', ts='1.96', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='2.33e-07', energy_flux_error2='1.61e-05', EG='1.25', time_epoch_completed='1632846053.05', return_code='0', job_id='259576', GAL2='0.79', EG2='1.21', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='9.08e-08', ts2='2.60', photon_index='2.68' WHERE bin_id='774' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:20:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 259576: <4FGL_J2219.2-0342_daily_bin774> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin774> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:27 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:10:28 2021
Terminated at Tue Sep 28 09:20:53 2021
Results reported at Tue Sep 28 09:20:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin774 334.823 -3.7102 439948801 440208001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2219.2-0342 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   607.35 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             369.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            626 sec.

The output (if any) is above this job summary.

