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


Performing analysis on: 4FGL_J0221.1+3556_daily_bin322
RA = 35.281, Dec = 35.9359
tmin = 322790401, tmax = 323049601
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='309516', job_status='RUN', time_executed='2021-08-15 17:47:05.250492', time_epoch_executed='1629074825.25' WHERE source_name='4FGL J0221.1+3556' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309516/ft1_4FGL_J0221.1+3556_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309516/ft2_4FGL_J0221.1+3556_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309516/ft1_4FGL_J0221.1+3556_daily_bin322.fits outfile=/scratch/kocevski/309516/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin322.fits ra=35.281 dec=35.9359 rad=12.0 tmin=322790401.0 tmax=323049601.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 13.06
user 11.96
sys 0.98

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309516/ft2_4FGL_J0221.1+3556_daily_bin322.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/309516/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin322.fits evtable="EVENTS" outfile="/scratch/kocevski/309516/ft1_filtered_4FGL_J0221.1+3556_daily_bin322.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.22
user 0.35
sys 0.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309516/ft1_filtered_4FGL_J0221.1+3556_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/309516/ft2_4FGL_J0221.1+3556_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/309516/ltcube_322790401_323049601_4FGL_J0221.1+3556_daily_bin322.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/309516/ft2_4FGL_J0221.1+3556_daily_bin322.fits
.....................!
real 13.94
user 12.92
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309516/ft1_filtered_4FGL_J0221.1+3556_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/309516/ft2_4FGL_J0221.1+3556_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/309516/ltcube_322790401_323049601_4FGL_J0221.1+3556_daily_bin322.fits outfile=/scratch/kocevski/309516/expmap_322790401_323049601_4FGL_J0221.1+3556_daily_bin322.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/309516/ltcube_322790401_323049601_4FGL_J0221.1+3556_daily_bin322.fits
.....................!
real 194.05
user 187.51
sys 5.92

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/309516/ft1_filtered_4FGL_J0221.1+3556_daily_bin322.fits scfile=/scratch/kocevski/309516/ft2_4FGL_J0221.1+3556_daily_bin322.fits outfile=/scratch/kocevski/309516/cmap_322790401_323049601_4FGL_J0221.1+3556_daily_bin322.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.21
user 0.37
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309516/ft1_filtered_4FGL_J0221.1+3556_daily_bin322.fits scfile=/scratch/kocevski/309516/ft2_4FGL_J0221.1+3556_daily_bin322.fits outfile=/scratch/kocevski/309516/cmap_HighResolution_322790401_323049601_4FGL_J0221.1+3556_daily_bin322.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.21
user 0.41
sys 0.79

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/309516/ft1_filtered_4FGL_J0221.1+3556_daily_bin322.fits', '/scratch/kocevski/309516/ft2_4FGL_J0221.1+3556_daily_bin322.fits', expMap='/scratch/kocevski/309516/expmap_322790401_323049601_4FGL_J0221.1+3556_daily_bin322.fits', expCube='/scratch/kocevski/309516/ltcube_322790401_323049601_4FGL_J0221.1+3556_daily_bin322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/309516/Model_4FGL_J0221.1+3556_daily_bin322.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/309516/ft1_filtered_4FGL_J0221.1+3556_daily_bin322.fits
Spacecraft file(s): /scratch/kocevski/309516/ft2_4FGL_J0221.1+3556_daily_bin322.fits
Exposure map: /scratch/kocevski/309516/expmap_322790401_323049601_4FGL_J0221.1+3556_daily_bin322.fits
Exposure cube: /scratch/kocevski/309516/ltcube_322790401_323049601_4FGL_J0221.1+3556_daily_bin322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/309516/Model_4FGL_J0221.1+3556_daily_bin322.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) = 8919.89190398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1255       1.0000         .10000E-03   10000.    
     2 'norm      '    .66400       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .60626E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.105       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11222E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    37.625       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2350       1.0000         .10000E-03   10000.    
    11 'norm      '    .88511       1.0000         .10000E-03   10000.    
    12 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .59963       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.119       1.0000         .10000E-03   10000.    
    17 'norm      '    5.0751       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.945       1.0000         .10000E-03   10000.    
    19 'norm      '    17.174       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4358       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80290       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=   8919.888     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2370 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1256        1.1784       -.28342E-07   -.76803E-04
   2  norm          .66402        .63257        .64752E-07    .21742E-03
   3  Prefactor     .10000E-03    19.929       -.38049E-06** at limit **
   4  Prefactor     .10000E-03    1.5692       -.90764E-07** at limit **
   5  Prefactor     11.104        22.732       -.33165E-06   -.71356E-05
   6  Prefactor     .10000E-03    94.912        .13660E-04** at limit **
   7  norm          37.626        8.1613       -.37437E-05   -.20267E-04
   8  Prefactor     .10000E-03    3.6720        .28793E-06** at limit **
   9  norm          .10000E-03    2.3803       -.17808E-07** at limit **
  10  Prefactor     6.2355        6.7726        .67362E-05   -.33453E-04
  11  norm          .88486        .59844       -.18054E-06   -.79393E-03
  12  norm          .10000E-03    135.64       -.22681E-04** at limit **
  13  norm          .59957        .28225       -.17690E-07   -.41652E-03
  14  Prefactor     .10000E-03    1.5539        .14715E-07** at limit **
  15  norm          .10000E-03    1.2525        .68637E-08** at limit **
  16  Prefactor     39.119        29.892        .13491E-06    .42201E-05
  17  norm          5.0753        2.7580       -.11389E-06   -.34015E-03
  18  Prefactor     26.943        69.308       -.32793E-05   -.11152E-05
  19  norm          17.176        40.674        .21224E-05   -.34634E-05
  20  Prefactor     .10000E-03    5.6221       -.21960E-07** at limit **
  21  Normalizat    1.4361        .21991        .87112E-06   -.26794E-04
  22  Prefactor     .80280        .10100        .62651E-07    .36945E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.1256
  norm       = 0.664022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1044
  Prefactor  = 0.0001
  norm       = 37.6261
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.23548
  norm       = 0.884863
  norm       = 0.0001
  norm       = 0.599569
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.1192
  norm       = 5.0753
  Prefactor  = 26.9433
  norm       = 17.1759
  Prefactor  = 0.0001
  Normalizat = 1.43607
  Prefactor  = 0.802795
 **********
 **   18 **HESSE 
 **********

 FCN=   8919.888     FROM HESSE     STATUS=OK           348 CALLS     2718 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1256        1.1781        .73823E-04   -1.5416    
   2  norm          .66402        .60844        .71209E-03   -1.5545    
   3  Prefactor     .10000E-03    20.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.002        .21875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.104        22.723        .12022E-03   -1.5041    
   6  Prefactor     .10000E-03    95.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          37.626        8.1626        .65340E-04   -1.4480    
   8  Prefactor     .10000E-03    3.6949        .17669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4164        .14176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2355        6.7571        .16076E-03   -1.5208    
  11  norm          .88486        .59320        .56701E-04   -1.5520    
  12  norm          .10000E-03    135.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .59957        .28191        .33179E-04   -1.5553    
  14  Prefactor     .10000E-03    1.5593        .11494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2534        .10322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     39.119        29.879        .64085E-04   -1.4456    
  17  norm          5.0753        2.7554        .11102E-03   -1.5257    
  18  Prefactor     26.943        69.268        .77176E-04   -1.4669    
  19  norm          17.176        40.736        .96647E-04   -1.4879    
  20  Prefactor     .10000E-03    5.6538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4361        .24558        .33506E-03   -.79591    
  22  Prefactor     .80280        .11659        .20507E-03   -.99625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12056e-10
