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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin350
RA = 335.71, Dec = 12.1568
tmin = 330048001, tmax = 330307201
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='277836', job_status='RUN', time_executed='2021-09-28 10:14:00.755532', time_epoch_executed='1632849240.76' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277836

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277836/ft1_4FGL_J2222.8+1209_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277836/ft2_4FGL_J2222.8+1209_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277836/ft1_4FGL_J2222.8+1209_daily_bin350.fits outfile=/scratch/kocevski/277836/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin350.fits ra=335.71 dec=12.1568 rad=12.0 tmin=330048001.0 tmax=330307201.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 3.49
user 3.26
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277836/ft1_filtered_4FGL_J2222.8+1209_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/277836/ft2_4FGL_J2222.8+1209_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/277836/ltcube_330048001_330307201_4FGL_J2222.8+1209_daily_bin350.fits outfile=/scratch/kocevski/277836/expmap_330048001_330307201_4FGL_J2222.8+1209_daily_bin350.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/277836/ltcube_330048001_330307201_4FGL_J2222.8+1209_daily_bin350.fits
.....................!
real 189.86
user 185.29
sys 4.19

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/277836/ft1_filtered_4FGL_J2222.8+1209_daily_bin350.fits scfile=/scratch/kocevski/277836/ft2_4FGL_J2222.8+1209_daily_bin350.fits outfile=/scratch/kocevski/277836/cmap_330048001_330307201_4FGL_J2222.8+1209_daily_bin350.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/277836/ft1_filtered_4FGL_J2222.8+1209_daily_bin350.fits scfile=/scratch/kocevski/277836/ft2_4FGL_J2222.8+1209_daily_bin350.fits outfile=/scratch/kocevski/277836/cmap_HighResolution_330048001_330307201_4FGL_J2222.8+1209_daily_bin350.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4015       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.0014       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.737       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2649       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2113       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0667       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .68644E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6832       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .70538       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7967       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.7213       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3303       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90163       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=   7766.613     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2676 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4014        3.8044        .19175E-06   -.19718E-03
   2  Prefactor     .10000E-03    27.706        .49336E-06** at limit **
   3  Prefactor     .10000E-03    23.629        .15802E-04** at limit **
   4  norm          4.0012        2.5557       -.20565E-06   -.33836E-03
   5  norm          .10000E-03    4.5542        .70623E-08** at limit **
   6  Prefactor     13.735        36.671       -.35487E-05    .32649E-05
   7  Prefactor     .10000E-03    29.377       -.11076E-04** at limit **
   8  norm          1.2649        .93666       -.77649E-07   -.45246E-03
   9  Prefactor     .10000E-03    8.8629        .14617E-05** at limit **
  10  Prefactor     .10000E-03    8.4410        .17342E-05** at limit **
  11  Prefactor     .10000E-03    7.3598       -.25917E-05** at limit **
  12  norm          .10000E-03    1.8541       -.68413E-07** at limit **
  13  Prefactor     .10000E-03    15.483       -.66279E-05** at limit **
  14  Prefactor     .10000E-03    5.6784        .68542E-06** at limit **
  15  Prefactor     1.2113        .25342       -.14221E-07    .16202E-02
  16  Prefactor     .10000E-03    7.9907        .11133E-05** at limit **
  17  norm          2.0670        1.4252        .21107E-07    .59501E-03
  18  Prefactor     .10000E-03    7.6579       -.81465E-06** at limit **
  19  Prefactor     .10005E-03    6.4417       -.13180E-05** at limit **
  20  Prefactor     1.6827        37.566       -.26821E-05   -.12378E-03
  21  Prefactor     .70538        .17450       -.68843E-09    .15584E-02
  22  Prefactor     2.7815        151.15       -.72019E-04   -.41909E-05
  23  Prefactor     .10000E-03    1.6526       -.79852E-08** at limit **
  24  Prefactor     7.7205        14.009       -.92818E-07   -.78373E-05
  25  Normalizat    1.3303        .23129        .23502E-05    .20609E-03
  26  Prefactor     .90164        .11984        .23925E-06    .41042E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.40142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.00123
  norm       = 0.0001
  Prefactor  = 13.735
  Prefactor  = 0.0001
  norm       = 1.26491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21132
  Prefactor  = 0.0001
  norm       = 2.06703
  Prefactor  = 0.0001
  Prefactor  = 0.000100046
  Prefactor  = 1.68268
  Prefactor  = 0.705384
  Prefactor  = 2.78152
  Prefactor  = 0.0001
  Prefactor  = 7.72046
  Normalizat = 1.3303
  Prefactor  = 0.901644
 **********
 **   18 **HESSE 
 **********

 FCN=   7766.613     FROM HESSE     STATUS=OK           452 CALLS     3128 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4014        3.7933        .10559E-03   -1.5164    
   2  Prefactor     .10000E-03    27.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.0012        2.5560        .10773E-03   -1.5308    
   5  norm          .10000E-03    4.5558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.735        36.546        .10807E-03   -1.4967    
   7  Prefactor     .10000E-03    29.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2649        .92104        .70138E-04   -1.5483    
   9  Prefactor     .10000E-03    8.9093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.4513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.3640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8685        .11717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2113        .25373        .19346E-04   -1.5488    
  16  Prefactor     .10000E-03    8.1260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0670        1.4218        .84420E-04   -1.5420    
  18  Prefactor     .10000E-03    7.6599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    40.663        .42647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6827        38.029        .32464E-03   -1.5449    
  21  Prefactor     .70538        .17384        .17155E-04   -1.5540    
  22  Prefactor     2.7815        153.30        .24328E-03   -1.5374    
  23  Prefactor     .10000E-03    1.6544        .11064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.7205        14.009        .14431E-03   -1.5152    
  25  Normalizat    1.3303        .27286        .32661E-03   -.82666    
  26  Prefactor     .90164        .14214        .20754E-03   -.96084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58064e-09
