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


Performing analysis on: 4FGL_J0221.1+3556_daily_bin45
RA = 35.281, Dec = 35.9359
tmin = 250992001, tmax = 251251201
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='308138', job_status='RUN', time_executed='2021-08-15 17:44:27.897602', time_epoch_executed='1629074667.9' WHERE source_name='4FGL J0221.1+3556' and cadence='daily' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/308138

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/308138/ft1_4FGL_J0221.1+3556_daily_bin45.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/308138/ft2_4FGL_J0221.1+3556_daily_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/308138/ft1_4FGL_J0221.1+3556_daily_bin45.fits outfile=/scratch/kocevski/308138/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin45.fits ra=35.281 dec=35.9359 rad=12.0 tmin=250992001.0 tmax=251251201.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 7.16
user 1.28
sys 5.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/308138/ft2_4FGL_J0221.1+3556_daily_bin45.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/308138/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin45.fits evtable="EVENTS" outfile="/scratch/kocevski/308138/ft1_filtered_4FGL_J0221.1+3556_daily_bin45.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 6.18
user 0.34
sys 5.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/308138/ft1_filtered_4FGL_J0221.1+3556_daily_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/308138/ft2_4FGL_J0221.1+3556_daily_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/308138/ltcube_250992001_251251201_4FGL_J0221.1+3556_daily_bin45.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/308138/ft2_4FGL_J0221.1+3556_daily_bin45.fits
.....................!
real 23.46
user 16.65
sys 6.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/308138/ft1_filtered_4FGL_J0221.1+3556_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/308138/ft2_4FGL_J0221.1+3556_daily_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/308138/ltcube_250992001_251251201_4FGL_J0221.1+3556_daily_bin45.fits outfile=/scratch/kocevski/308138/expmap_250992001_251251201_4FGL_J0221.1+3556_daily_bin45.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/308138/ltcube_250992001_251251201_4FGL_J0221.1+3556_daily_bin45.fits
.....................!
real 200.69
user 187.55
sys 12.53

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/308138/ft1_filtered_4FGL_J0221.1+3556_daily_bin45.fits scfile=/scratch/kocevski/308138/ft2_4FGL_J0221.1+3556_daily_bin45.fits outfile=/scratch/kocevski/308138/cmap_250992001_251251201_4FGL_J0221.1+3556_daily_bin45.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 6.97
user 0.40
sys 5.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/308138/ft1_filtered_4FGL_J0221.1+3556_daily_bin45.fits scfile=/scratch/kocevski/308138/ft2_4FGL_J0221.1+3556_daily_bin45.fits outfile=/scratch/kocevski/308138/cmap_HighResolution_250992001_251251201_4FGL_J0221.1+3556_daily_bin45.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 6.10
user 0.41
sys 5.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8077       1.0000         .10000E-03   10000.    
     2 'norm      '    .20427       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41771E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6863       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.581       1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.443       1.0000         .10000E-03   10000.    
     7 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2834       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0866       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0565       1.0000         .10000E-03   10000.    
    12 'norm      '    94.741       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12931E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0543       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11989E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78372       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0622       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=   7270.134     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2449 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8075        1.1809        .37479E-07   -.25924E-05
   2  norm          .20486        .54615       -.28600E-06   -.12885E-03
   3  Prefactor     .10000E-03    55.289        .50066E-05** at limit **
   4  Prefactor     4.6779        3.9761        .25549E-07    .12705E-03
   5  Prefactor     27.576        23.263        .15473E-06    .32372E-04
   6  Prefactor     71.296        73.349       -.40346E-05    .42747E-04
   7  norm          .10000E-03    1.9954       -.12620E-06** at limit **
   8  Prefactor     1.2841        4.0984       -.48281E-06    .35769E-06
   9  norm          .10000E-03    2.2528       -.34600E-07** at limit **
  10  Prefactor     2.0896        7.9528       -.90774E-06    .74679E-05
  11  norm          2.0564        .70534       -.28076E-08    .25082E-03
  12  norm          94.745        84.445        .22544E-07   -.14599E-05
  13  norm          1.6300        .49184        .69539E-08    .93135E-04
  14  Prefactor     .10000E-03    3.4989       -.24144E-06** at limit **
  15  norm          .10000E-03    3.3508       -.97257E-08** at limit **
  16  Prefactor     .10000E-03    9.8789       -.31136E-07** at limit **
  17  norm          2.0548        1.6387       -.97321E-07   -.98383E-05
  18  Prefactor     .10000E-03    43.904       -.56604E-06** at limit **
  19  norm          .10000E-03    95.570       -.42368E-06** at limit **
  20  Prefactor     .10000E-03    8.0752       -.76706E-07** at limit **
  21  Normalizat    .78368        .23775        .26299E-05    .74765E-04
  22  Prefactor     1.0621        .11107       -.20263E-06    .23922E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80753
  norm       = 0.204857
  Prefactor  = 0.0001
  Prefactor  = 4.6779
  Prefactor  = 27.5756
  Prefactor  = 71.2961
  norm       = 0.0001
  Prefactor  = 1.28414
  norm       = 0.0001
  Prefactor  = 2.08956
  norm       = 2.05644
  norm       = 94.7451
  norm       = 1.63004
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.05483
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.783677
  Prefactor  = 1.06211
 **********
 **   18 **HESSE 
 **********

 FCN=   7270.134     FROM HESSE     STATUS=OK           348 CALLS     2797 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8075        1.1902        .72915E-04   -1.5439    
   2  norm          .20486        .55196        .99609E-04   -1.5617    
   3  Prefactor     .10000E-03    54.410        .49827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6779        3.9978        .73470E-03   -1.5275    
   5  Prefactor     27.576        23.178        .76283E-04   -1.4657    
   6  Prefactor     71.296        72.383        .23748E-03   -1.4017    
   7  norm          .10000E-03    2.0626        .23514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2841        4.0208        .29310E-03   -1.5481    
   9  norm          .10000E-03    2.3282        .24901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0896        7.9110        .28583E-03   -1.5419    
  11  norm          2.0564        .70098        .39704E-04   -1.5421    
  12  norm          94.745        84.452        .20646E-03   -1.3758    
  13  norm          1.6300        .48970        .31405E-04   -1.5453    
  14  Prefactor     .10000E-03    11.842        .30383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3672        .15227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0548        1.6334        .93737E-04   -1.5421    
  18  Prefactor     .10000E-03    43.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    98.777        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .78368        .25840        .39862E-03   -1.0068    
  22  Prefactor     1.0621        .12407        .17346E-03   -.90687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21941e-10
