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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin526
RA = 335.71, Dec = 12.1568
tmin = 375667201, tmax = 375926401
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='279097', job_status='RUN', time_executed='2021-09-28 10:15:39.697169', time_epoch_executed='1632849339.7' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279097/ft1_4FGL_J2222.8+1209_daily_bin526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279097/ft2_4FGL_J2222.8+1209_daily_bin526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279097/ft1_4FGL_J2222.8+1209_daily_bin526.fits outfile=/scratch/kocevski/279097/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin526.fits ra=335.71 dec=12.1568 rad=12.0 tmin=375667201.0 tmax=375926401.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.81
user 4.54
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279097/ft1_filtered_4FGL_J2222.8+1209_daily_bin526.fits evtable="EVENTS" scfile=/scratch/kocevski/279097/ft2_4FGL_J2222.8+1209_daily_bin526.fits sctable="SC_DATA" expcube=/scratch/kocevski/279097/ltcube_375667201_375926401_4FGL_J2222.8+1209_daily_bin526.fits outfile=/scratch/kocevski/279097/expmap_375667201_375926401_4FGL_J2222.8+1209_daily_bin526.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/279097/ltcube_375667201_375926401_4FGL_J2222.8+1209_daily_bin526.fits
.....................!
real 190.06
user 184.77
sys 4.98

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/279097/ft1_filtered_4FGL_J2222.8+1209_daily_bin526.fits scfile=/scratch/kocevski/279097/ft2_4FGL_J2222.8+1209_daily_bin526.fits outfile=/scratch/kocevski/279097/cmap_375667201_375926401_4FGL_J2222.8+1209_daily_bin526.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279097/ft1_filtered_4FGL_J2222.8+1209_daily_bin526.fits scfile=/scratch/kocevski/279097/ft2_4FGL_J2222.8+1209_daily_bin526.fits outfile=/scratch/kocevski/279097/cmap_HighResolution_375667201_375926401_4FGL_J2222.8+1209_daily_bin526.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2790       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11175E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .30704       1.0000         .10000E-03   10000.    
     5 'norm      '    16.168       1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.435       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11285E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4254       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23513E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2361       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9868       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.846       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8900       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.186       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9361       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .54316       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1454       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20037E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1581       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88629       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=   7219.280     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3199 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2785        2.9676       -.24907E-06   -.28220E-03
   2  Prefactor     .10000E-03    83.225       -.64368E-05** at limit **
   3  Prefactor     .10000E-03    29.771       -.11621E-05** at limit **
   4  norm          .30289        1.3466       -.11314E-06   -.35411E-03
   5  norm          16.158        19.830        .81408E-06   -.33138E-05
   6  Prefactor     50.449        30.084        .50549E-05   -.23983E-04
   7  Prefactor     .10000E-03    65.688        .21108E-04** at limit **
   8  norm          .10000E-03    .27641       -.95654E-08** at limit **
   9  Prefactor     .10000E-03    77.907        .26898E-05** at limit **
  10  Prefactor     .10000E-03    14.688       -.10504E-04** at limit **
  11  Prefactor     .10000E-03    12.502       -.13730E-05** at limit **
  12  norm          1.4250        3.4373       -.74861E-06   -.95075E-03
  13  Prefactor     .10025E-03    10.106        .19355E-05** at limit **
  14  Prefactor     6.2339        7.4433       -.43512E-06   -.93581E-04
  15  Prefactor     1.9867        .34303       -.26523E-07   -.42578E-02
  16  Prefactor     12.847        10.760        .22183E-07   -.67614E-04
  17  norm          2.8902        1.7871        .47979E-07    .64027E-04
  18  Prefactor     .10000E-03    13.955        .10037E-04** at limit **
  19  Prefactor     13.183        11.584        .38457E-06   -.58616E-04
  20  Prefactor     4.0032        54.214        .72942E-04   -.39322E-04
  21  Prefactor     .54317        .19457       -.48442E-06   -.45865E-02
  22  Prefactor     2.1290        207.32       -.55890E-04   -.46965E-05
  23  Prefactor     .10023E-03    5.1794        .13256E-05** at limit **
  24  Prefactor     .10000E-03    44.301       -.15742E-04** at limit **
  25  Normalizat    1.1582        .24159       -.98309E-06   -.26154E-03
  26  Prefactor     .88625        .12116       -.90195E-06   -.33469E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.27851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.302885
  norm       = 16.1575
  Prefactor  = 50.4487
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.42501
  Prefactor  = 0.000100247
  Prefactor  = 6.23387
  Prefactor  = 1.98668
  Prefactor  = 12.8473
  norm       = 2.89019
  Prefactor  = 0.0001
  Prefactor  = 13.1831
  Prefactor  = 4.00322
  Prefactor  = 0.543174
  Prefactor  = 2.12904
  Prefactor  = 0.00010023
  Prefactor  = 0.0001
  Normalizat = 1.15817
  Prefactor  = 0.886252
 **********
 **   18 **HESSE 
 **********

 FCN=   7219.280     FROM HESSE     STATUS=OK           466 CALLS     3665 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2785        2.9651        .10322E-03   -1.5248    
   2  Prefactor     .10000E-03    83.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .30289        5.3179        .18141E-02   -1.5598    
   5  norm          16.158        19.800        .99607E-04   -1.4904    
   6  Prefactor     50.449        30.069        .56469E-04   -1.4286    
   7  Prefactor     .10000E-03    66.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .34517        .86825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    80.166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4250        3.4112        .23683E-03   -1.5469    
  13  Prefactor     .10025E-03    73.820        .50843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2339        7.4474        .16075E-03   -1.5209    
  15  Prefactor     1.9867        .33781        .18896E-04   -1.5426    
  16  Prefactor     12.847        10.776        .11176E-03   -1.4991    
  17  norm          2.8902        1.7881        .85637E-04   -1.5368    
  18  Prefactor     .10000E-03    13.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.183        11.574        .11031E-03   -1.4982    
  20  Prefactor     4.0032        53.544        .20333E-03   -1.5308    
  21  Prefactor     .54317        .19312        .19705E-04   -1.5561    
  22  Prefactor     2.1290        210.68        .28135E-03   -1.5416    
  23  Prefactor     .10023E-03    24.613        .36995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    45.668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1582        .28217        .34170E-03   -.87905    
  26  Prefactor     .88625        .14286        .20435E-03   -.96623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3169e-08
