/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 71 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin432
RA = 335.71, Dec = 12.1568
tmin = 351302401, tmax = 351561601
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='277954', job_status='RUN', time_executed='2021-09-28 10:12:15.758797', time_epoch_executed='1632849135.76' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277954

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277954/ft1_4FGL_J2222.8+1209_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277954/ft2_4FGL_J2222.8+1209_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277954/ft1_4FGL_J2222.8+1209_daily_bin432.fits outfile=/scratch/kocevski/277954/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin432.fits ra=335.71 dec=12.1568 rad=12.0 tmin=351302401.0 tmax=351561601.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.43
user 3.20
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/277954/ft2_4FGL_J2222.8+1209_daily_bin432.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/277954/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin432.fits evtable="EVENTS" outfile="/scratch/kocevski/277954/ft1_filtered_4FGL_J2222.8+1209_daily_bin432.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277954/ft1_filtered_4FGL_J2222.8+1209_daily_bin432.fits" evtable="EVENTS" scfile=/scratch/kocevski/277954/ft2_4FGL_J2222.8+1209_daily_bin432.fits sctable="SC_DATA" outfile=/scratch/kocevski/277954/ltcube_351302401_351561601_4FGL_J2222.8+1209_daily_bin432.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/277954/ft2_4FGL_J2222.8+1209_daily_bin432.fits
.....................!
real 11.76
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277954/ft1_filtered_4FGL_J2222.8+1209_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/277954/ft2_4FGL_J2222.8+1209_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/277954/ltcube_351302401_351561601_4FGL_J2222.8+1209_daily_bin432.fits outfile=/scratch/kocevski/277954/expmap_351302401_351561601_4FGL_J2222.8+1209_daily_bin432.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/277954/ltcube_351302401_351561601_4FGL_J2222.8+1209_daily_bin432.fits
.....................!
real 190.43
user 185.16
sys 4.90

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/277954/ft1_filtered_4FGL_J2222.8+1209_daily_bin432.fits scfile=/scratch/kocevski/277954/ft2_4FGL_J2222.8+1209_daily_bin432.fits outfile=/scratch/kocevski/277954/cmap_351302401_351561601_4FGL_J2222.8+1209_daily_bin432.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277954/ft1_filtered_4FGL_J2222.8+1209_daily_bin432.fits scfile=/scratch/kocevski/277954/ft2_4FGL_J2222.8+1209_daily_bin432.fits outfile=/scratch/kocevski/277954/cmap_HighResolution_351302401_351561601_4FGL_J2222.8+1209_daily_bin432.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/277954/ft1_filtered_4FGL_J2222.8+1209_daily_bin432.fits', '/scratch/kocevski/277954/ft2_4FGL_J2222.8+1209_daily_bin432.fits', expMap='/scratch/kocevski/277954/expmap_351302401_351561601_4FGL_J2222.8+1209_daily_bin432.fits', expCube='/scratch/kocevski/277954/ltcube_351302401_351561601_4FGL_J2222.8+1209_daily_bin432.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/277954/Model_4FGL_J2222.8+1209_daily_bin432.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/277954/ft1_filtered_4FGL_J2222.8+1209_daily_bin432.fits
Spacecraft file(s): /scratch/kocevski/277954/ft2_4FGL_J2222.8+1209_daily_bin432.fits
Exposure map: /scratch/kocevski/277954/expmap_351302401_351561601_4FGL_J2222.8+1209_daily_bin432.fits
Exposure cube: /scratch/kocevski/277954/ltcube_351302401_351561601_4FGL_J2222.8+1209_daily_bin432.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/277954/Model_4FGL_J2222.8+1209_daily_bin432.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7693.76351509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2668       1.0000         .10000E-03   10000.    
     2 'Prefactor '    78.410       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.6741       1.0000         .10000E-03   10000.    
     5 'norm      '    5.4260       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.092       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3773       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9939       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5450       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17109E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .87577E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7939       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .34687       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3367       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23608       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .95370E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.110       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89767       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90810       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=   7693.662     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2761 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2665        4.3481       -.14997E-06    .36416E-04
   2  Prefactor     78.414        70.727        .63329E-06    .20717E-04
   3  Prefactor     .10000E-03    25.073       -.29580E-05** at limit **
   4  norm          3.6746        2.8581       -.43334E-07    .89794E-04
   5  norm          5.4280        19.156       -.35006E-05    .57261E-04
   6  Prefactor     12.093        45.352       -.18509E-06    .63239E-05
   7  Prefactor     7.3774        66.094       -.93888E-06    .91139E-06
   8  norm          1.9939        1.1500       -.59284E-07    .33868E-04
   9  Prefactor     5.5486        13.490       -.83959E-06   -.13627E-04
  10  Prefactor     .10000E-03    46.085        .29553E-05** at limit **
  11  Prefactor     .10000E-03    132.91       -.35188E-04** at limit **
  12  norm          .10000E-03    2.5503       -.52522E-07** at limit **
  13  Prefactor     3.7956        10.818       -.51665E-05    .83884E-04
  14  Prefactor     .10000E-03    6.9527       -.24159E-06** at limit **
  15  Prefactor     .34686        .17000        .13365E-07    .16660E-03
  16  Prefactor     .10000E-03    5.6858        .27424E-07** at limit **
  17  norm          1.3368        1.2344       -.38955E-07   -.70345E-04
  18  Prefactor     .10000E-03    13.932        .14101E-05** at limit **
  19  Prefactor     .10000E-03    8.4426        .29079E-06** at limit **
  20  Prefactor     .10000E-03    8.4411        .46242E-06** at limit **
  21  Prefactor     .23611        .14012       -.35495E-07   -.71333E-03
  22  Prefactor     .10000E-03    128.24       -.10258E-04** at limit **
  23  Prefactor     19.110        10.267       -.20654E-06    .11501E-03
  24  Prefactor     .10000E-03    10.017       -.12147E-05** at limit **
  25  Normalizat    .89756        .20994        .11304E-05    .29265E-03
  26  Prefactor     .90808        .10824        .53245E-06    .54427E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.26651
  Prefactor  = 78.4142
  Prefactor  = 0.000100001
  norm       = 3.67462
  norm       = 5.42805
  Prefactor  = 12.0926
  Prefactor  = 7.37744
  norm       = 1.99386
  Prefactor  = 5.5486
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.79559
  Prefactor  = 0.0001
  Prefactor  = 0.346864
  Prefactor  = 0.0001
  norm       = 1.33681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.236111
  Prefactor  = 0.000100001
  Prefactor  = 19.1098
  Prefactor  = 0.0001
  Normalizat = 0.897559
  Prefactor  = 0.908082
 **********
 **   18 **HESSE 
 **********

 FCN=   7693.662     FROM HESSE     STATUS=OK           460 CALLS     3221 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2665        4.3230        .11694E-03   -1.5169    
   2  Prefactor     78.414        70.853        .22676E-03   -1.3935    
   3  Prefactor     .10000E-03    25.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.6746        2.8476        .11300E-03   -1.5325    
   5  norm          5.4280        19.092        .86254E-03   -1.5242    
   6  Prefactor     12.093        45.019        .11520E-03   -1.5012    
   7  Prefactor     7.3774        66.238        .14767E-03   -1.5165    
   8  norm          1.9939        1.1408        .66913E-04   -1.5426    
   9  Prefactor     5.5486        13.424        .17062E-03   -1.5237    
  10  Prefactor     .10000E-03    47.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    129.51        .71124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.5713        .13675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7956        10.812        .10362E-02   -1.5318    
  14  Prefactor     .10000E-03    6.9892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .34686        .16712        .23747E-04   -1.5590    
  16  Prefactor     .10000E-03    5.8212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3368        1.2521        .91100E-04   -1.5477    
  18  Prefactor     .10000E-03    13.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .23611        .13574        .23645E-04   -1.5611    
  22  Prefactor     .10000E-03    130.14        .41587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.110        10.232        .45811E-03   -1.4833    
  24  Prefactor     .10000E-03    10.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89756        .24504        .34102E-03   -.96546    
  26  Prefactor     .90808        .12926        .18114E-03   -.95859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86509e-10
