/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 158 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 = 7396
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin870
RA = 334.823, Dec = -3.7102
tmin = 464832001, tmax = 465091201
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='259721', job_status='RUN', time_executed='2021-09-28 09:13:27.114030', time_epoch_executed='1632845607.11' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259721

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259721/ft1_4FGL_J2219.2-0342_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259721/ft2_4FGL_J2219.2-0342_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259721/ft1_4FGL_J2219.2-0342_daily_bin870.fits outfile=/scratch/kocevski/259721/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin870.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=464832001.0 tmax=465091201.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.37
user 3.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259721/ft2_4FGL_J2219.2-0342_daily_bin870.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/259721/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin870.fits evtable="EVENTS" outfile="/scratch/kocevski/259721/ft1_filtered_4FGL_J2219.2-0342_daily_bin870.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259721/ft1_filtered_4FGL_J2219.2-0342_daily_bin870.fits" evtable="EVENTS" scfile=/scratch/kocevski/259721/ft2_4FGL_J2219.2-0342_daily_bin870.fits sctable="SC_DATA" outfile=/scratch/kocevski/259721/ltcube_464832001_465091201_4FGL_J2219.2-0342_daily_bin870.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/259721/ft2_4FGL_J2219.2-0342_daily_bin870.fits
.....................!
real 11.74
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259721/ft1_filtered_4FGL_J2219.2-0342_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/259721/ft2_4FGL_J2219.2-0342_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/259721/ltcube_464832001_465091201_4FGL_J2219.2-0342_daily_bin870.fits outfile=/scratch/kocevski/259721/expmap_464832001_465091201_4FGL_J2219.2-0342_daily_bin870.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/259721/ltcube_464832001_465091201_4FGL_J2219.2-0342_daily_bin870.fits
.....................!
real 190.02
user 185.17
sys 4.48

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/259721/ft1_filtered_4FGL_J2219.2-0342_daily_bin870.fits scfile=/scratch/kocevski/259721/ft2_4FGL_J2219.2-0342_daily_bin870.fits outfile=/scratch/kocevski/259721/cmap_464832001_465091201_4FGL_J2219.2-0342_daily_bin870.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259721/ft1_filtered_4FGL_J2219.2-0342_daily_bin870.fits scfile=/scratch/kocevski/259721/ft2_4FGL_J2219.2-0342_daily_bin870.fits outfile=/scratch/kocevski/259721/cmap_HighResolution_464832001_465091201_4FGL_J2219.2-0342_daily_bin870.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259721/ft1_filtered_4FGL_J2219.2-0342_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/259721/ft2_4FGL_J2219.2-0342_daily_bin870.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259721/Model_4FGL_J2219.2-0342_daily_bin870.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/259721/ft1_filtered_4FGL_J2219.2-0342_daily_bin870.fits.....................!
real 71.96
user 70.61
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/259721/ft1_filtered_4FGL_J2219.2-0342_daily_bin870.fits', '/scratch/kocevski/259721/ft2_4FGL_J2219.2-0342_daily_bin870.fits', expMap='/scratch/kocevski/259721/expmap_464832001_465091201_4FGL_J2219.2-0342_daily_bin870.fits', expCube='/scratch/kocevski/259721/ltcube_464832001_465091201_4FGL_J2219.2-0342_daily_bin870.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/259721/Model_4FGL_J2219.2-0342_daily_bin870.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/259721/ft1_filtered_4FGL_J2219.2-0342_daily_bin870.fits
Spacecraft file(s): /scratch/kocevski/259721/ft2_4FGL_J2219.2-0342_daily_bin870.fits
Exposure map: /scratch/kocevski/259721/expmap_464832001_465091201_4FGL_J2219.2-0342_daily_bin870.fits
Exposure cube: /scratch/kocevski/259721/ltcube_464832001_465091201_4FGL_J2219.2-0342_daily_bin870.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/259721/Model_4FGL_J2219.2-0342_daily_bin870.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) = 7499.73524908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7950       1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.159       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0353       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .41918E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1821       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1971       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.735       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.725       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    48.440       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7673       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0354       1.0000         .10000E-03   10000.    
    22 'norm      '    110.55       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3175       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76689       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=   7499.729     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2685 TOTAL
                     EDM=   .64E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7943        2.8438       -.64889E-07   -.43628E-05
   2  Prefactor     47.147        48.420        .12417E-05    .90177E-05
   3  Prefactor     .10000E-03    23.378       -.43893E-06** at limit **
   4  Prefactor     .10000E-03    22.149        .12179E-05** at limit **
   5  Prefactor     4.0343        6.8342        .14898E-05    .17286E-05
   6  Prefactor     .10000E-03    3.5538        .11327E-08** at limit **
   7  Prefactor     .10000E-03    5.1308       -.33430E-06** at limit **
   8  Prefactor     6.1774        24.097        .59684E-06    .19750E-05
   9  Prefactor     5.1965        15.391        .10940E-06    .93052E-05
  10  Prefactor     .10000E-03    5.7095       -.15394E-07** at limit **
  11  Prefactor     22.734        13.953        .70208E-07    .71707E-05
  12  Prefactor     .10000E-03    12.837       -.19282E-06** at limit **
  13  Prefactor     10.725        9.9844        .25891E-06    .15895E-05
  14  Prefactor     .10000E-03    46.450       -.48942E-05** at limit **
  15  Prefactor     .10000E-03    4.1533        .26936E-07** at limit **
  16  norm          48.438        7.7684        .17906E-07   -.42561E-07
  17  Prefactor     .10000E-03    58.410        .53042E-05** at limit **
  18  norm          3.7672        1.3255        .86320E-08    .15112E-04
  19  Prefactor     .10000E-03    8.9106        .65257E-07** at limit **
  20  norm          .10000E-03    .48614       -.78859E-08** at limit **
  21  Prefactor     1.0316        7.8582        .19526E-07   -.28040E-05
  22  norm          110.55        23.988        .10133E-06   -.17098E-05
  23  Normalizat    1.3177        .23625        .26790E-07    .13293E-04
  24  Prefactor     .76677        .12971       -.41590E-06    .29867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.79433
  Prefactor  = 47.1469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03432
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.1774
  Prefactor  = 5.19654
  Prefactor  = 0.0001
  Prefactor  = 22.7338
  Prefactor  = 0.0001
  Prefactor  = 10.7252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 48.4383
  Prefactor  = 0.0001
  norm       = 3.76722
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.03158
  norm       = 110.549
  Normalizat = 1.3177
  Prefactor  = 0.766775
 **********
 **   18 **HESSE 
 **********

 FCN=   7499.729     FROM HESSE     STATUS=OK           401 CALLS     3086 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7943        2.8351        .13783E-03   -1.5374    
   2  Prefactor     47.147        48.333        .58389E-04   -1.4334    
   3  Prefactor     .10000E-03    23.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.0343        6.8406        .10037E-02   -1.5306    
   6  Prefactor     .10000E-03    3.5920        .15938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.514        .37330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1774        24.104        .16146E-03   -1.5211    
   9  Prefactor     5.1965        15.318        .17633E-03   -1.5252    
  10  Prefactor     .10000E-03    5.7127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.734        13.997        .84007E-04   -1.4754    
  12  Prefactor     .10000E-03    12.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.725        9.9824        .61171E-03   -1.5053    
  14  Prefactor     .10000E-03    46.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2816        .34393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          48.438        7.8003        .57615E-04   -1.4315    
  17  Prefactor     .10000E-03    58.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7672        1.3266        .57408E-04   -1.5320    
  19  Prefactor     .10000E-03    8.9333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .49107        .58918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0316        39.777        .46741E-02   -1.5505    
  22  norm          110.55        24.035        .38256E-04   -1.3601    
  23  Normalizat    1.3177        .28021        .32221E-03   -.83039    
  24  Prefactor     .76677        .15303        .23320E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69808e-08