Minuit parameter uncertainties:
  1  2.96518
  2  8.15513e-05
  3  9.40239e-06
  4  2.53813
  5  19.8078
  6  30.0777
  7  0.000122658
  8  1.13925e-06
  9  0.000271716
  10  1.68854e-05
  11  1.2456e-05
  12  3.41169
  13  0.00855904
  14  7.44846
  15  0.337815
  16  10.7777
  17  1.78814
  18  5.90418e-05
  19  11.5757
  20  29.3129
  21  0.193117
  22  42.5117
  23  0.00476342
  24  0.000153838
  25  0.282539
  26  0.142923
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.002e-04  8.559e-03  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.863e-01  1.429e-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.158e+00  2.825e-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.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279097/likelihoodResults_375667201_375926401_4FGL_J2222.8+1209_daily_bin526.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) = 7219.2802546
delta logL = -6.29063761153e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7219.28025443
delta logL = -6.27417521173e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95933E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4070       1.0000          .0000       10.000    
     3 'Normalizat'    1.1580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88632       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=   7219.280     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      225 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6420        .90754E-01** at limit **
   2  Index         2.4624        2.6215        .50000       -.64399E-05
   3  Normalizat    1.1582        .38340E-02    .77199E-01   -.35536E-03
   4  Prefactor     .88625        .20464E-02    .44830E-01   -.80975E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46237
  Normalizat = 1.15817
  Prefactor  = 0.88625
 **********
 **   18 **HESSE 
 **********

 FCN=   7219.280     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8214.1        .48499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4624        8.7425        .50000       -.53231    
   3  Normalizat    1.1582        .70660E-01    .34170E-03   -.87905    
   4  Prefactor     .88625        .37614E-01    .20435E-03   -.96623    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.54523e-09
Minuit parameter uncertainties:
  1  0.000815142
  2  44.4514
  3  0.0706653
  4  0.037615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279097': 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): 102
logL (Free Index) = 7219.28019161
delta logL = 8.45302565722e-08

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  8.151e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.462e+00  4.445e+01  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.862e-01  3.761e-02  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.158e+00  7.067e-02  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/279097/cmap_HighResolution_375667201_375926401_4FGL_J2222.8+1209_daily_bin526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.19e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-28 10:28:46.566608', job_id='279097', GAL2='0.89', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632850126.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='526' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:28:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 279097: <4FGL_J2222.8+1209_daily_bin526> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin526 335.71 12.1568 375667201 375926401 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 :                                   783.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            806 sec.

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