Minuit parameter uncertainties:
  1  4.32319
  2  70.9294
  3  0.000254246
  4  2.84768
  5  19.1138
  6  45.1458
  7  44.2766
  8  1.14082
  9  13.4316
  10  0.000388883
  11  9.65265e-05
  12  6.00911e-06
  13  10.8178
  14  2.34504e-05
  15  0.167117
  16  2.92616e-06
  17  1.2521
  18  7.90237e-05
  19  2.39243e-06
  20  1.96033e-05
  21  0.13574
  22  0.000864741
  23  10.233
  24  6.26115e-05
  25  0.245347
  26  0.129304
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  3.796e+00  1.082e+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:  9.081e-01  1.293e-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:  8.976e-01  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277954/likelihoodResults_351302401_351561601_4FGL_J2222.8+1209_daily_bin432.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) = 7693.65182947
delta logL = 0.0102653524191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7693.65047211
delta logL = 0.0116227177296

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3097       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6053       1.0000          .0000       10.000    
     3 'Normalizat'    .89399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90898       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.

 FCN=   7693.650     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3021        320.21        .55631E-02    .60234E-03
   2  Index         2.6092        6.2960        .23182        .16731E-03
   3  Normalizat    .89397        .44501E-01    .77188E-01    .31495E-03
   4  Prefactor     .90902        .22973E-01    .45119E-01    .73260E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30214
  Index      = 2.60916
  Normalizat = 0.89397
  Prefactor  = 0.909023
 **********
 **   18 **HESSE 
 **********

 FCN=   7693.650     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3021        11.053        .22253E-03   -1.5345    
   2  Index         2.6092        1.4545        .12617E-01   -.49857    
   3  Normalizat    .89397        .23950        .34164E-03   -.96672    
   4  Prefactor     .90902        .12788        .18105E-03   -.95827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04952e-09
Minuit parameter uncertainties:
  1  11.0597
  2  1.48246
  3  0.23979
  4  0.127924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277954': 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) = 7693.65046719
delta logL = 0.0116276342842

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  3.302e+00  1.106e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.609e+00  1.482e+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:  9.090e-01  1.279e-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:  8.940e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 335.710 12.157

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/277954/cmap_HighResolution_351302401_351561601_4FGL_J2222.8+1209_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-28 10:24:33.361893', job_id='277954', GAL2='0.91', fit_tolerance='1e-08', EG2='0.89', EG='0.90', time_epoch_completed='1632849873.36', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.16e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='432' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:24:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 277954: <4FGL_J2222.8+1209_daily_bin432> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin432> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:10:48 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:10:49 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:49 2021
Terminated at Tue Sep 28 10:24:34 2021
Results reported at Tue Sep 28 10:24:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin432 335.71 12.1568 351302401 351561601 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 :                                   737.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

