/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 234 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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)

WARDone.


Performing analysis on: 4FGL_J0222.6+4302_daily_bin1727
RA = 35.6696, Dec = 43.0357
tmin = 686966401, tmax = 687225601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 1Done.


Performing analysis on: 4FGL_J0222.6+4302_daily_bin1727
RA = 35.6696, Dec = 43.0357
tmin = 686966401, tmax = 687225601
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='204930', job_status='RUN', time_executed='2022-10-12 00:12:56.881524', time_epoch_executed='1665558776.88' WHERE source_name='4FGL J0222.6+4302' and cadence='daily' and bin_id='1727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204930/ft1_4FGL_J0222.6+4302_daily_bin1727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204930/ft2_4FGL_J0222.6+4302_daily_bin1727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204930/ft1_4FGL_J0222.6+4302_daily_bin1727.fits outfile=/scratch/kocevski/204930/ft1_filteredMKT_4FGL_J0222.6+4302_daily_bin1727.fits ra=35.6696 dec=43.0357 rad=12.0 tmin=686966401.0 tmax=687225601.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.12
user 2.71
sys 0.19

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

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

Number of photons that the gtmktime cut: 255

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204930/ft1_filtered_4FGL_J0222.6+4302_daily_bin1727.fits" evtable="EVENTS" scfile=/scratch/kocevski/204930/ft2_4FGL_J0222.6+4302_daily_bin1727.fits sctable="SC_DATA" outfile=/scratch/kocevski/204930/ltcube_686966401_687225601_4FGL_J0222.6+4302_daily_bin1727.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/204930/ft2_4FGL_J0222.6+4302_daily_bin1727.fits
.....................!
real 13.42
user 12.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204930/ft1_filtered_4FGL_J0222.6+4302_daily_bin1727.fits evtable="EVENTS" scfile=/scratch/kocevski/204930/ft2_4FGL_J0222.6+4302_daily_bin1727.fits sctable="SC_DATA" expcube=/scratch/kocevski/204930/ltcube_686966401_687225601_4FGL_J0222.6+4302_daily_bin1727.fits outfile=/scratch/kocevski/204930/expmap_686966401_687225601_4FGL_J0222.6+4302_daily_bin1727.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/204930/ltcube_686966401_687225601_4FGL_J0222.6+4302_daily_bin1727.fits
.....................!
real 191.41
user 185.61
sys 4.88

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_8years/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/204930/ft1_filtered_4FGL_J0222.6+4302_daily_bin1727.fits scfile=/scratch/kocevski/204930/ft2_4FGL_J0222.6+4302_daily_bin1727.fits outfile=/scratch/kocevski/204930/cmap_686966401_687225601_4FGL_J0222.6+4302_daily_bin1727.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 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204930/ft1_filtered_4FGL_J0222.6+4302_daily_bin1727.fits scfile=/scratch/kocevski/204930/ft2_4FGL_J0222.6+4302_daily_bin1727.fits outfile=/scratch/kocevski/204930/cmap_HighResolution_686966401_687225601_4FGL_J0222.6+4302_daily_bin1727.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 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/204930/ft1_filtered_4FGL_J0222.6+4302_daily_bin1727.fits evtable="EVENTS" scfile=/scratch/kocevski/204930/ft2_4FGL_J0222.6+4302_daily_bin1727.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/204930/Model_4FGL_J0222.6+4302_daily_bin1727.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/204930/ft1_filtered_4FGL_J0222.6+4302_daily_bin1727.fits......................!
real 48.13
user 46.66
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204930/ft1_filtered_4FGL_J0222.6+4302_daily_bin1727.fits', '/scratch/kocevski/204930/ft2_4FGL_J0222.6+4302_daily_bin1727.fits', expMap='/scratch/kocevski/204930/expmap_686966401_687225601_4FGL_J0222.6+4302_daily_bin1727.fits', expCube='/scratch/kocevski/204930/ltcube_686966401_687225601_4FGL_J0222.6+4302_daily_bin1727.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204930/Model_4FGL_J0222.6+4302_daily_bin1727.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  0.000e+00  1.000e+06 ( 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 -5.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/204930/ft1_filtered_4FGL_J0222.6+4302_daily_bin1727.fits
Spacecraft file(s): /scratch/kocevski/204930/ft2_4FGL_J0222.6+4302_daily_bin1727.fits
Exposure map: /scratch/kocevski/204930/expmap_686966401_687225601_4FGL_J0222.6+4302_daily_bin1727.fits
Exposure cube: /scratch/kocevski/204930/ltcube_686966401_687225601_4FGL_J0222.6+4302_daily_bin1727.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204930/Model_4FGL_J0222.6+4302_daily_bin1727.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) = 2860.10316222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8584       1.0000          .0000       .10000E+07
     2 'norm      '    .77356E-01   1.0000          .0000       .10000E+07
     3 'norm      '    58.193       1.0000          .0000       .10000E+07
     4 'Prefactor '    17.961       1.0000          .0000       .10000E+07
     5 'Prefactor '    .37342E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    376.23       1.0000          .0000       .10000E+07
     7 'Prefactor '    .76093       1.0000          .0000       .10000E+07
     8 'Prefactor '    .76663       1.0000          .0000       .10000E+07
     9 'norm      '    .20208E-03   1.0000          .0000       .10000E+07
    10 'norm      '    5.1469       1.0000          .0000       .10000E+07
    11 'norm      '    .81866       1.0000          .0000       .10000E+07
    12 'Prefactor '    .41740E-02   1.0000          .0000       .10000E+07
    13 'norm      '    7.9720       1.0000          .0000       .10000E+07
    14 'norm      '    .94965E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
    16 'norm      '    8.8894       1.0000          .0000       .10000E+07
    17 'Prefactor '    .52525E-06   1.0000          .0000       .10000E+07
    18 'norm      '    4.0403       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0134       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87426       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2851.902     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     1873 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18756E+06    61285.        .18407E-04   -.88662E-04
   2  norm          .26090E-07    276.30       -.13153E-05** at limit **
   3  norm          .22204E-09    18.283       -.17759E-06** at limit **
   4  Prefactor     .53846E-08    537.33       -.70368E-06** at limit **
   5  Prefactor     .16653E-09    21.573        .31560E-06** at limit **
   6  Prefactor     407.49        677.03        .31483E-06    .11136E-03
   7  Prefactor     .33307E-09    161.67        .20197E-05** at limit **
   8  Prefactor     .21261E-07    271.90        .39101E-05** at limit **
   9  norm          .44409E-09    11.480        .51673E-06** at limit **
  10  norm          4.8958        4.4321       -.50287E-06   -.58648E-02
  11  norm          .35893        .89247        .65716E-07    .39576E-02
  12  Prefactor     .22204E-09    10.273        .18693E-06** at limit **
  13  norm          8.5914        16.610        .20425E-06    .44958E-03
  14  norm          .88818E-09    19.797        .84012E-06** at limit **
  15  Prefactor      .0000        1.0655        .11888E-08** at limit **
  16  norm          9.1626        7.2360        .15824E-06    .15457E-02
  17  Prefactor      .0000        7.5241        .30434E-08** at limit **
  18  norm          4.3161        1.2528       -.77143E-08    .10273E-01
  19  Normalizat    .37511        .63835        .25037E-04    .18330E-04
  20  Prefactor     .91865        .14494       -.66412E-05    .19310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 187564
  norm       = 2.60902e-08
  norm       = 2.22045e-10
  Prefactor  = 5.38458e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 407.489
  Prefactor  = 3.33067e-10
  Prefactor  = 2.12608e-08
  norm       = 4.44089e-10
  norm       = 4.89584
  norm       = 0.358927
  Prefactor  = 2.22045e-10
  norm       = 8.5914
  norm       = 8.88178e-10
  Prefactor  = 0
  norm       = 9.16263
  Prefactor  = 0
  norm       = 4.31606
  Normalizat = 0.375108
  Prefactor  = 0.918649
 **********
 **   18 **HESSE 
 **********

 FCN=   2851.902     FROM HESSE     STATUS=OK           327 CALLS     2200 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18756E+06    64694.        .45613E-03   -.67497    
   2  norm          .26090E-07    265.74        .14583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .22204E-09    17.523        .13110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .53846E-08    844.12        .23605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16653E-09    21.113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     407.49        712.16        .51565E-04   -1.5304    
   7  Prefactor     .33307E-09    155.63        .55894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .21261E-07    288.74        .55456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .44409E-09    11.849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8958        4.6485        .44290E-03   -1.5664    
  11  norm          .35893        1.0469        .51554E-03   -1.5696    
  12  Prefactor     .22204E-09    9.6902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.5914        16.768        .35488E-03   -1.5649    
  14  norm          .88818E-09    22.913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.0218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.1626        7.1993        .33594E-03   -1.5647    
  17  Prefactor      .0000        8.4346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3161        1.2665        .50142E-03   -1.5666    
  19  Normalizat    .37511        .91564        .21792       -1.1861    
  20  Prefactor     .91865        .19996        .32966E-01   -.95492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3486e-09
