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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin656
RA = 335.71, Dec = 12.1568
tmin = 409363201, tmax = 409622401
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='279293', job_status='RUN', time_executed='2021-09-28 10:17:42.563577', time_epoch_executed='1632849462.56' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279293

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279293/ft1_4FGL_J2222.8+1209_daily_bin656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279293/ft2_4FGL_J2222.8+1209_daily_bin656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279293/ft1_4FGL_J2222.8+1209_daily_bin656.fits outfile=/scratch/kocevski/279293/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin656.fits ra=335.71 dec=12.1568 rad=12.0 tmin=409363201.0 tmax=409622401.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 5.51
user 5.25
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279293/ft1_filtered_4FGL_J2222.8+1209_daily_bin656.fits" evtable="EVENTS" scfile=/scratch/kocevski/279293/ft2_4FGL_J2222.8+1209_daily_bin656.fits sctable="SC_DATA" outfile=/scratch/kocevski/279293/ltcube_409363201_409622401_4FGL_J2222.8+1209_daily_bin656.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/279293/ft2_4FGL_J2222.8+1209_daily_bin656.fits
.....................!
real 14.12
user 13.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279293/ft1_filtered_4FGL_J2222.8+1209_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/279293/ft2_4FGL_J2222.8+1209_daily_bin656.fits sctable="SC_DATA" expcube=/scratch/kocevski/279293/ltcube_409363201_409622401_4FGL_J2222.8+1209_daily_bin656.fits outfile=/scratch/kocevski/279293/expmap_409363201_409622401_4FGL_J2222.8+1209_daily_bin656.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/279293/ltcube_409363201_409622401_4FGL_J2222.8+1209_daily_bin656.fits
.....................!
real 190.85
user 185.58
sys 4.97

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/279293/ft1_filtered_4FGL_J2222.8+1209_daily_bin656.fits scfile=/scratch/kocevski/279293/ft2_4FGL_J2222.8+1209_daily_bin656.fits outfile=/scratch/kocevski/279293/cmap_409363201_409622401_4FGL_J2222.8+1209_daily_bin656.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279293/ft1_filtered_4FGL_J2222.8+1209_daily_bin656.fits scfile=/scratch/kocevski/279293/ft2_4FGL_J2222.8+1209_daily_bin656.fits outfile=/scratch/kocevski/279293/cmap_HighResolution_409363201_409622401_4FGL_J2222.8+1209_daily_bin656.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7864       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    114.73       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    104.00       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8039       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.300       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.323       1.0000         .10000E-03   10000.    
    12 'norm      '    8.6814       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.908       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1166       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0880       1.0000         .10000E-03   10000.    
    17 'norm      '    .36331       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.176       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0920       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8532       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.7387       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .60287       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=   4169.645     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3147 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7850        4.4107        .18173E-07   -.34740E-04
   2  Prefactor     .10000E-03    72.667       -.10400E-05** at limit **
   3  Prefactor     114.70        117.11       -.34079E-05   -.12305E-03
   4  norm          .10000E-03    2.4311        .10070E-06** at limit **
   5  norm          104.00        47.804        .45899E-06   -.27095E-04
   6  Prefactor     .10000E-03    49.405        .20039E-05** at limit **
   7  Prefactor     .10000E-03    26.629       -.52605E-06** at limit **
   8  norm          1.8037        1.7054        .25910E-07   -.60445E-04
   9  Prefactor     .10000E-03    13.363        .71834E-06** at limit **
  10  Prefactor     51.301        47.493        .31784E-06    .17406E-04
  11  Prefactor     22.285        52.430       -.86694E-05   -.27015E-03
  12  norm          8.6812        7.3823       -.41674E-07    .78164E-05
  13  Prefactor     .10000E-03    24.886        .20107E-05** at limit **
  14  Prefactor     16.905        23.449       -.62347E-06   -.91335E-05
  15  Prefactor     2.1167        .54125       -.14936E-06    .28026E-03
  16  Prefactor     3.0875        25.165        .13874E-04   -.23712E-03
  17  norm          .36410        3.1154        .24526E-06   -.12683E-03
  18  Prefactor     .10000E-03    11.420        .26695E-06** at limit **
  19  Prefactor     .10000E-03    12.812       -.11800E-05** at limit **
  20  Prefactor     15.172        24.256       -.31438E-06   -.28117E-04
  21  Prefactor     1.0920        .30457       -.29434E-07    .10621E-03
  22  Prefactor     .10000E-03    27.456       -.19658E-05** at limit **
  23  Prefactor     1.8489        22.183        .13074E-05   -.29813E-04
  24  Prefactor     .10000E-03    7.9668        .89474E-07** at limit **
  25  Normalizat    1.7387        .38539        .32770E-05   -.12827E-03
  26  Prefactor     .60287        .17475       -.24434E-05    .35322E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.785
  Prefactor  = 0.000100001
  Prefactor  = 114.704
  norm       = 0.0001
  norm       = 103.996
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.80371
  Prefactor  = 0.000100001
  Prefactor  = 51.3012
  Prefactor  = 22.285
  norm       = 8.68119
  Prefactor  = 0.000100002
  Prefactor  = 16.905
  Prefactor  = 2.11667
  Prefactor  = 3.08751
  norm       = 0.364099
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.172
  Prefactor  = 1.09203
  Prefactor  = 0.000100002
  Prefactor  = 1.84895
  Prefactor  = 0.0001
  Normalizat = 1.73867
  Prefactor  = 0.602872
 **********
 **   18 **HESSE 
 **********

 FCN=   4169.645     FROM HESSE     STATUS=OK           456 CALLS     3603 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7850        4.4113        .92211E-04   -1.5115    
   2  Prefactor     .10000E-03    72.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     114.70        118.17        .18780E-03   -1.3562    
   4  norm          .10000E-03    2.4677        .98171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          104.00        47.862        .39430E-04   -1.3665    
   6  Prefactor     .10000E-03    49.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8037        1.6943        .77713E-04   -1.5439    
   9  Prefactor     .10000E-03    13.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     51.301        47.659        .55994E-04   -1.4274    
  11  Prefactor     22.285        55.393        .84777E-04   -1.4763    
  12  norm          8.6812        7.3836        .13604E-03   -1.5119    
  13  Prefactor     .10000E-03    25.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.905        23.681        .97402E-04   -1.4885    
  15  Prefactor     2.1167        .54666        .21590E-04   -1.5417    
  16  Prefactor     3.0875        27.002        .11540E-02   -1.5357    
  17  norm          .36410        6.5288        .21540E-02   -1.5587    
  18  Prefactor     .10000E-03    11.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.172        24.272        .10281E-03   -1.4929    
  21  Prefactor     1.0920        .30601        .17538E-04   -1.5499    
  22  Prefactor     .10000E-03    27.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.8489        22.198        .30622E-03   -1.5436    
  24  Prefactor     .10000E-03    7.9688        .17802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.7387        .45541        .33252E-03   -.71275    
  26  Prefactor     .60287        .20371        .25894E-03   -1.0747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12573e-08
