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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin653
RA = 335.71, Dec = 12.1568
tmin = 408585601, tmax = 408844801
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='279288', job_status='RUN', time_executed='2021-09-28 10:17:36.374070', time_epoch_executed='1632849456.37' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279288/ft1_4FGL_J2222.8+1209_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279288/ft2_4FGL_J2222.8+1209_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279288/ft1_4FGL_J2222.8+1209_daily_bin653.fits outfile=/scratch/kocevski/279288/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin653.fits ra=335.71 dec=12.1568 rad=12.0 tmin=408585601.0 tmax=408844801.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 4.28
user 4.05
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279288/ft1_filtered_4FGL_J2222.8+1209_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/279288/ft2_4FGL_J2222.8+1209_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/279288/ltcube_408585601_408844801_4FGL_J2222.8+1209_daily_bin653.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/279288/ft2_4FGL_J2222.8+1209_daily_bin653.fits
.....................!
real 11.93
user 11.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279288/ft1_filtered_4FGL_J2222.8+1209_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/279288/ft2_4FGL_J2222.8+1209_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/279288/ltcube_408585601_408844801_4FGL_J2222.8+1209_daily_bin653.fits outfile=/scratch/kocevski/279288/expmap_408585601_408844801_4FGL_J2222.8+1209_daily_bin653.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/279288/ltcube_408585601_408844801_4FGL_J2222.8+1209_daily_bin653.fits
.....................!
real 190.54
user 185.24
sys 4.93

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/279288/ft1_filtered_4FGL_J2222.8+1209_daily_bin653.fits scfile=/scratch/kocevski/279288/ft2_4FGL_J2222.8+1209_daily_bin653.fits outfile=/scratch/kocevski/279288/cmap_408585601_408844801_4FGL_J2222.8+1209_daily_bin653.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279288/ft1_filtered_4FGL_J2222.8+1209_daily_bin653.fits scfile=/scratch/kocevski/279288/ft2_4FGL_J2222.8+1209_daily_bin653.fits outfile=/scratch/kocevski/279288/cmap_HighResolution_408585601_408844801_4FGL_J2222.8+1209_daily_bin653.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.54
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/279288/ft1_filtered_4FGL_J2222.8+1209_daily_bin653.fits', '/scratch/kocevski/279288/ft2_4FGL_J2222.8+1209_daily_bin653.fits', expMap='/scratch/kocevski/279288/expmap_408585601_408844801_4FGL_J2222.8+1209_daily_bin653.fits', expCube='/scratch/kocevski/279288/ltcube_408585601_408844801_4FGL_J2222.8+1209_daily_bin653.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/279288/Model_4FGL_J2222.8+1209_daily_bin653.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/279288/ft1_filtered_4FGL_J2222.8+1209_daily_bin653.fits
Spacecraft file(s): /scratch/kocevski/279288/ft2_4FGL_J2222.8+1209_daily_bin653.fits
Exposure map: /scratch/kocevski/279288/expmap_408585601_408844801_4FGL_J2222.8+1209_daily_bin653.fits
Exposure cube: /scratch/kocevski/279288/ltcube_408585601_408844801_4FGL_J2222.8+1209_daily_bin653.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/279288/Model_4FGL_J2222.8+1209_daily_bin653.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) = 1913.20964545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3615       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.934       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.126       1.0000         .10000E-03   10000.    
     4 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    21.371       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    124.35       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4708       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0380       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3084       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0628       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.844       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.224       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9140       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .97494E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.767       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98442       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86972       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.

 FCN=   1913.183     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3113 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3612        6.2768        .29400E-06    .36657E-04
   2  Prefactor     46.825        121.08        .18781E-05    .16816E-04
   3  Prefactor     34.168        122.67        .21328E-05    .98713E-06
   4  norm          .10000E-03    3.3612       -.19426E-05** at limit **
   5  norm          21.353        37.488        .15720E-05    .30785E-04
   6  Prefactor     .10000E-03    43.567       -.19619E-06** at limit **
   7  Prefactor     124.22        127.02        .56830E-06   -.85643E-05
   8  norm          2.4712        2.2908        .14380E-06    .16898E-04
   9  Prefactor     5.0512        107.44        .44535E-05    .31612E-06
  10  Prefactor     .10000E-03    29.881        .41925E-06** at limit **
  11  Prefactor     .10000E-03    170.84        .20953E-05** at limit **
  12  norm          .10000E-03    5.4790        .12981E-07** at limit **
  13  Prefactor     8.2712        60.644        .14026E-05   -.32336E-05
  14  Prefactor     .10000E-03    92.132        .24424E-05** at limit **
  15  Prefactor     2.0629        .85534        .59231E-07   -.11569E-03
  16  Prefactor     16.851        22.064       -.23574E-06   -.10084E-04
  17  norm          .10000E-03    2.5659        .73109E-07** at limit **
  18  Prefactor     .10000E-03    60.142        .25317E-08** at limit **
  19  Prefactor     13.231        39.113        .22139E-05    .14248E-05
  20  Prefactor     .10000E-03    48.786        .10437E-06** at limit **
  21  Prefactor     1.9142        .62789        .25689E-08   -.55335E-03
  22  Prefactor     .10002E-03    1460.7       -.23975E-04** at limit **
  23  Prefactor     .10000E-03    9.3540        .10799E-07** at limit **
  24  Prefactor     28.758        40.323       -.49875E-06   -.28135E-04
  25  Normalizat    .98365        .57794       -.13943E-04   -.12327E-04
  26  Prefactor     .87004        .26503        .38556E-05   -.17767E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.36119
  Prefactor  = 46.8254
  Prefactor  = 34.168
  norm       = 0.0001
  norm       = 21.3526
  Prefactor  = 0.0001
  Prefactor  = 124.218
  norm       = 2.4712
  Prefactor  = 5.05123
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 8.27117
  Prefactor  = 0.000100001
  Prefactor  = 2.06293
  Prefactor  = 16.8511
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2306
  Prefactor  = 0.0001
  Prefactor  = 1.9142
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 28.7576
  Normalizat = 0.983653
  Prefactor  = 0.870038
 **********
 **   18 **HESSE 
 **********

 FCN=   1913.183     FROM HESSE     STATUS=OK           456 CALLS     3569 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3612        6.2879        .85056E-04   -1.5096    
   2  Prefactor     46.825        121.74        .29264E-03   -1.4338    
   3  Prefactor     34.168        122.51        .68597E-04   -1.4538    
   4  norm          .10000E-03    3.4505        .15636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.353        37.591        .86643E-04   -1.4783    
   6  Prefactor     .10000E-03    43.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     124.22        127.36        .18048E-03   -1.3474    
   8  norm          2.4712        2.2815        .60910E-04   -1.5394    
   9  Prefactor     5.0512        107.00        .17915E-03   -1.5258    
  10  Prefactor     .10000E-03    29.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    172.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.4841        .10000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2712        61.935        .13908E-03   -1.5133    
  14  Prefactor     .10000E-03    93.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0629        .86583        .22449E-04   -1.5421    
  16  Prefactor     16.851        22.124        .97587E-04   -1.4887    
  17  norm          .10000E-03    2.5662        .68400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    60.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.231        39.070        .11015E-03   -1.4980    
  20  Prefactor     .10000E-03    48.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9142        .62957        .18998E-04   -1.5431    
  22  Prefactor     .10002E-03    1479.8        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.3549        .13068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.758        40.386        .74697E-04   -1.4635    
  25  Normalizat    .98365        .61284        .38929E-03   -.93580    
  26  Prefactor     .87004        .29343        .20817E-03   -.97196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62265e-10