Minuit parameter uncertainties:
  1  64993.4
  2  0.00526507
  3  0.000129428
  4  0.00426032
  5  0.00011545
  6  712.308
  7  0.000436027
  8  0.00495878
  9  0.000142523
  10  4.64852
  11  1.04692
  12  9.44077e-05
  13  16.7683
  14  0.000288261
  15  1.86368e-07
  16  7.19928
  17  2.98744e-05
  18  1.26654
  19  0.956621
  20  0.200118
Done.

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

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  3.589e-01  1.047e+00  0.000e+00  1.000e+06 ( 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 -5.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:  9.186e-01  2.001e-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:  3.751e-01  9.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 35.670 43.036
Photon Flux Upper Limit: 3.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204930/likelihoodResults_686966401_687225601_4FGL_J0222.6+4302_daily_bin1727.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) = 2851.71371376
delta logL = 0.188226063675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2851.70966715
delta logL = 0.192272676421

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34940       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6042       1.0000          .0000       5.0000    
     3 'Normalizat'    .32401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92449       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=   2851.710     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      220 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34822        15.340        .95600E-03    .60535E-02
   2  alpha         2.6059        3.6515        .39780        .17590E-04
   3  Normalizat    .32456        .13443        .23363        .26777E-04
   4  Prefactor     .92457        .31690E-01    .32851E-01   -.28730E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.348224
  alpha      = 2.60588
  Normalizat = 0.324555
  Prefactor  = 0.92457
 **********
 **   18 **HESSE 
 **********

 FCN=   2851.710     FROM HESSE     STATUS=OK            35 CALLS      255 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34822        .88810        .50459E-04   -1.5696    
   2  alpha         2.6059        1.3076        .13594E-01    .42363E-01
   3  Normalizat    .32456        .60838        .10223E-02   -1.2140    
   4  Prefactor     .92457        .14319        .14517E-03   -.95288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39592e-10
