/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 219 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 = 7559
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin351
RA = 334.823, Dec = -3.7102
tmin = 330307201, tmax = 330566401
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='257911', job_status='RUN', time_executed='2021-09-28 09:09:03.292493', time_epoch_executed='1632845343.29' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257911

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257911/ft1_4FGL_J2219.2-0342_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257911/ft2_4FGL_J2219.2-0342_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257911/ft1_4FGL_J2219.2-0342_daily_bin351.fits outfile=/scratch/kocevski/257911/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin351.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=330307201.0 tmax=330566401.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.87
user 3.62
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/257911/ft2_4FGL_J2219.2-0342_daily_bin351.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/257911/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin351.fits evtable="EVENTS" outfile="/scratch/kocevski/257911/ft1_filtered_4FGL_J2219.2-0342_daily_bin351.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.57
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257911/ft1_filtered_4FGL_J2219.2-0342_daily_bin351.fits" evtable="EVENTS" scfile=/scratch/kocevski/257911/ft2_4FGL_J2219.2-0342_daily_bin351.fits sctable="SC_DATA" outfile=/scratch/kocevski/257911/ltcube_330307201_330566401_4FGL_J2219.2-0342_daily_bin351.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/257911/ft2_4FGL_J2219.2-0342_daily_bin351.fits
.....................!
real 14.07
user 13.62
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257911/ft1_filtered_4FGL_J2219.2-0342_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/257911/ft2_4FGL_J2219.2-0342_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/257911/ltcube_330307201_330566401_4FGL_J2219.2-0342_daily_bin351.fits outfile=/scratch/kocevski/257911/expmap_330307201_330566401_4FGL_J2219.2-0342_daily_bin351.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/257911/ltcube_330307201_330566401_4FGL_J2219.2-0342_daily_bin351.fits
.....................!
real 192.83
user 187.13
sys 5.33

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/257911/ft1_filtered_4FGL_J2219.2-0342_daily_bin351.fits scfile=/scratch/kocevski/257911/ft2_4FGL_J2219.2-0342_daily_bin351.fits outfile=/scratch/kocevski/257911/cmap_330307201_330566401_4FGL_J2219.2-0342_daily_bin351.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257911/ft1_filtered_4FGL_J2219.2-0342_daily_bin351.fits scfile=/scratch/kocevski/257911/ft2_4FGL_J2219.2-0342_daily_bin351.fits outfile=/scratch/kocevski/257911/cmap_HighResolution_330307201_330566401_4FGL_J2219.2-0342_daily_bin351.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/257911/ft1_filtered_4FGL_J2219.2-0342_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/257911/ft2_4FGL_J2219.2-0342_daily_bin351.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257911/Model_4FGL_J2219.2-0342_daily_bin351.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/257911/ft1_filtered_4FGL_J2219.2-0342_daily_bin351.fits....................!
real 55.15
user 53.73
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0872       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .72207E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5785       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22105E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10746E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10657E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11468E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2283       1.0000         .10000E-03   10000.    
    16 'norm      '    .47045E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2532       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2698       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.544       1.0000         .10000E-03   10000.    
    20 'norm      '    .13712E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4039       1.0000         .10000E-03   10000.    
    22 'norm      '    .12774E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2247       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78560       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=   5290.644     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2766 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0855        3.0492        .18300E-07    .25182E-04
   2  Prefactor     .10000E-03    10.717        .15429E-07** at limit **
   3  Prefactor     .10000E-03    164.58        .25562E-05** at limit **
   4  Prefactor     .10000E-03    13.354        .47159E-07** at limit **
   5  Prefactor     .10000E-03    2.0969        .34620E-07** at limit **
   6  Prefactor     7.5814        7.0257       -.11450E-06    .38712E-04
   7  Prefactor     .10000E-03    7.6158        .10521E-06** at limit **
   8  Prefactor     .10000E-03    16.197        .39119E-07** at limit **
   9  Prefactor     .10000E-03    11.913        .29323E-06** at limit **
  10  Prefactor     .10000E-03    8.6720        .15394E-06** at limit **
  11  Prefactor     .10000E-03    4.1582        .67754E-07** at limit **
  12  Prefactor     .10000E-03    21.875        .30900E-06** at limit **
  13  Prefactor     .10000E-03    3.4957        .13708E-07** at limit **
  14  Prefactor     .10000E-03    43.997        .13087E-06** at limit **
  15  Prefactor     6.2316        4.3919       -.14020E-06    .23389E-03
  16  norm          .32842E-01    15.912       -.57770E-05    .12006E-02
  17  Prefactor     1.3129        938.70        .20350E-04    .29744E-04
  18  norm          2.2700        1.3182        .17279E-07    .24087E-03
  19  Prefactor     25.571        20.324       -.25640E-05   -.15052E-03
  20  norm          .10000E-03    1.0285        .10757E-05** at limit **
  21  Prefactor     8.4012        12.221       -.21083E-05   -.30017E-03
  22  norm          .10049E-03    67.351        .10373E-04** at limit **
  23  Normalizat    1.2249        .23261        .15709E-05    .39479E-03
  24  Prefactor     .78552        .13313       -.86983E-06    .80382E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.08554
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.58138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.23161
  norm       = 0.0328424
  Prefactor  = 1.31292
  norm       = 2.27002
  Prefactor  = 25.5713
  norm       = 0.0001
  Prefactor  = 8.4012
  norm       = 0.00010049
  Normalizat = 1.22487
  Prefactor  = 0.785523
 **********
 **   18 **HESSE 
 **********

 FCN=   5290.644     FROM HESSE     STATUS=OK           403 CALLS     3169 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0855        3.0479        .87200E-04   -1.5215    
   2  Prefactor     .10000E-03    10.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    168.59        .41924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1008        .10286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.5814        7.0282        .14568E-03   -1.5157    
   7  Prefactor     .10000E-03    51.603        .38710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1652        .14485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.5021        .13280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2316        4.3864        .12184E-03   -1.5209    
  16  norm          .32842E-01    7.7847        .32670E-01   -1.5672    
  17  Prefactor     1.3129        945.48        .39920E-03   -1.5479    
  18  norm          2.2700        1.3148        .61271E-04   -1.5407    
  19  Prefactor     25.571        21.648        .79259E-04   -1.4696    
  20  norm          .10000E-03    1.6318        .14197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.4012        12.222        .69143E-03   -1.5128    
  22  norm          .10049E-03    72.717        .48543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2249        .27515        .27239E-03   -.85838    
  24  Prefactor     .78552        .15873        .19785E-03   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42159e-08
