/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 102 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0221.1+3556_daily_bin61
RA = 35.281, Dec = 35.9359
tmin = 255139201, tmax = 255398401
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='308163', job_status='RUN', time_executed='2021-08-15 17:44:39.650354', time_epoch_executed='1629074679.65' WHERE source_name='4FGL J0221.1+3556' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/308163

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/308163/ft1_4FGL_J0221.1+3556_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/308163/ft2_4FGL_J0221.1+3556_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/308163/ft1_4FGL_J0221.1+3556_daily_bin61.fits outfile=/scratch/kocevski/308163/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin61.fits ra=35.281 dec=35.9359 rad=12.0 tmin=255139201.0 tmax=255398401.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 6.80
user 5.86
sys 0.82

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/308163/ft2_4FGL_J0221.1+3556_daily_bin61.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/308163/ft2_4FGL_J0221.1+3556_daily_bin61.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/308163/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin61.fits evtable="EVENTS" outfile="/scratch/kocevski/308163/ft1_filtered_4FGL_J0221.1+3556_daily_bin61.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.00
user 0.31
sys 0.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/308163/ft1_filtered_4FGL_J0221.1+3556_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/308163/ft2_4FGL_J0221.1+3556_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/308163/ltcube_255139201_255398401_4FGL_J0221.1+3556_daily_bin61.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/308163/ft2_4FGL_J0221.1+3556_daily_bin61.fits
.....................!
real 13.49
user 12.47
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/308163/ft1_filtered_4FGL_J0221.1+3556_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/308163/ft2_4FGL_J0221.1+3556_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/308163/ltcube_255139201_255398401_4FGL_J0221.1+3556_daily_bin61.fits outfile=/scratch/kocevski/308163/expmap_255139201_255398401_4FGL_J0221.1+3556_daily_bin61.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/308163/ltcube_255139201_255398401_4FGL_J0221.1+3556_daily_bin61.fits
.....................!
real 157.08
user 152.13
sys 4.45

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J0221.1+3556 @ 35.281 35.9359

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/308163/ft1_filtered_4FGL_J0221.1+3556_daily_bin61.fits scfile=/scratch/kocevski/308163/ft2_4FGL_J0221.1+3556_daily_bin61.fits outfile=/scratch/kocevski/308163/cmap_255139201_255398401_4FGL_J0221.1+3556_daily_bin61.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.281 yref=35.9359 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.03
user 0.34
sys 0.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/308163/ft1_filtered_4FGL_J0221.1+3556_daily_bin61.fits scfile=/scratch/kocevski/308163/ft2_4FGL_J0221.1+3556_daily_bin61.fits outfile=/scratch/kocevski/308163/cmap_HighResolution_255139201_255398401_4FGL_J0221.1+3556_daily_bin61.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.281 yref=35.9359 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.02
user 0.36
sys 0.64

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/308163/ft1_filtered_4FGL_J0221.1+3556_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/308163/ft2_4FGL_J0221.1+3556_daily_bin61.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/308163/Model_4FGL_J0221.1+3556_daily_bin61.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/308163/ft1_filtered_4FGL_J0221.1+3556_daily_bin61.fits.....................!
real 72.52
user 70.47
sys 1.74

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/308163/ft1_filtered_4FGL_J0221.1+3556_daily_bin61.fits', '/scratch/kocevski/308163/ft2_4FGL_J0221.1+3556_daily_bin61.fits', expMap='/scratch/kocevski/308163/expmap_255139201_255398401_4FGL_J0221.1+3556_daily_bin61.fits', expCube='/scratch/kocevski/308163/ltcube_255139201_255398401_4FGL_J0221.1+3556_daily_bin61.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/308163/Model_4FGL_J0221.1+3556_daily_bin61.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0221.1+3556'

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.936e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  4.833e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.644e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/308163/ft1_filtered_4FGL_J0221.1+3556_daily_bin61.fits
Spacecraft file(s): /scratch/kocevski/308163/ft2_4FGL_J0221.1+3556_daily_bin61.fits
Exposure map: /scratch/kocevski/308163/expmap_255139201_255398401_4FGL_J0221.1+3556_daily_bin61.fits
Exposure cube: /scratch/kocevski/308163/ltcube_255139201_255398401_4FGL_J0221.1+3556_daily_bin61.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/308163/Model_4FGL_J0221.1+3556_daily_bin61.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) = 7137.00716378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2107       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .96374E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .96769       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3008       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4171       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .91498       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6295       1.0000         .10000E-03   10000.    
    15 'norm      '    .12927E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8565       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.230       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0797       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0209       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0280       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7136.995     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     3019 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .50878        .13827E-07** at limit **
   2  norm          .10000E-03    .32443        .19130E-06** at limit **
   3  Prefactor     .10000E-03    4.2067        .11283E-06** at limit **
   4  Prefactor     .10000E-03    1.6252        .13534E-06** at limit **
   5  Prefactor     7.1598        28.004       -.54737E-05   -.65591E-04
   6  Prefactor     .10000E-03    64.899        .28835E-05** at limit **
   7  norm          .10000E-03    1.4265        .17575E-06** at limit **
   8  Prefactor     .16170        129.07        .24949E-04   -.32931E-04
   9  norm          .96555        2.3273        .10480E-05   -.91925E-05
  10  Prefactor     5.2924        11.164       -.28443E-05   -.82127E-04
  11  norm          3.4173        .90943       -.92248E-07   -.14316E-03
  12  norm          .10000E-03    30.242       -.71743E-06** at limit **
  13  norm          .91488        .42966        .58840E-07   -.93523E-03
  14  Prefactor     3.6259        6.2958        .79132E-06    .51382E-04
  15  norm          .10000E-03    11.267        .78843E-06** at limit **
  16  Prefactor     .10000E-03    31.532        .81002E-06** at limit **
  17  norm          2.8567        1.9622        .10725E-06    .19347E-03
  18  Prefactor     .10000E-03    106.35       -.53608E-05** at limit **
  19  norm          14.230        27.651        .53886E-06    .45356E-04
  20  Prefactor     1.0681        35.158        .89542E-05   -.74541E-04
  21  Normalizat    1.0208        .24121       -.31242E-05   -.21571E-03
  22  Prefactor     1.0280        .11356       -.13532E-06   -.10610E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.15978
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.161696
  norm       = 0.96555
  Prefactor  = 5.29236
  norm       = 3.41727
  norm       = 0.0001
  norm       = 0.91488
  Prefactor  = 3.6259
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.85665
  Prefactor  = 0.000100002
  norm       = 14.2296
  Prefactor  = 1.06814
  Normalizat = 1.02083
  Prefactor  = 1.02802
 **********
 **   18 **HESSE 
 **********

 FCN=   7136.995     FROM HESSE     STATUS=OK           350 CALLS     3369 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .51749        .58834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .45863        .93691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2136        .16924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6487        .10518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.1598        30.158        .14938E-03   -1.5173    
   6  Prefactor     .10000E-03    65.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4312        .98531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16170        143.63        .34287E-02   -1.5628    
   9  norm          .96555        2.3422        .20417E-02   -1.5511    
  10  Prefactor     5.2924        11.253        .17457E-03   -1.5248    
  11  norm          3.4173        .91946        .38316E-04   -1.5338    
  12  norm          .10000E-03    30.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .91488        .42413        .36229E-04   -1.5517    
  14  Prefactor     3.6259        6.3231        .10603E-02   -1.5327    
  15  norm          .10000E-03    11.716        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8567        1.9603        .94137E-04   -1.5370    
  18  Prefactor     .10000E-03    106.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.230        27.705        .10618E-03   -1.4953    
  20  Prefactor     1.0681        35.128        .42451E-02   -1.5501    
  21  Normalizat    1.0208        .27212        .36307E-03   -.92336    
  22  Prefactor     1.0280        .12956        .18082E-03   -.91801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38009e-08