Minuit parameter uncertainties:
  1  0.888102
  2  1.37618
  3  0.621442
  4  0.143246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204930': 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) = 2851.70966279
delta logL = 0.192277036526

Extracting fit parameters...

4FGL J0222.6+4302
   Spectrum: LogParabola
308         norm:  3.482e-01  8.881e-01  0.000e+00  1.000e+06 ( 1.000e-11)
309        alpha:  2.606e+00  1.376e+00  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  4.374e-02  0.000e+00 -5.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:  9.246e-01  1.432e-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:  3.246e-01  6.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 35.670 43.036

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/204930/cmap_HighResolution_686966401_687225601_4FGL_J0222.6+4302_daily_bin1727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-04', job_status='DONE', photon_flux_upper_limit='3.54e-07', time_completed='2022-10-12 00:20:34.418225', job_id='204930', GAL2='0.92', fit_tolerance='1e-08', EG2='0.32', EG='0.38', time_epoch_completed='1665559234.42', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.92e-01', ts2='0.56', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1727' AND source_name='4FGL J0222.6+4302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Oct 12 00:20:34 PDT 2022

_J0222.6+4302_daily_bin1727> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Oct 12 00:05:41 2022
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 12 00:05:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 12 00:05:47 2022
Terminated at Wed Oct 12 00:15:20 2022
Results reported at Wed Oct 12 00:15:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_daily_bin1727 35.6696 43.0357 686966401 687225601 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 :                                   459.40 sec.
    Max Memory :                                 627 MB
    Average Memory :                             296.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            579 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 204930: <4FGL_J0222.6+4302_daily_bin1727> in cluster <slac> Done

Job <4FGL_J0222.6+4302_daily_bin1727> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Oct 12 00:05:41 2022
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 12 00:05:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 12 00:05:47 2022
Terminated at Wed Oct 12 00:20:34 2022
Results reported at Wed Oct 12 00:20:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0222.6+4302_daily_bin1727 35.6696 43.0357 686966401 687225601 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 :                                   459.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             164.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            893 sec.

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

