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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin587
RA = 335.71, Dec = 12.1568
tmin = 391478401, tmax = 391737601
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='279196', job_status='RUN', time_executed='2021-09-28 10:15:37.675570', time_epoch_executed='1632849337.68' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279196

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279196/ft1_4FGL_J2222.8+1209_daily_bin587.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279196/ft2_4FGL_J2222.8+1209_daily_bin587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279196/ft1_4FGL_J2222.8+1209_daily_bin587.fits outfile=/scratch/kocevski/279196/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin587.fits ra=335.71 dec=12.1568 rad=12.0 tmin=391478401.0 tmax=391737601.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.39
user 4.17
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279196/ft2_4FGL_J2222.8+1209_daily_bin587.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/279196/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin587.fits evtable="EVENTS" outfile="/scratch/kocevski/279196/ft1_filtered_4FGL_J2222.8+1209_daily_bin587.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/279196/ft1_filtered_4FGL_J2222.8+1209_daily_bin587.fits" evtable="EVENTS" scfile=/scratch/kocevski/279196/ft2_4FGL_J2222.8+1209_daily_bin587.fits sctable="SC_DATA" outfile=/scratch/kocevski/279196/ltcube_391478401_391737601_4FGL_J2222.8+1209_daily_bin587.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/279196/ft2_4FGL_J2222.8+1209_daily_bin587.fits
.....................!
real 11.74
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279196/ft1_filtered_4FGL_J2222.8+1209_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/279196/ft2_4FGL_J2222.8+1209_daily_bin587.fits sctable="SC_DATA" expcube=/scratch/kocevski/279196/ltcube_391478401_391737601_4FGL_J2222.8+1209_daily_bin587.fits outfile=/scratch/kocevski/279196/expmap_391478401_391737601_4FGL_J2222.8+1209_daily_bin587.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/279196/ltcube_391478401_391737601_4FGL_J2222.8+1209_daily_bin587.fits
.....................!
real 192.08
user 186.49
sys 5.20

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/279196/ft1_filtered_4FGL_J2222.8+1209_daily_bin587.fits scfile=/scratch/kocevski/279196/ft2_4FGL_J2222.8+1209_daily_bin587.fits outfile=/scratch/kocevski/279196/cmap_391478401_391737601_4FGL_J2222.8+1209_daily_bin587.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279196/ft1_filtered_4FGL_J2222.8+1209_daily_bin587.fits scfile=/scratch/kocevski/279196/ft2_4FGL_J2222.8+1209_daily_bin587.fits outfile=/scratch/kocevski/279196/cmap_HighResolution_391478401_391737601_4FGL_J2222.8+1209_daily_bin587.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0664       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11393E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3193       1.0000         .10000E-03   10000.    
     5 'norm      '    32.302       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .62256       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10792E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6411       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26579       1.0000         .10000E-03   10000.    
    17 'norm      '    .11357       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .96320E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1397       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17618E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5291       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.0211       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2214       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92266       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=   8198.806     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3187 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0662        2.7233        .31447E-06   -.10433E-02
   2  Prefactor     .10025E-03    356.35        .29374E-04** at limit **
   3  Prefactor     .10001E-03    39.541       -.56262E-05** at limit **
   4  norm          2.3213        2.5833        .32205E-06   -.84788E-03
   5  norm          32.290        24.276        .30452E-06    .41926E-04
   6  Prefactor     .10000E-03    33.292        .10758E-05** at limit **
   7  Prefactor     .10001E-03    44.810        .65018E-05** at limit **
   8  norm          .62250        .95478        .22064E-06    .23665E-04
   9  Prefactor     .10000E-03    6.7484        .17505E-07** at limit **
  10  Prefactor     .10000E-03    20.809        .10546E-05** at limit **
  11  Prefactor     .10000E-03    21.001       -.10515E-05** at limit **
  12  norm          .10000E-03    1.8075        .12622E-07** at limit **
  13  Prefactor     .10000E-03    6.6665       -.10658E-07** at limit **
  14  Prefactor     .10000E-03    11.151        .79241E-07** at limit **
  15  Prefactor     2.6403        .39943        .75073E-09   -.18382E-02
  16  Prefactor     .35077        7.1254        .82262E-06   -.27775E-03
  17  norm          .11526        .85896        .16145E-06   -.65870E-03
  18  Prefactor     .10000E-03    62.968       -.48416E-06** at limit **
  19  Prefactor     .10035E-03    11.905        .25238E-07** at limit **
  20  Prefactor     .10000E-03    8.5494       -.54573E-07** at limit **
  21  Prefactor     1.1397        .23461       -.30322E-07   -.50710E-03
  22  Prefactor     .10000E-03    119.92        .12915E-05** at limit **
  23  Prefactor     5.5252        9.7842        .35642E-05   -.82326E-03
  24  Prefactor     9.0187        16.026        .11527E-05   -.24812E-03
  25  Normalizat    1.2219        .25193       -.97280E-06   -.13217E-03
  26  Prefactor     .92245        .12448       -.28112E-06   -.23735E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.06622
  Prefactor  = 0.000100248
  Prefactor  = 0.000100011
  norm       = 2.32127
  norm       = 32.29
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.622499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.64025
  Prefactor  = 0.350774
  norm       = 0.115256
  Prefactor  = 0.0001
  Prefactor  = 0.000100349
  Prefactor  = 0.0001
  Prefactor  = 1.13973
  Prefactor  = 0.000100001
  Prefactor  = 5.52523
  Prefactor  = 9.01866
  Normalizat = 1.22185
  Prefactor  = 0.922454
 **********
 **   18 **HESSE 
 **********

 FCN=   8198.806     FROM HESSE     STATUS=OK           468 CALLS     3655 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0662        2.7455        .53227E-03   -1.5258    
   2  Prefactor     .10025E-03    389.82        .20674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    40.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3213        2.5586        .14381E-03   -1.5403    
   5  norm          32.290        24.252        .70502E-04   -1.4571    
   6  Prefactor     .10000E-03    33.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    46.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .62250        .84155        .10456E-02   -1.5550    
   9  Prefactor     .10000E-03    6.7531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8124        .11887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6403        .40906        .20044E-04   -1.5383    
  16  Prefactor     .35077        82.669        .44668E-02   -1.5590    
  17  norm          .11526        1.8907        .16064E-02   -1.5640    
  18  Prefactor     .10000E-03    63.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10035E-03    14.455        .84723E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1397        .23553        .18528E-04   -1.5494    
  22  Prefactor     .10000E-03    120.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.5252        10.727        .85433E-03   -1.5238    
  24  Prefactor     9.0187        16.125        .66722E-03   -1.5107    
  25  Normalizat    1.2219        .30159        .37124E-03   -.85930    
  26  Prefactor     .92245        .14957        .21552E-03   -.95361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58027e-08
