/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 144 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 = 7423
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2222.8+1209_daily_bin374
RA = 335.71, Dec = 12.1568
tmin = 336268801, tmax = 336528001
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='277870', job_status='RUN', time_executed='2021-09-28 10:13:17.317813', time_epoch_executed='1632849197.32' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277870

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277870/ft1_4FGL_J2222.8+1209_daily_bin374.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277870/ft2_4FGL_J2222.8+1209_daily_bin374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277870/ft1_4FGL_J2222.8+1209_daily_bin374.fits outfile=/scratch/kocevski/277870/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin374.fits ra=335.71 dec=12.1568 rad=12.0 tmin=336268801.0 tmax=336528001.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 7.01
user 6.73
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277870/ft1_filtered_4FGL_J2222.8+1209_daily_bin374.fits evtable="EVENTS" scfile=/scratch/kocevski/277870/ft2_4FGL_J2222.8+1209_daily_bin374.fits sctable="SC_DATA" expcube=/scratch/kocevski/277870/ltcube_336268801_336528001_4FGL_J2222.8+1209_daily_bin374.fits outfile=/scratch/kocevski/277870/expmap_336268801_336528001_4FGL_J2222.8+1209_daily_bin374.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/277870/ltcube_336268801_336528001_4FGL_J2222.8+1209_daily_bin374.fits
.....................!
real 195.56
user 186.61
sys 5.40

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/277870/ft1_filtered_4FGL_J2222.8+1209_daily_bin374.fits scfile=/scratch/kocevski/277870/ft2_4FGL_J2222.8+1209_daily_bin374.fits outfile=/scratch/kocevski/277870/cmap_336268801_336528001_4FGL_J2222.8+1209_daily_bin374.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.61
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277870/ft1_filtered_4FGL_J2222.8+1209_daily_bin374.fits scfile=/scratch/kocevski/277870/ft2_4FGL_J2222.8+1209_daily_bin374.fits outfile=/scratch/kocevski/277870/cmap_HighResolution_336268801_336528001_4FGL_J2222.8+1209_daily_bin374.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4301       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47942E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11509E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.000       1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.136       1.0000         .10000E-03   10000.    
     8 'norm      '    4.4528       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.234       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.381       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21343E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.9334       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1596       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5671       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3467       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.128       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.960       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .97429E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8256       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0420       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83595       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=   6170.102     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3113 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4297        3.6208       -.11550E-07   -.59543E-04
   2  Prefactor     .10000E-03    35.574        .11235E-06** at limit **
   3  Prefactor     .10010E-03    303.53       -.31086E-04** at limit **
   4  norm          .10000E-03    1.0203        .83133E-08** at limit **
   5  norm          .10000E-03    48.199        .13932E-06** at limit **
   6  Prefactor     13.007        32.826        .11354E-05    .25907E-04
   7  Prefactor     41.139        39.632        .77422E-06    .43607E-04
   8  norm          4.4527        1.5784       -.72164E-08   -.42099E-04
   9  Prefactor     39.244        30.047        .58055E-06    .72864E-04
  10  Prefactor     48.382        32.351       -.26436E-06   -.14873E-04
  11  Prefactor     .10000E-03    172.56        .37266E-05** at limit **
  12  norm          4.9333        4.6280        .23945E-06   -.67105E-03
  13  Prefactor     6.1588        14.298        .14255E-05   -.40463E-03
  14  Prefactor     7.5689        12.677       -.85194E-07   -.37131E-04
  15  Prefactor     1.3468        .33174       -.12748E-07   -.14088E-03
  16  Prefactor     .10000E-03    4.7736       -.35930E-09** at limit **
  17  norm          .10000E-03    .82537        .82897E-08** at limit **
  18  Prefactor     10.128        20.169        .13677E-06    .37404E-07
  19  Prefactor     19.959        12.299       -.32155E-07   -.19500E-04
  20  Prefactor     .10000E-03    7.4434        .17891E-07** at limit **
  21  Prefactor     .97401E-01    .10649        .68093E-08   -.38102E-03
  22  Prefactor     .10000E-03    20.991        .48933E-07** at limit **
  23  Prefactor     .10000E-03    8.3081        .16636E-07** at limit **
  24  Prefactor     5.8250        13.904        .15639E-05   -.40946E-03
  25  Normalizat    1.0420        .26276       -.35871E-06    .32742E-04
  26  Prefactor     .83603        .13087       -.15880E-06    .52433E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.42973
  Prefactor  = 0.0001
  Prefactor  = 0.000100097
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.0075
  Prefactor  = 41.1393
  norm       = 4.45271
  Prefactor  = 39.2437
  Prefactor  = 48.3822
  Prefactor  = 0.000100001
  norm       = 4.93329
  Prefactor  = 6.1588
  Prefactor  = 7.5689
  Prefactor  = 1.34675
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1279
  Prefactor  = 19.9595
  Prefactor  = 0.0001
  Prefactor  = 0.097401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.82498
  Normalizat = 1.04197
  Prefactor  = 0.836027
 **********
 **   18 **HESSE 
 **********

 FCN=   6170.102     FROM HESSE     STATUS=OK           458 CALLS     3571 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4297        3.6196        .10472E-03   -1.5201    
   2  Prefactor     .10000E-03    35.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10010E-03    326.16        .21178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.0294        .77447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    48.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.007        32.779        .11109E-03   -1.4986    
   7  Prefactor     41.139        39.649        .62500E-04   -1.4424    
   8  norm          4.4527        1.5777        .55615E-04   -1.5286    
   9  Prefactor     39.244        30.119        .63991E-04   -1.4454    
  10  Prefactor     48.382        32.395        .57650E-04   -1.4316    
  11  Prefactor     .10000E-03    178.14        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.9333        4.7917        .81860E-03   -1.5264    
  13  Prefactor     6.1588        16.365        .80879E-03   -1.5212    
  14  Prefactor     7.5689        12.714        .14579E-03   -1.5158    
  15  Prefactor     1.3468        .33438        .20477E-04   -1.5476    
  16  Prefactor     .10000E-03    4.7886        .16759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .84961        .13922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.128        20.143        .12591E-03   -1.5071    
  19  Prefactor     19.959        12.290        .89651E-04   -1.4814    
  20  Prefactor     .10000E-03    7.4480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .97401E-01    .99799E-01    .25593E-03   -1.5646    
  22  Prefactor     .10000E-03    21.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.6716        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.8250        16.087        .83197E-03   -1.5225    
  25  Normalizat    1.0420        .31562        .34928E-03   -.91637    
  26  Prefactor     .83603        .15758        .19984E-03   -.98414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26843e-09
