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


Performing analysis on: 4FGL_J0222.6+4302_daily_bin1321
RA = 35.6696, Dec = 43.0357
tmin = 581731201, tmax = 581990401
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='343751', job_status='RUN', time_executed='2021-08-15 19:28:34.206604', time_epoch_executed='1629080914.21' WHERE source_name='4FGL J0222.6+4302' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/343751

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/343751/ft1_4FGL_J0222.6+4302_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/343751/ft2_4FGL_J0222.6+4302_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/343751/ft1_4FGL_J0222.6+4302_daily_bin1321.fits outfile=/scratch/kocevski/343751/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1321.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=581731201.0 tmax=581990401.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.48
user 2.34
sys 1.11

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/343751/ft2_4FGL_J0222.6+4302_daily_bin1321.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/343751/ft2_4FGL_J0222.6+4302_daily_bin1321.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/343751/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1321.fits evtable="EVENTS" outfile="/scratch/kocevski/343751/ft1_filtered_4FGL_J0222.6+4302_daily_bin1321.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 1.45
user 0.33
sys 1.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/343751/ft1_filtered_4FGL_J0222.6+4302_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/343751/ft2_4FGL_J0222.6+4302_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/343751/ltcube_581731201_581990401_4FGL_J0222.6+4302_daily_bin1321.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/343751/ft2_4FGL_J0222.6+4302_daily_bin1321.fits
.....................!
real 15.19
user 13.72
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/343751/ft1_filtered_4FGL_J0222.6+4302_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/343751/ft2_4FGL_J0222.6+4302_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/343751/ltcube_581731201_581990401_4FGL_J0222.6+4302_daily_bin1321.fits outfile=/scratch/kocevski/343751/expmap_581731201_581990401_4FGL_J0222.6+4302_daily_bin1321.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/343751/ltcube_581731201_581990401_4FGL_J0222.6+4302_daily_bin1321.fits
.....................!
real 194.53
user 187.52
sys 6.43

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 181 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0222.6+4302 @ 35.6696 43.0357

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/343751/ft1_filtered_4FGL_J0222.6+4302_daily_bin1321.fits scfile=/scratch/kocevski/343751/ft2_4FGL_J0222.6+4302_daily_bin1321.fits outfile=/scratch/kocevski/343751/cmap_581731201_581990401_4FGL_J0222.6+4302_daily_bin1321.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=35.6696 yref=43.0357 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 1.45
user 0.38
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/343751/ft1_filtered_4FGL_J0222.6+4302_daily_bin1321.fits scfile=/scratch/kocevski/343751/ft2_4FGL_J0222.6+4302_daily_bin1321.fits outfile=/scratch/kocevski/343751/cmap_HighResolution_581731201_581990401_4FGL_J0222.6+4302_daily_bin1321.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=35.6696 yref=43.0357 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 1.45
user 0.38
sys 1.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/343751/ft1_filtered_4FGL_J0222.6+4302_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/343751/ft2_4FGL_J0222.6+4302_daily_bin1321.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/343751/Model_4FGL_J0222.6+4302_daily_bin1321.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/343751/ft1_filtered_4FGL_J0222.6+4302_daily_bin1321.fits....................!
real 47.78
user 45.05
sys 2.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/343751/ft1_filtered_4FGL_J0222.6+4302_daily_bin1321.fits', '/scratch/kocevski/343751/ft2_4FGL_J0222.6+4302_daily_bin1321.fits', expMap='/scratch/kocevski/343751/expmap_581731201_581990401_4FGL_J0222.6+4302_daily_bin1321.fits', expCube='/scratch/kocevski/343751/ltcube_581731201_581990401_4FGL_J0222.6+4302_daily_bin1321.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/343751/Model_4FGL_J0222.6+4302_daily_bin1321.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0222.6+4302'

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  1.032e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/343751/ft1_filtered_4FGL_J0222.6+4302_daily_bin1321.fits
Spacecraft file(s): /scratch/kocevski/343751/ft2_4FGL_J0222.6+4302_daily_bin1321.fits
Exposure map: /scratch/kocevski/343751/expmap_581731201_581990401_4FGL_J0222.6+4302_daily_bin1321.fits
Exposure cube: /scratch/kocevski/343751/ltcube_581731201_581990401_4FGL_J0222.6+4302_daily_bin1321.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/343751/Model_4FGL_J0222.6+4302_daily_bin1321.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) = 3417.38092174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.839       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4912       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24577       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9699       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1762       1.0000         .10000E-03   10000.    
    13 'norm      '    .81080       1.0000         .10000E-03   10000.    
    14 'Prefactor '    372.77       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.087       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    72.294       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0048       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88875       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+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=   3416.872     FROM MIGRAD    STATUS=CONVERGED   1021 CALLS     3525 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.372        .18142E-02** at limit **
   2  Prefactor     16.866        59.302        .97603E-04   -.19627E-04
   3  norm          2.4911        1.8025        .64424E-04    .13438E-03
   4  norm          .10000E-03    .41307        .71585E-03** at limit **
   5  Prefactor     .30452        531.10        .47173E-02    .15004E-04
   6  Prefactor     1.9614        6.7123        .20700E-03    .11855E-03
   7  Prefactor     .10000E-03    18.225        .18142E-02** at limit **
   8  Prefactor     .10000E-03    67.503        .18142E-02** at limit **
   9  Prefactor     .10000E-03    11.692        .18142E-02** at limit **
  10  norm          .10000E-03    2.7348        .94133E-03** at limit **
  11  Prefactor     .10000E-03    44.442        .36285E-03** at limit **
  12  norm          2.1765        1.1722        .43823E-04    .48602E-03
  13  norm          .81083        .51262        .32163E-04   -.18822E-03
  14  Prefactor     372.74        449.00        .10557E-03    .49643E-05
  15  Prefactor     .10000E-03    3.1399        .10107E-02** at limit **
  16  norm          .10000E-03    7.1743        .15261E-02** at limit **
  17  Prefactor     .10000E-03    33.262        .18142E-02** at limit **
  18  norm          .10000E-03    44.078        .18142E-02** at limit **
  19  Prefactor     53.083        31.628        .55048E-04   -.67120E-05
  20  norm          .10000E-03    16.630        .18142E-02** at limit **
  21  Prefactor     72.307        72.194        .47217E-04    .73196E-05
  22  Prefactor     .10000E-03    197.48        .18142E-02** at limit **
  23  norm          .10000E-03    2.2599        .85594E-03** at limit **
  24  Normalizat    1.0043        .38544        .36405E-03    .11417E-03
  25  Prefactor     .88891        .15073        .16862E-03    .72165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.866
  norm       = 2.49114
  norm       = 0.0001
  Prefactor  = 0.30452
  Prefactor  = 1.96144
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.17648
  norm       = 0.810833
  Prefactor  = 372.74
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 53.0833
  norm       = 0.0001
  Prefactor  = 72.3075
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.0043
  Prefactor  = 0.888906
 **********
 **   18 **HESSE 
 **********

 FCN=   3416.872     FROM HESSE     STATUS=OK           403 CALLS     3928 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.866        59.174        .39041E-05   -1.4886    
   3  norm          2.4911        1.8024        .25770E-05   -1.5392    
   4  norm          .10000E-03    .41318        .14317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .30452        441.11        .18869E-03   -1.5598    
   6  Prefactor     1.9614        6.2799        .82801E-05   -1.5428    
   7  Prefactor     .10000E-03    18.226        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    67.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.696        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.7349        .18827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    44.445        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1765        1.1718        .17529E-05   -1.5413    
  13  norm          .81083        .51250        .12865E-05   -1.5528    
  14  Prefactor     372.74        448.99        .21115E-04   -1.1822    
  15  Prefactor     .10000E-03    3.1400        .20214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.1751        .30523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    44.081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.083        31.623        .22019E-05   -1.4250    
  20  norm          .10000E-03    16.630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     72.307        72.150        .94433E-05   -1.4005    
  22  Prefactor     .10000E-03    197.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.2599        .17119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0043        .37711        .14562E-04   -.92886    
  25  Prefactor     .88891        .14996        .33724E-04   -.96530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10413e-09