Minuit parameter uncertainties:
  1  6.2883
  2  122.394
  3  123.429
  4  2.95459e-05
  5  37.6329
  6  3.54552e-05
  7  127.64
  8  2.28156
  9  46.5902
  10  4.8595e-05
  11  0.000846751
  12  5.17753e-06
  13  45.3323
  14  0.000745405
  15  0.86584
  16  22.1346
  17  1.25968e-06
  18  3.82202e-05
  19  39.1457
  20  1.54295e-05
  21  0.629568
  22  0.0121007
  23  4.72033e-06
  24  40.4242
  25  0.617296
  26  0.293959
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  8.271e+00  4.533e+01  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.700e-01  2.940e-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:  9.837e-01  6.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 3.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279288/likelihoodResults_408585601_408844801_4FGL_J2222.8+1209_daily_bin653.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) = 1913.18009208
delta logL = 0.00265456446709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1913.17946775
delta logL = 0.00327889489927

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9720       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5729       1.0000          .0000       10.000    
     3 'Normalizat'    .97941       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87148       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=   1913.179     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      262 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9687        70.265        .15194E-03    .34345E-04
   2  Index         2.5765        2.3044        .96005E-02    .16316E-04
   3  Normalizat    .97974        .56463        .38996E-03   -.13941E-03
   4  Prefactor     .87122        .28622        .20803E-03   -.25607E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96868
  Index      = 2.57646
  Normalizat = 0.979741
  Prefactor  = 0.871223
 **********
 **   18 **HESSE 
 **********

 FCN=   1913.179     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9687        56.681        .60775E-05   -1.5180    
   2  Index         2.5765        2.0897        .38402E-03   -.50603    
   3  Normalizat    .97974        .56521        .77991E-04   -.93712    
   4  Prefactor     .87122        .28632        .41607E-04   -.97154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43484e-10
Minuit parameter uncertainties:
  1  39.8002
  2  2.1787
  3  0.568709
  4  0.286817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279288': 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) = 1913.17946532
delta logL = 0.00328132374989

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  6.969e+00  3.980e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.576e+00  2.179e+00  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.712e-01  2.868e-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:  9.797e-01  5.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/279288/cmap_HighResolution_408585601_408844801_4FGL_J2222.8+1209_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-02', job_status='DONE', photon_flux_upper_limit='3.88e-07', time_completed='2021-09-28 10:24:49.817372', job_id='279288', GAL2='0.87', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632849889.82', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.28e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='653' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:24:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 279288: <4FGL_J2222.8+1209_daily_bin653> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin653> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Sep 28 10:15:36 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:15:38 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:15:38 2021
Terminated at Tue Sep 28 10:24:50 2021
Results reported at Tue Sep 28 10:24:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin653 335.71 12.1568 408585601 408844801 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 :                                   433.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   552 sec.
    Turnaround time :                            554 sec.

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