Minuit parameter uncertainties:
  1  1.19023
  2  0.551971
  3  0.000168721
  4  3.99805
  5  23.1856
  6  72.4721
  7  7.62071e-07
  8  4.02166
  9  3.59467e-06
  10  7.915
  11  0.700985
  12  84.5592
  13  0.489703
  14  0.000201016
  15  4.56684e-06
  16  3.11003e-06
  17  1.63341
  18  1.14549e-05
  19  0.000261439
  20  1.30304e-05
  21  0.258804
  22  0.124106
Done.

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

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  2.056e+00  7.010e-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.062e+00  1.241e-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:  7.837e-01  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.72
Ra Dec: 35.281 35.936
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 4.94e-08
Energy Flux (Fixed Index): 5.64e-05 +/- 1.92e-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) = 7269.53631816
delta logL = 0.597507095869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7269.53594763
delta logL = 0.597877618833

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2622       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9172       1.0000          .0000       5.0000    
     3 'Normalizat'    .82811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0488       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=   7269.536     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2622        1.1797        .68278E-02    .60976E-04
   2  alpha         1.9172        .40971        .22783        .20939E-05
   3  Normalizat    .82812        .22140        .87802E-01    .48240E-04
   4  Prefactor     1.0488        .10969        .39980E-01    .91723E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2622
  alpha      = 1.91724
  Normalizat = 0.828122
  Prefactor  = 1.04881
 **********
 **   18 **HESSE 
 **********

 FCN=   7269.536     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2622        .80570        .44039E-04   -1.5407    
   2  alpha         1.9172        .29911        .93801E-02   -.23527    
   3  Normalizat    .82812        .24816        .38886E-03   -.99034    
   4  Prefactor     1.0488        .12334        .17447E-03   -.91120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68267e-12
Minuit parameter uncertainties:
  1  0.805703
  2  0.299869
  3  0.248503
  4  0.123374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/308138': 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) = 7269.53594763
delta logL = 0.597877621214

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  2.262e+00  8.057e-01  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  1.917e+00  2.999e-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:  1.049e+00  1.234e-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:  8.281e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.78
Ra Dec: 35.281 35.936
Photon Index (Free Index): 1.92 +/- 0.30
Photon Flux (Free Index): 1.11e-07 +/- 5.01e-08
Energy Flux (Free Index): 7.84e-05 +/- 4.05e-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/308138/cmap_HighResolution_250992001_251251201_4FGL_J0221.1+3556_daily_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='7.84e-05', photon_flux_error='4.94e-08', dlogl='5.98e-01', energy_flux='5.64e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-08-15 17:57:07.848974', photon_index_error2='0.30', photon_index2='1.92', ts='33.72', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='4.05e-05', EG='0.78', time_epoch_completed='1629075427.85', return_code='0', job_id='308138', GAL2='1.05', EG2='0.83', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='5.01e-08', ts2='34.78', photon_index='2.25' WHERE bin_id='45' AND source_name='4FGL J0221.1+3556' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:57:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 308138: <4FGL_J0221.1+3556_daily_bin45> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin45> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 17:40:41 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:42:23 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:23 2021
Terminated at Sun Aug 15 17:57:09 2021
Results reported at Sun Aug 15 17:57:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin45 35.281 35.9359 250992001 251251201 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 :                                   845.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            988 sec.

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

