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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin441
RA = 335.71, Dec = 12.1568
tmin = 353635201, tmax = 353894401
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='277968', job_status='RUN', time_executed='2021-09-28 10:14:27.648112', time_epoch_executed='1632849267.65' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277968

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277968/ft1_4FGL_J2222.8+1209_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277968/ft2_4FGL_J2222.8+1209_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277968/ft1_4FGL_J2222.8+1209_daily_bin441.fits outfile=/scratch/kocevski/277968/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin441.fits ra=335.71 dec=12.1568 rad=12.0 tmin=353635201.0 tmax=353894401.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.53
user 3.33
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/277968/ft2_4FGL_J2222.8+1209_daily_bin441.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/277968/ft2_4FGL_J2222.8+1209_daily_bin441.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/277968/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin441.fits evtable="EVENTS" outfile="/scratch/kocevski/277968/ft1_filtered_4FGL_J2222.8+1209_daily_bin441.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277968/ft1_filtered_4FGL_J2222.8+1209_daily_bin441.fits" evtable="EVENTS" scfile=/scratch/kocevski/277968/ft2_4FGL_J2222.8+1209_daily_bin441.fits sctable="SC_DATA" outfile=/scratch/kocevski/277968/ltcube_353635201_353894401_4FGL_J2222.8+1209_daily_bin441.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/277968/ft2_4FGL_J2222.8+1209_daily_bin441.fits
.....................!
real 11.75
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277968/ft1_filtered_4FGL_J2222.8+1209_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/277968/ft2_4FGL_J2222.8+1209_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/277968/ltcube_353635201_353894401_4FGL_J2222.8+1209_daily_bin441.fits outfile=/scratch/kocevski/277968/expmap_353635201_353894401_4FGL_J2222.8+1209_daily_bin441.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/277968/ltcube_353635201_353894401_4FGL_J2222.8+1209_daily_bin441.fits
.....................!
real 191.78
user 186.47
sys 4.99

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2222.8+1209 @ 335.71 12.1568

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/277968/ft1_filtered_4FGL_J2222.8+1209_daily_bin441.fits scfile=/scratch/kocevski/277968/ft2_4FGL_J2222.8+1209_daily_bin441.fits outfile=/scratch/kocevski/277968/cmap_353635201_353894401_4FGL_J2222.8+1209_daily_bin441.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=335.71 yref=12.1568 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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277968/ft1_filtered_4FGL_J2222.8+1209_daily_bin441.fits scfile=/scratch/kocevski/277968/ft2_4FGL_J2222.8+1209_daily_bin441.fits outfile=/scratch/kocevski/277968/cmap_HighResolution_353635201_353894401_4FGL_J2222.8+1209_daily_bin441.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=335.71 yref=12.1568 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.71
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/277968/ft1_filtered_4FGL_J2222.8+1209_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/277968/ft2_4FGL_J2222.8+1209_daily_bin441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/277968/Model_4FGL_J2222.8+1209_daily_bin441.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/277968/ft1_filtered_4FGL_J2222.8+1209_daily_bin441.fits.....................!
real 63.75
user 62.43
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/277968/ft1_filtered_4FGL_J2222.8+1209_daily_bin441.fits', '/scratch/kocevski/277968/ft2_4FGL_J2222.8+1209_daily_bin441.fits', expMap='/scratch/kocevski/277968/expmap_353635201_353894401_4FGL_J2222.8+1209_daily_bin441.fits', expCube='/scratch/kocevski/277968/ltcube_353635201_353894401_4FGL_J2222.8+1209_daily_bin441.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/277968/Model_4FGL_J2222.8+1209_daily_bin441.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2222.8+1209'

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.996e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.407e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/277968/ft1_filtered_4FGL_J2222.8+1209_daily_bin441.fits
Spacecraft file(s): /scratch/kocevski/277968/ft2_4FGL_J2222.8+1209_daily_bin441.fits
Exposure map: /scratch/kocevski/277968/expmap_353635201_353894401_4FGL_J2222.8+1209_daily_bin441.fits
Exposure cube: /scratch/kocevski/277968/ltcube_353635201_353894401_4FGL_J2222.8+1209_daily_bin441.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/277968/Model_4FGL_J2222.8+1209_daily_bin441.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) = 6311.15984531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0209       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4028       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .46271       1.0000         .10000E-03   10000.    
     5 'norm      '    7.8905       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.991       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .73212       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2237       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7417       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0782       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3648       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .48372       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5565       1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.336       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .45603       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3206       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0566       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+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=   6311.143     FROM MIGRAD    STATUS=CONVERGED   1095 CALLS     3570 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0227        3.2187        .89688E-04    .38027E-05
   2  Prefactor     1.3762        2218.6        .36622E-02   -.11890E-04
   3  Prefactor     .10000E-03    18.994        .18142E-02** at limit **
   4  norm          .46305        6.8793        .19995E-03   -.34137E-03
   5  norm          7.8890        14.958        .71372E-03   -.61230E-04
   6  Prefactor     13.966        38.488        .10708E-03   -.52978E-04
   7  Prefactor     .10000E-03    73.987        .18142E-02** at limit **
   8  norm          .73153        .79498        .73919E-03   -.89151E-03
   9  Prefactor     9.2210        18.678        .13196E-03   -.10683E-04
  10  Prefactor     .10000E-03    13.799        .18142E-02** at limit **
  11  Prefactor     7.7403        24.616        .14412E-03   -.98605E-05
  12  norm          2.0784        3.0113        .16191E-03   -.23101E-04
  13  Prefactor     .10000E-03    2.7358        .12829E-02** at limit **
  14  Prefactor     7.3728        10.287        .14779E-03   -.31539E-04
  15  Prefactor     .48372        .20035        .21644E-04   -.51844E-03
  16  Prefactor     5.5543        6.0063        .17044E-03   -.48493E-04
  17  norm          .10000E-03    .80446        .13710E-03** at limit **
  18  Prefactor     10.320        23.254        .12463E-03   -.34481E-04
  19  Prefactor     .48857        26.491        .39333E-02    .15259E-03
  20  Prefactor     .10000E-03    22.238        .18142E-02** at limit **
  21  Prefactor     .10000E-03    .67223E-01    .31836E-03** at limit **
  22  Prefactor     .10000E-03    44.258        .18142E-02** at limit **
  23  Prefactor     7.3191        7.2112        .14824E-03   -.79452E-04
  24  Prefactor     .10000E-03    8.5965        .18142E-02** at limit **
  25  Normalizat    1.0567        .26082        .30563E-03   -.98648E-04
  26  Prefactor     .87885        .13785        .18130E-03   -.26477E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.02274
  Prefactor  = 1.37617
  Prefactor  = 0.0001
  norm       = 0.463055
  norm       = 7.88899
  Prefactor  = 13.9663
  Prefactor  = 0.000100001
  norm       = 0.73153
  Prefactor  = 9.221
  Prefactor  = 0.0001
  Prefactor  = 7.74029
  norm       = 2.07838
  Prefactor  = 0.0001
  Prefactor  = 7.37281
  Prefactor  = 0.483721
  Prefactor  = 5.55427
  norm       = 0.0001
  Prefactor  = 10.3197
  Prefactor  = 0.488574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.3191
  Prefactor  = 0.0001
  Normalizat = 1.05669
  Prefactor  = 0.878851
 **********
 **   18 **HESSE 
 **********

 FCN=   6311.143     FROM HESSE     STATUS=OK           436 CALLS     4006 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0227        3.2188        .35875E-05   -1.5217    
   2  Prefactor     1.3762        1659.0        .14649E-03   -1.5473    
   3  Prefactor     .10000E-03    18.994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .46305        5.0164        .79981E-05   -1.5572    
   5  norm          7.8890        14.935        .28549E-04   -1.5146    
   6  Prefactor     13.966        38.494        .42833E-05   -1.4960    
   7  Prefactor     .10000E-03    74.002        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .73153        .79453        .29568E-04   -1.5537    
   9  Prefactor     9.2210        18.676        .52785E-05   -1.5101    
  10  Prefactor     .10000E-03    13.800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7403        24.619        .57648E-05   -1.5151    
  12  norm          2.0784        3.0111        .64764E-05   -1.5420    
  13  Prefactor     .10000E-03    2.7358        .25658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3728        10.286        .59117E-05   -1.5165    
  15  Prefactor     .48372        .20032        .86575E-06   -1.5569    
  16  Prefactor     5.5543        6.0062        .68175E-05   -1.5237    
  17  norm          .10000E-03    .80446        .27420E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.320        23.254        .49851E-05   -1.5065    
  19  Prefactor     .48857        26.688        .15733E-03   -1.5568    
  20  Prefactor     .10000E-03    22.243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .67278E-01    .63671E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    44.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3191        7.2109        .59296E-05   -1.5167    
  24  Prefactor     .10000E-03    8.5980        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0567        .26067        .12225E-04   -.91155    
  26  Prefactor     .87885        .13789        .36260E-04   -.96884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48345e-10