Minuit parameter uncertainties:
  1  4.74308e-06
  2  59.3815
  3  1.80245
  4  5.10334e-06
  5  23.3502
  6  6.282
  7  0.000160097
  8  0.000725281
  9  8.0094e-05
  10  2.16524e-05
  11  0.000337404
  12  1.17186
  13  0.512502
  14  453.306
  15  1.34463e-05
  16  2.2233e-05
  17  0.000388923
  18  0.000327017
  19  31.6331
  20  0.000178792
  21  72.2371
  22  0.00108237
  23  1.25716e-05
  24  0.378117
  25  0.150026
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  8.108e-01  5.125e-01  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  1.895e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  4.374e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.889e-01  1.500e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.004e+00  3.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.05
Ra Dec: 35.670 43.036
Photon Index (Fixed Index): 1.89 +/- 0.00
Photon Flux (Fixed Index): 8.77e-08 +/- 5.54e-08
Energy Flux (Fixed Index): 7.26e-05 +/- 4.59e-05

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) = 3415.92152158
delta logL = 0.950746545927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3415.89274197
delta logL = 0.979526152937

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79306       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3285       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3415.893     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79323        .50797        .73497E-02   -.72773E-04
   2  alpha         1.3286        .33688        .20399       -.16781E-04
   3  Normalizat    1.0286        .29064        .81417E-01    .87695E-05
   4  Prefactor     .88503        .12812        .44813E-01    .37277E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.793226
  alpha      = 1.32865
  Normalizat = 1.02859
  Prefactor  = 0.88503
 **********
 **   18 **HESSE 
 **********

 FCN=   3415.893     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79323        .56182        .32379E-04   -1.5530    
   2  alpha         1.3286        .38499        .86985E-02   -.48764    
   3  Normalizat    1.0286        .32249        .36042E-03   -.92079    
   4  Prefactor     .88503        .14255        .16896E-03   -.96666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39299e-10