Minuit parameter uncertainties:
  1  3.61971
  2  1.55381e-05
  3  0.011325
  4  5.8958e-07
  5  8.62433e-05
  6  32.8246
  7  39.6744
  8  1.57773
  9  30.1306
  10  32.4072
  11  0.000808903
  12  4.79208
  13  16.377
  14  12.7181
  15  0.334381
  16  2.04216e-07
  17  4.21658e-07
  18  20.1565
  19  12.2916
  20  1.13724e-06
  21  0.0997993
  22  5.11846e-06
  23  1.38769e-06
  24  16.0994
  25  0.316185
  26  0.157665
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  6.159e+00  1.638e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.407e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.360e-01  1.577e-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.042e+00  3.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/277870/likelihoodResults_336268801_336528001_4FGL_J2222.8+1209_daily_bin374.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) = 6170.03521411
delta logL = 0.0672124100693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6170.02409145
delta logL = 0.078335074536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3916       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9231       1.0000          .0000       10.000    
     3 'Normalizat'    1.0221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84188       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=   6170.024     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      220 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3867        289.93        .48046E-02    .25316E-03
   2  Index         2.9236        6.4616        .16430        .10366E-03
   3  Normalizat    1.0219        .65952E-01    .79557E-01    .36119E-05
   4  Prefactor     .84193        .33046E-01    .44260E-01   -.16479E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.38674
  Index      = 2.92355
  Normalizat = 1.02195
  Prefactor  = 0.84193
 **********
 **   18 **HESSE 
 **********

 FCN=   6170.024     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3867        16.157        .19218E-03   -1.5289    
   2  Index         2.9236        1.7023        .94633E-02   -.42826    
   3  Normalizat    1.0219        .30642        .35215E-03   -.92299    
   4  Prefactor     .84193        .15739        .19916E-03   -.98201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05323e-10
Minuit parameter uncertainties:
  1  16.1726
  2  1.74474
  3  0.30695
  4  0.157478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277870': 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) = 6170.0240911
delta logL = 0.0783354180803

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  4.387e+00  1.617e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.924e+00  1.745e+00  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.419e-01  1.575e-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.022e+00  3.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/277870/cmap_HighResolution_336268801_336528001_4FGL_J2222.8+1209_daily_bin374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-09-28 10:25:08.728132', job_id='277870', GAL2='0.84', fit_tolerance='1e-08', EG2='1.02', EG='1.04', time_epoch_completed='1632849908.73', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.83e-02', ts2='0.34', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='374' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:25:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 277870: <4FGL_J2222.8+1209_daily_bin374> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin374> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:10:41 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:10:42 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:42 2021
Terminated at Tue Sep 28 10:25:09 2021
Results reported at Tue Sep 28 10:25:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin374 335.71 12.1568 336268801 336528001 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 :                                   705.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            868 sec.

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