Minuit parameter uncertainties:
  1  1.17815
  2  0.608446
  3  1.05707e-05
  4  8.20996e-05
  5  22.7409
  6  0.00014499
  7  8.16283
  8  4.86821e-05
  9  3.67627e-06
  10  6.75794
  11  0.593208
  12  3.00221e-05
  13  0.281911
  14  1.69559e-06
  15  5.26408e-07
  16  29.8904
  17  2.75547
  18  69.4757
  19  40.8019
  20  3.01159e-06
  21  0.24578
  22  0.116625
Done.

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

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  8.849e-01  5.932e-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:  8.028e-01  1.166e-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.436e+00  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.97
Ra Dec: 35.281 35.936
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 6.24e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.63e-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) = 8919.88763621
delta logL = 6.34379830444e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8919.88763613
delta logL = 7.11543179932e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88487       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2533       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80280       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=   8919.888     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      193 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88479        9.4346        .12753E-01    .48870E-03
   2  alpha         2.2531        3.3436        .41408        .20323E-05
   3  Normalizat    1.4362        .83002E-01    .75713E-01    .11906E-04
   4  Prefactor     .80276        .31154E-01    .43754E-01    .13438E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.884787
  alpha      = 2.25308
  Normalizat = 1.43619
  Prefactor  = 0.802762
 **********
 **   18 **HESSE 
 **********

 FCN=   8919.888     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .16E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88479        .58968        .56721E-04   -1.5520    
   2  alpha         2.2531        .92866        .19861E-01   -.98928E-01
   3  Normalizat    1.4362        .25938        .33505E-03   -.79587    
   4  Prefactor     .80276        .11714        .20507E-03   -.99627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60102e-14
Minuit parameter uncertainties:
  1  0.589688
  2  0.951706
  3  0.259619
  4  0.117173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309516': 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) = 8919.88763604
delta logL = 8.03129296401e-07

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  8.848e-01  5.897e-01  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  2.253e+00  9.517e-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:  8.028e-01  1.172e-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.436e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 35.281 35.936
Photon Index (Free Index): 2.25 +/- 0.95
Photon Flux (Free Index): 6.23e-08 +/- 8.42e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.66e-05

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/309516/cmap_HighResolution_322790401_323049601_4FGL_J0221.1+3556_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.24e-08', energy_flux2='2.43e-05', photon_flux_error='4.18e-08', dlogl='8.03e-07', energy_flux='2.43e-05', photon_flux2='6.23e-08', job_status='DONE', time_completed='2021-08-15 18:00:23.721343', photon_index_error2='0.95', photon_index2='2.25', ts='5.97', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.66e-05', EG='1.44', time_epoch_completed='1629075623.72', return_code='0', job_id='309516', GAL2='0.80', EG2='1.44', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='8.42e-08', ts2='5.96', photon_index='2.25' WHERE bin_id='322' AND source_name='4FGL J0221.1+3556' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 18:00:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 309516: <4FGL_J0221.1+3556_daily_bin322> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin322> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 17:45:19 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:46:36 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:46:36 2021
Terminated at Sun Aug 15 18:00:24 2021
Results reported at Sun Aug 15 18:00:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin322 35.281 35.9359 322790401 323049601 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 :                                   801.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            905 sec.

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