Minuit parameter uncertainties:
  1  3.04798
  2  5.04263e-05
  3  0.00102132
  4  3.53637e-05
  5  8.78336e-08
  6  7.02893
  7  4.43911e-05
  8  0.000163384
  9  7.28761e-05
  10  3.63719e-06
  11  5.97577e-07
  12  0.000142133
  13  1.67767e-06
  14  6.93935e-05
  15  4.38663
  16  1.00987
  17  71.6281
  18  1.31487
  19  21.6543
  20  3.56954e-05
  21  12.2253
  22  0.011959
  23  0.275473
  24  0.158826
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.678e-06  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.855e-01  1.588e-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.225e+00  2.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 7.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257911/likelihoodResults_330307201_330566401_4FGL_J2219.2-0342_daily_bin351.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): 102
logL (Free Index) = 5290.64492553
delta logL = -0.00135622284688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5290.64356926
delta logL = 4.11982910009e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6728       1.0000          .0000       10.000    
     3 'Normalizat'    1.2249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78553       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=   5290.644     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      256 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.376        .13328E-01** at limit **
   2  Index         2.3072        6.1511        .50000       -.11650E-05
   3  Normalizat    1.2249        .16250E-01    .27239E-03    .12145E-04
   4  Prefactor     .78552        .97298E-02    .19785E-03    .23330E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.30717
  Normalizat = 1.22487
  Prefactor  = 0.78552
 **********
 **   18 **HESSE 
 **********

 FCN=   5290.644     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      283 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    303.45        .13807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3072        6.1527        .50000       -.56873    
   3  Normalizat    1.2249        .55706E-01    .10896E-04   -.85838    
   4  Prefactor     .78552        .33355E-01    .79139E-05   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03433e-07
Minuit parameter uncertainties:
  1  1.21492e-05
  2  1168.81
  3  0.0557085
  4  0.0333557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257911': 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): 102
logL (Free Index) = 5290.64356823
delta logL = 1.07719279185e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.215e-05  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.307e+00  1.169e+03  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.855e-01  3.336e-02  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.225e+00  5.571e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.823 -3.710

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/257911/cmap_HighResolution_330307201_330566401_4FGL_J2219.2-0342_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2021-09-28 09:19:20.302369', job_id='257911', GAL2='0.79', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632845960.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='351' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:19:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 257911: <4FGL_J2219.2-0342_daily_bin351> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin351> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:05:11 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:05:13 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:05:13 2021
Terminated at Tue Sep 28 09:19:21 2021
Results reported at Tue Sep 28 09:19:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin351 334.823 -3.7102 330307201 330566401 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 :                                   617.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             247.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            850 sec.

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