Minuit parameter uncertainties:
  1  4.41145
  2  0.000401903
  3  118.418
  4  2.38163e-06
  5  47.8798
  6  0.000526495
  7  0.000123023
  8  1.69431
  9  0.00017709
  10  47.6946
  11  55.5211
  12  7.38435
  13  0.000401139
  14  23.6941
  15  0.546662
  16  18.272
  17  3.08355
  18  3.62556e-05
  19  0.000182889
  20  24.2879
  21  0.30601
  22  0.000448602
  23  12.8184
  24  5.53505e-06
  25  0.456519
  26  0.203963
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  4.011e-04  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:  6.029e-01  2.040e-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.739e+00  4.565e-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: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279293/likelihoodResults_409363201_409622401_4FGL_J2222.8+1209_daily_bin656.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) = 4169.64481733
delta logL = -0.000188368112504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4169.644629
delta logL = -4.08126652474e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4913       1.0000          .0000       10.000    
     3 'Normalizat'    1.7387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60288       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=   4169.645     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      269 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6933.6        .18142E-02** at limit **
   2  Index         2.4843        6.2341        .50000        .23708E-05
   3  Normalizat    1.7387        .17421        .33252E-03   -.21928E-03
   4  Prefactor     .60287        .85513E-01    .25894E-03   -.42411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4843
  Normalizat = 1.73867
  Prefactor  = 0.602873
 **********
 **   18 **HESSE 
 **********

 FCN=   4169.645     FROM HESSE     STATUS=OK            29 CALLS      298 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4843        6.2408        .50000       -.52723    
   3  Normalizat    1.7387        .40063        .66503E-04   -.71275    
   4  Prefactor     .60287        .19685        .10358E-04   -1.0747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30329e-10
Minuit parameter uncertainties:
  1  0.00012558
  2  4.6525
  3  0.401381
  4  0.197072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279293': 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) = 4169.644629
delta logL = -3.61123966286e-08

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.256e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.484e+00  4.652e+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:  6.029e-01  1.971e-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.739e+00  4.014e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/279293/cmap_HighResolution_409363201_409622401_4FGL_J2222.8+1209_daily_bin656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.67e-07', time_completed='2021-09-28 10:27:38.137243', job_id='279293', GAL2='0.60', fit_tolerance='1e-08', EG2='1.74', EG='1.74', time_epoch_completed='1632850058.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='-3.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='656' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:27:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 279293: <4FGL_J2222.8+1209_daily_bin656> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin656> 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) <bullet0058>, 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:27:38 2021
Results reported at Tue Sep 28 10:27:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin656 335.71 12.1568 409363201 409622401 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 :                                   595.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            722 sec.

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