Minuit parameter uncertainties:
  1  3.96406e-06
  2  1.23048e-05
  3  1.3062e-05
  4  1.87038e-05
  5  29.4141
  6  0.000163362
  7  2.42797e-06
  8  9.65875
  9  2.34245
  10  11.257
  11  0.919466
  12  9.61125e-06
  13  0.424133
  14  6.32428
  15  0.000160891
  16  3.91059e-05
  17  1.96029
  18  0.000905959
  19  27.7298
  20  12.2583
  21  0.272493
  22  0.129596
Done.

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

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  3.417e+00  9.195e-01  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  4.833e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.644e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.028e+00  1.296e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.021e+00  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 58.03
Ra Dec: 35.281 35.936
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.41e-07 +/- 6.49e-08
Energy Flux (Fixed Index): 9.37e-05 +/- 2.52e-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) = 7132.04833308
delta logL = 4.94692151428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7132.01271347
delta logL = 4.98254112149

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7132.013     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6855        1.0318        .52596E-03    .73902E-04
   2  alpha         1.5728        .18432        .14991       -.64895E-04
   3  Normalizat    1.1363        .21851        .78418E-01    .95420E-04
   4  Prefactor     .99519        .10876        .46207E-01    .21783E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.68554
  alpha      = 1.57282
  Normalizat = 1.13634
  Prefactor  = 0.995186
 **********
 **   18 **HESSE 
 **********

 FCN=   7132.013     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6855        1.1150        .21039E-04   -1.5324    
   2  alpha         1.5728        .20468        .64533E-02   -.37995    
   3  Normalizat    1.1363        .25214        .34711E-03   -.88593    
   4  Prefactor     .99519        .12553        .18351E-03   -.92890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42343e-11
Minuit parameter uncertainties:
  1  1.11502
  2  0.20495
  3  0.252409
  4  0.125564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/308163': 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) = 7132.01271346
delta logL = 4.98254113708

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  3.686e+00  1.115e+00  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  1.573e+00  2.049e-01  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  4.833e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.644e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.952e-01  1.256e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.136e+00  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 67.97
Ra Dec: 35.281 35.936
Photon Index (Free Index): 1.57 +/- 0.20
Photon Flux (Free Index): 1.40e-07 +/- 4.96e-08
Energy Flux (Free Index): 2.38e-04 +/- 1.09e-04

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/308163/cmap_HighResolution_255139201_255398401_4FGL_J0221.1+3556_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.41e-07', energy_flux2='2.38e-04', photon_flux_error='6.49e-08', dlogl='4.98e+00', energy_flux='9.37e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-08-15 17:55:08.172886', photon_index_error2='0.20', photon_index2='1.57', ts='58.03', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.09e-04', EG='1.02', time_epoch_completed='1629075308.17', return_code='0', job_id='308163', GAL2='1.00', EG2='1.14', return_code2='0', energy_flux_error='2.52e-05', photon_flux_error2='4.96e-08', ts2='67.97', photon_index='2.25' WHERE bin_id='61' AND source_name='4FGL J0221.1+3556' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:55:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 308163: <4FGL_J0221.1+3556_daily_bin61> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin61> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 17:40:43 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:42:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 17:42:37 2021
Terminated at Sun Aug 15 17:55:08 2021
Results reported at Sun Aug 15 17:55:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin61 35.281 35.9359 255139201 255398401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0221.1+3556 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   632.45 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             301.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            865 sec.

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