Minuit parameter uncertainties:
  1  2.74552
  2  0.0197811
  3  0.00132024
  4  2.55869
  5  24.2594
  6  0.00021943
  7  0.00160181
  8  0.841569
  9  1.91653e-06
  10  0.000175247
  11  0.000172317
  12  7.99234e-07
  13  9.28438e-08
  14  1.34423e-05
  15  0.40906
  16  10.7835
  17  0.93325
  18  0.000114827
  19  0.00449591
  20  5.07988e-06
  21  0.235529
  22  0.000531109
  23  10.7308
  24  16.1328
  25  0.302025
  26  0.149634
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  9.284e-08  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.225e-01  1.496e-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.222e+00  3.020e-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: 9.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279196/likelihoodResults_391478401_391737601_4FGL_J2222.8+1209_daily_bin587.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) = 8198.80688365
delta logL = -0.000712805007424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8198.80617082
delta logL = 2.17969500227e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3949       1.0000          .0000       10.000    
     3 'Normalizat'    1.2219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92246       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=   8198.806     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.458        .18142E-02** at limit **
   2  Index         2.3828        5.6359        .50000        .15117E-04
   3  Normalizat    1.2219        .28186        .37124E-03   -.50099E-04
   4  Prefactor     .92245        .14560        .21552E-03   -.28696E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.38282
  Normalizat = 1.22185
  Prefactor  = 0.922454
 **********
 **   18 **HESSE 
 **********

 FCN=   8198.806     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9503        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3828        6.1914        .50000       -.55088    
   3  Normalizat    1.2219        .28217        .14850E-04   -.85930    
   4  Prefactor     .92245        .14577        .86208E-05   -.95361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64624e-10
Minuit parameter uncertainties:
  1  0.000207907
  2  4.3265
  3  0.282527
  4  0.145829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279196': 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) = 8198.80617076
delta logL = 8.73715180205e-08

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.079e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.383e+00  4.327e+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.225e-01  1.458e-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.222e+00  2.825e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/279196/cmap_HighResolution_391478401_391737601_4FGL_J2222.8+1209_daily_bin587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', job_status='DONE', photon_flux_upper_limit='9.53e-08', time_completed='2021-09-28 10:29:30.789389', job_id='279196', GAL2='0.92', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632850170.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='8.74e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='587' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:29:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 279196: <4FGL_J2222.8+1209_daily_bin587> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin587 335.71 12.1568 391478401 391737601 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 :                                   831.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

