/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 126 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 = 7403
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin121
RA = 335.71, Dec = 12.1568
tmin = 270691201, tmax = 270950401
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='276577', job_status='RUN', time_executed='2021-09-28 10:08:24.962545', time_epoch_executed='1632848904.96' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276577/ft1_4FGL_J2222.8+1209_daily_bin121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276577/ft2_4FGL_J2222.8+1209_daily_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276577/ft1_4FGL_J2222.8+1209_daily_bin121.fits outfile=/scratch/kocevski/276577/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin121.fits ra=335.71 dec=12.1568 rad=12.0 tmin=270691201.0 tmax=270950401.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 1.62
user 1.43
sys 0.19

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276577/ft1_filtered_4FGL_J2222.8+1209_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/276577/ft2_4FGL_J2222.8+1209_daily_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/276577/ltcube_270691201_270950401_4FGL_J2222.8+1209_daily_bin121.fits outfile=/scratch/kocevski/276577/expmap_270691201_270950401_4FGL_J2222.8+1209_daily_bin121.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/276577/ltcube_270691201_270950401_4FGL_J2222.8+1209_daily_bin121.fits
.....................!
real 190.15
user 185.31
sys 4.53

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/276577/ft1_filtered_4FGL_J2222.8+1209_daily_bin121.fits scfile=/scratch/kocevski/276577/ft2_4FGL_J2222.8+1209_daily_bin121.fits outfile=/scratch/kocevski/276577/cmap_270691201_270950401_4FGL_J2222.8+1209_daily_bin121.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276577/ft1_filtered_4FGL_J2222.8+1209_daily_bin121.fits scfile=/scratch/kocevski/276577/ft2_4FGL_J2222.8+1209_daily_bin121.fits outfile=/scratch/kocevski/276577/cmap_HighResolution_270691201_270950401_4FGL_J2222.8+1209_daily_bin121.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0334       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.375       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.8345       1.0000         .10000E-03   10000.    
     5 'norm      '    13.704       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.462       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.9568       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4039       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .84703       1.0000         .10000E-03   10000.    
    12 'norm      '    .68529       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0882       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13218       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.882       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8659       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2984       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.6875       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79713       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0196       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=   8345.151     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3215 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0322        3.2300        .54217E-06    .20054E-04
   2  Prefactor     32.363        80.181       -.17901E-04    .78395E-06
   3  Prefactor     .10000E-03    53.588        .30366E-05** at limit **
   4  norm          6.8336        3.0765        .53211E-06   -.17401E-03
   5  norm          13.698        17.128       -.72539E-06   -.83334E-05
   6  Prefactor     37.448        32.302       -.68267E-05    .76321E-05
   7  Prefactor     .10000E-03    34.927       -.13547E-04** at limit **
   8  norm          8.9559        1.7004        .88441E-07    .84538E-04
   9  Prefactor     2.4264        41.905        .12010E-04    .21780E-04
  10  Prefactor     .10000E-03    6.6062        .57416E-06** at limit **
  11  Prefactor     .42486        22.822       -.14986E-05   -.59325E-05
  12  norm          .68483        4.4463        .20968E-06   -.62216E-04
  13  Prefactor     1.0868        1.5630        .20998E-07   -.86582E-03
  14  Prefactor     .10000E-03    6.6537       -.74962E-06** at limit **
  15  Prefactor     .13211        .16999        .32766E-08    .40213E-04
  16  Prefactor     .10000E-03    5.6073        .12295E-06** at limit **
  17  norm          .10000E-03    .50319        .16111E-07** at limit **
  18  Prefactor     24.881        23.842       -.12955E-05   -.64970E-05
  19  Prefactor     5.8541        12.870       -.89290E-07   -.39430E-05
  20  Prefactor     .10000E-03    5.0832       -.17816E-07** at limit **
  21  Prefactor     2.2983        .27016       -.36228E-07    .16470E-03
  22  Prefactor     .10000E-03    31.752        .10378E-04** at limit **
  23  Prefactor     8.6857        8.5962        .52530E-05    .79287E-05
  24  Prefactor     .10000E-03    8.7177       -.11719E-06** at limit **
  25  Normalizat    .79755        .24195       -.73339E-06    .41923E-04
  26  Prefactor     1.0196        .12391       -.41549E-07    .64558E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.03215
  Prefactor  = 32.3626
  Prefactor  = 0.0001
  norm       = 6.83361
  norm       = 13.6978
  Prefactor  = 37.4477
  Prefactor  = 0.0001
  norm       = 8.95587
  Prefactor  = 2.42636
  Prefactor  = 0.0001
  Prefactor  = 0.424865
  norm       = 0.684827
  Prefactor  = 1.08677
  Prefactor  = 0.0001
  Prefactor  = 0.132115
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.8812
  Prefactor  = 5.85405
  Prefactor  = 0.0001
  Prefactor  = 2.29825
  Prefactor  = 0.0001
  Prefactor  = 8.68573
  Prefactor  = 0.0001
  Normalizat = 0.797553
  Prefactor  = 1.01961
 **********
 **   18 **HESSE 
 **********

 FCN=   8345.151     FROM HESSE     STATUS=OK           470 CALLS     3685 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0322        3.2259        .11023E-03   -1.5217    
   2  Prefactor     32.363        80.318        .70423E-04   -1.4570    
   3  Prefactor     .10000E-03    53.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.8336        3.0799        .48121E-03   -1.5185    
   5  norm          13.698        17.114        .10820E-03   -1.4968    
   6  Prefactor     37.448        32.278        .65481E-04   -1.4483    
   7  Prefactor     .10000E-03    34.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.9559        1.7000        .49179E-04   -1.5109    
   9  Prefactor     2.4264        41.765        .26408E-03   -1.5396    
  10  Prefactor     .10000E-03    6.6081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .42486        30.413        .12086       -1.5578    
  12  norm          .68483        4.4933        .37058E-03   -1.5542    
  13  Prefactor     1.0868        13.510        .22966E-02   -1.5499    
  14  Prefactor     .10000E-03    6.6990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13211        .16171        .39682E-03   -1.5635    
  16  Prefactor     .10000E-03    5.6403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .50539        .63241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.881        23.876        .80305E-04   -1.4710    
  19  Prefactor     5.8541        12.864        .16581E-03   -1.5224    
  20  Prefactor     .10000E-03    5.0841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2983        .27141        .15120E-04   -1.5405    
  22  Prefactor     .10000E-03    32.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.6857        8.5974        .13600E-03   -1.5118    
  24  Prefactor     .10000E-03    8.8133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .79755        .27594        .40902E-03   -1.0016    
  26  Prefactor     1.0196        .14395        .19903E-03   -.92079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21169e-09