Minuit parameter uncertainties:
  1  2.83527
  2  48.3728
  3  1.10147e-06
  4  5.83278e-07
  5  6.84193
  6  9.20639e-07
  7  0.000497525
  8  24.142
  9  15.3298
  10  5.31913e-07
  11  13.9993
  12  2.3687e-06
  13  9.9839
  14  2.09768e-05
  15  8.43266e-07
  16  7.80048
  17  3.22528e-05
  18  1.32658
  19  8.96049e-07
  20  9.7704e-08
  21  12.8199
  22  24.0369
  23  0.280532
  24  0.153113
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.073e+01  9.984e+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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  7.668e-01  1.531e-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.318e+00  2.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.82
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.94e-08 +/- 4.59e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/259721/likelihoodResults_464832001_465091201_4FGL_J2219.2-0342_daily_bin870.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) = 7499.72049746
delta logL = 0.00813652758279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7499.71921228
delta logL = 0.00942170583949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.194       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5585       1.0000          .0000       10.000    
     3 'Normalizat'    1.3231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76447       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=   7499.719     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      233 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.195        10.896        .11974E-03   -.15511E-02
   2  Index         2.5586        .88302        .13094E-01   -.30881E-03
   3  Normalizat    1.3230        .26722        .32166E-03    .22023E-03
   4  Prefactor     .76449        .15164        .23351E-03    .38714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1951
  Index      = 2.55859
  Normalizat = 1.32304
  Prefactor  = 0.764491
 **********
 **   18 **HESSE 
 **********

 FCN=   7499.719     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.195        10.750        .23948E-04   -1.5039    
   2  Index         2.5586        .87101        .52375E-03   -.51012    
   3  Normalizat    1.3230        .26735        .12866E-04   -.82881    
   4  Prefactor     .76449        .15170        .46702E-04   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21182e-09
Minuit parameter uncertainties:
  1  10.7518
  2  0.876897
  3  0.267631
  4  0.151782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259721': 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) = 7499.71921223
delta logL = 0.00942175764612

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.120e+01  1.075e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.559e+00  8.769e-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.645e-01  1.518e-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.323e+00  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.56 +/- 0.88
Photon Flux (Free Index): 4.56e-08 +/- 5.13e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/259721/cmap_HighResolution_464832001_465091201_4FGL_J2219.2-0342_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', photon_flux='4.94e-08', energy_flux2='1.24e-05', photon_flux_error='4.59e-08', dlogl='9.42e-03', energy_flux='1.21e-05', photon_flux2='4.56e-08', job_status='DONE', time_completed='2021-09-28 09:25:17.844448', photon_index_error2='0.88', photon_index2='2.56', ts='1.82', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.20e-05', EG='1.32', time_epoch_completed='1632846317.84', return_code='0', job_id='259721', GAL2='0.76', EG2='1.32', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='5.13e-08', ts2='1.83', photon_index='2.68' WHERE bin_id='870' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:25:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 259721: <4FGL_J2219.2-0342_daily_bin870> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin870> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:38 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:40 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:40 2021
Terminated at Tue Sep 28 09:25:18 2021
Results reported at Tue Sep 28 09:25:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin870 334.823 -3.7102 464832001 465091201 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