Minuit parameter uncertainties:
  1  0.561819
  2  0.38697
  3  0.32311
  4  0.14261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/343751': 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) = 3415.89274188
delta logL = 0.979526243938

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  7.932e-01  5.618e-01  1.000e-04  1.000e+04 ( 1.000e-11)
309        alpha:  1.329e+00  3.870e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  4.374e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.197e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.850e-01  1.426e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.029e+00  3.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.00
Ra Dec: 35.670 43.036
Photon Index (Free Index): 1.33 +/- 0.39
Photon Flux (Free Index): 5.15e-08 +/- 3.97e-08
Energy Flux (Free Index): 2.11e-04 +/- 2.05e-04

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/343751/cmap_HighResolution_581731201_581990401_4FGL_J0222.6+4302_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.77e-08', energy_flux2='2.11e-04', photon_flux_error='5.54e-08', dlogl='9.80e-01', energy_flux='7.26e-05', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-08-15 19:38:02.890220', photon_index_error2='0.39', photon_index2='1.33', ts='11.05', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.05e-04', EG='1.00', time_epoch_completed='1629081482.89', return_code='0', job_id='343751', GAL2='0.89', EG2='1.03', return_code2='0', energy_flux_error='4.59e-05', photon_flux_error2='3.97e-08', ts2='13.00', photon_index='1.89' WHERE bin_id='1321' AND source_name='4FGL J0222.6+4302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 19:38:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 343751: <4FGL_J0222.6+4302_daily_bin1321> in cluster <slac> Done

Job <4FGL_J0222.6+4302_daily_bin1321> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 19:25:17 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 19:25:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 19:25:46 2021
Terminated at Sun Aug 15 19:38:03 2021
Results reported at Sun Aug 15 19:38:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_daily_bin1321 35.6696 43.0357 581731201 581990401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0222.6+4302 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   575.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            766 sec.

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