Minuit parameter uncertainties:
  1  3.22599
  2  80.588
  3  4.28298e-05
  4  3.08001
  5  17.1203
  6  32.293
  7  4.8488e-05
  8  1.69999
  9  20.1492
  10  6.60837e-06
  11  7.19219
  12  3.50849
  13  7.66523
  14  8.19679e-06
  15  0.161708
  16  2.14207e-06
  17  3.92033e-07
  18  23.8848
  19  12.8702
  20  2.92696e-06
  21  0.271408
  22  5.37778e-05
  23  8.59867
  24  2.23491e-05
  25  0.276423
  26  0.144001
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.087e+00  7.665e+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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.020e+00  1.440e-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:  7.976e-01  2.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/276577/likelihoodResults_270691201_270950401_4FGL_J2222.8+1209_daily_bin121.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) = 8345.13324785
delta logL = 0.0173718706501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8345.11690226
delta logL = 0.0337174582037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9226       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9618       1.0000          .0000       10.000    
     3 'Normalizat'    .79998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0177       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=   8345.117     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      268 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9207        10.942        .23763E-03    .15874E-03
   2  Index         1.9611        1.3894        .98834E-02    .71350E-04
   3  Normalizat    .80001        .25883        .40844E-03   -.37315E-03
   4  Prefactor     1.0176        .14230        .19919E-03   -.93202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92071
  Index      = 1.96107
  Normalizat = 0.800005
  Prefactor  = 1.01761
 **********
 **   18 **HESSE 
 **********

 FCN=   8345.117     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9207        10.825        .95052E-05   -1.5366    
   2  Index         1.9611        1.3756        .39534E-03   -.65327    
   3  Normalizat    .80001        .25898        .16337E-04   -1.0007    
   4  Prefactor     1.0176        .14239        .39838E-04   -.92145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16066e-09
Minuit parameter uncertainties:
  1  10.8327
  2  1.40473
  3  0.259383
  4  0.142443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276577': 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) = 8345.11690176
delta logL = 0.0337179628714

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.921e+00  1.083e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.961e+00  1.405e+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:  1.018e+00  1.424e-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.000e-01  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/276577/cmap_HighResolution_270691201_270950401_4FGL_J2222.8+1209_daily_bin121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', job_status='DONE', photon_flux_upper_limit='8.50e-08', time_completed='2021-09-28 10:22:37.330107', job_id='276577', GAL2='1.02', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632849757.33', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.37e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='121' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:22:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 276577: <4FGL_J2222.8+1209_daily_bin121> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin121> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:06:08 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:06:09 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:06:09 2021
Terminated at Tue Sep 28 10:22:38 2021
Results reported at Tue Sep 28 10:22:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin121 335.71 12.1568 270691201 270950401 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 :                                   851.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