Minuit parameter uncertainties:
  1  3.2189
  2  98.4288
  3  9.40127e-05
  4  3.04818
  5  14.942
  6  38.5624
  7  0.000621822
  8  0.794542
  9  18.6879
  10  5.90855e-06
  11  24.6511
  12  3.01132
  13  2.34056e-06
  14  10.2889
  15  0.20032
  16  6.00686
  17  3.21159e-06
  18  23.2748
  19  7.22463
  20  0.000162621
  21  2.84472e-07
  22  0.000248993
  23  7.21171
  24  1.73714e-05
  25  0.260984
  26  0.137942
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.341e-06  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.407e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.789e-01  1.379e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.057e+00  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 5.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277968/likelihoodResults_353635201_353894401_4FGL_J2222.8+1209_daily_bin441.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) = 6311.14433057
delta logL = -0.00172087621286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6311.14260909
delta logL = 6.09624294157e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3776       1.0000          .0000       10.000    
     3 'Normalizat'    1.0567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87883       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+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=   6311.143     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      257 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.314        .13288E-01** at limit **
   2  Index         1.6223        8.3232        .50000        .11187E-06
   3  Normalizat    1.0567        .10209E-01    .30563E-03   -.40450E-02
   4  Prefactor     .87885        .56103E-02    .18130E-03   -.68416E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.62229
  Normalizat = 1.05668
  Prefactor  = 0.878846
 **********
 **   18 **HESSE 
 **********

 FCN=   6311.143     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    138.54        .17068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6223        9.0615        .50000       -.74170    
   3  Normalizat    1.0567        .29734E-01    .61126E-04   -.91155    
   4  Prefactor     .87885        .16340E-01    .36260E-04   -.96884    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.94156e-09
Minuit parameter uncertainties:
  1  0.000179392
  2  641.239
  3  0.0297349
  4  0.0163398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277968': 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) = 6311.14260176
delta logL = 7.9343571997e-06

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.794e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.622e+00  6.412e+02  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.788e-01  1.634e-02  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.057e+00  2.973e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.710 12.157

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/277968/cmap_HighResolution_353635201_353894401_4FGL_J2222.8+1209_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.10e-08', time_completed='2021-09-28 10:27:16.178849', job_id='277968', GAL2='0.88', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632850036.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='7.93e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='441' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:27:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 277968: <4FGL_J2222.8+1209_daily_bin441> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin441> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:10:49 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:10:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:10:50 2021
Terminated at Tue Sep 28 10:27:16 2021
Results reported at Tue Sep 28 10:27:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin441 335.71 12.1568 353635201 353894401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2222.8+1209 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   768.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