Minuit parameter uncertainties:
  1  3.79347
  2  8.47904e-07
  3  1.85926e-05
  4  2.55604
  5  2.72543e-06
  6  36.6061
  7  4.32646e-06
  8  0.921052
  9  1.33985e-05
  10  6.33736e-06
  11  5.39494e-06
  12  3.54053e-06
  13  1.12691e-05
  14  1.30693e-05
  15  0.253731
  16  1.39784e-05
  17  1.42182
  18  1.02762e-06
  19  0.00272467
  20  16.0099
  21  0.173839
  22  41.4104
  23  1.87614e-07
  24  14.0147
  25  0.273162
  26  0.142194
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.016e-01  1.422e-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.330e+00  2.732e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277836/likelihoodResults_330048001_330307201_4FGL_J2222.8+1209_daily_bin350.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) = 7766.61327078
delta logL = -0.000304207223053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7766.61296655
delta logL = 2.68009898718e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4319       1.0000          .0000       10.000    
     3 'Normalizat'    1.3303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90165       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=   7766.612     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      309 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78413E-01    1.4348        .44986E-01   -.66363E-03
   2  Index         3.6088        .59162        .50000        .31060E-05
   3  Normalizat    1.3270        .82620E-02    .32661E-03   -.13123E-04
   4  Prefactor     .90255        .44487E-02    .20754E-03   -.24376E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0784133
  Index      = 3.60878
  Normalizat = 1.327
  Prefactor  = 0.902548
 **********
 **   18 **HESSE 
 **********

 FCN=   7766.612     FROM HESSE     STATUS=OK            31 CALLS      340 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78413E-01    8.6878        .14325E-02   -1.5764    
   2  Index         3.6088        6.7993        .73848E-02   -.28196    
   3  Normalizat    1.3270        .27068        .13064E-04   -.82764    
   4  Prefactor     .90255        .14294        .83018E-05   -.96052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9671e-11
Minuit parameter uncertainties:
  1  1.64993
  2  6.49555
  3  0.270965
  4  0.142997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277836': 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) = 7766.61169936
delta logL = 0.00126720979097

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.025e-01  1.430e-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.327e+00  2.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.710 12.157

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/277836/cmap_HighResolution_330048001_330307201_4FGL_J2222.8+1209_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-28 10:27:00.218320', job_id='277836', GAL2='0.90', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1632850020.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.27e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='350' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:27:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 277836: <4FGL_J2222.8+1209_daily_bin350> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin350> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:10:38 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:10:40 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:40 2021
Terminated at Tue Sep 28 10:27:01 2021
Results reported at Tue Sep 28 10:27:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin350 335.71 12.1568 330048001 330307201 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 :                                   779.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

