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


Performing analysis on: 4FGL_J0224.9+1843_daily_bin1192
RA = 36.2294, Dec = 18.7194
tmin = 548294401, tmax = 548553601
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='368354', job_status='RUN', time_executed='2021-08-15 20:41:23.382888', time_epoch_executed='1629085283.38' WHERE source_name='4FGL J0224.9+1843' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368354

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368354/ft1_4FGL_J0224.9+1843_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368354/ft2_4FGL_J0224.9+1843_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368354/ft1_4FGL_J0224.9+1843_daily_bin1192.fits outfile=/scratch/kocevski/368354/ft1_filteredMKT_4FGL_J0224.9+1843_daily_bin1192.fits ra=36.2294 dec=18.7194 rad=12.0 tmin=548294401.0 tmax=548553601.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 5.08
user 3.66
sys 1.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/368354/ft2_4FGL_J0224.9+1843_daily_bin1192.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/368354/ft2_4FGL_J0224.9+1843_daily_bin1192.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/368354/ft1_filteredMKT_4FGL_J0224.9+1843_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/368354/ft1_filtered_4FGL_J0224.9+1843_daily_bin1192.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 3.33
user 0.32
sys 1.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368354/ft1_filtered_4FGL_J0224.9+1843_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/368354/ft2_4FGL_J0224.9+1843_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/368354/ltcube_548294401_548553601_4FGL_J0224.9+1843_daily_bin1192.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/368354/ft2_4FGL_J0224.9+1843_daily_bin1192.fits
.....................!
real 14.48
user 12.53
sys 1.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368354/ft1_filtered_4FGL_J0224.9+1843_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/368354/ft2_4FGL_J0224.9+1843_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/368354/ltcube_548294401_548553601_4FGL_J0224.9+1843_daily_bin1192.fits outfile=/scratch/kocevski/368354/expmap_548294401_548553601_4FGL_J0224.9+1843_daily_bin1192.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/368354/ltcube_548294401_548553601_4FGL_J0224.9+1843_daily_bin1192.fits
.....................!
real 193.06
user 186.02
sys 6.38

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

Setting source of interest to:
4FGL J0224.9+1843 @ 36.2294 18.7194

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/368354/ft1_filtered_4FGL_J0224.9+1843_daily_bin1192.fits scfile=/scratch/kocevski/368354/ft2_4FGL_J0224.9+1843_daily_bin1192.fits outfile=/scratch/kocevski/368354/cmap_548294401_548553601_4FGL_J0224.9+1843_daily_bin1192.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=36.2294 yref=18.7194 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.59
user 0.38
sys 1.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368354/ft1_filtered_4FGL_J0224.9+1843_daily_bin1192.fits scfile=/scratch/kocevski/368354/ft2_4FGL_J0224.9+1843_daily_bin1192.fits outfile=/scratch/kocevski/368354/cmap_HighResolution_548294401_548553601_4FGL_J0224.9+1843_daily_bin1192.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=36.2294 yref=18.7194 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.69
user 0.39
sys 1.28

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/368354/ft1_filtered_4FGL_J0224.9+1843_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/368354/ft2_4FGL_J0224.9+1843_daily_bin1192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/368354/Model_4FGL_J0224.9+1843_daily_bin1192.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/368354/ft1_filtered_4FGL_J0224.9+1843_daily_bin1192.fits.....................!
real 72.19
user 68.85
sys 2.79

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/368354/ft1_filtered_4FGL_J0224.9+1843_daily_bin1192.fits', '/scratch/kocevski/368354/ft2_4FGL_J0224.9+1843_daily_bin1192.fits', expMap='/scratch/kocevski/368354/expmap_548294401_548553601_4FGL_J0224.9+1843_daily_bin1192.fits', expCube='/scratch/kocevski/368354/ltcube_548294401_548553601_4FGL_J0224.9+1843_daily_bin1192.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/368354/Model_4FGL_J0224.9+1843_daily_bin1192.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0224.9+1843'

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  9.429e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.951e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  3.218e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/368354/ft1_filtered_4FGL_J0224.9+1843_daily_bin1192.fits
Spacecraft file(s): /scratch/kocevski/368354/ft2_4FGL_J0224.9+1843_daily_bin1192.fits
Exposure map: /scratch/kocevski/368354/expmap_548294401_548553601_4FGL_J0224.9+1843_daily_bin1192.fits
Exposure cube: /scratch/kocevski/368354/ltcube_548294401_548553601_4FGL_J0224.9+1843_daily_bin1192.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/368354/Model_4FGL_J0224.9+1843_daily_bin1192.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) = 5152.31367623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3327       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5499       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.0037       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.006       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7086       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.057       1.0000         .10000E-03   10000.    
    22 'norm      '    12.366       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    65.162       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.570       1.0000         .10000E-03   10000.    
    28 'Prefactor '    332.39       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88457       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1214       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5152.235     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     4821 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.009       -.71585E-06** at limit **
   2  Prefactor     2.3325        20.342        .12824E-05   -.10850E-04
   3  Prefactor     1.5476        11.251        .17815E-04   -.11225E-03
   4  Prefactor     .10000E-03    104.22        .61307E-05** at limit **
   5  Prefactor     .10000E-03    1.6029       -.10088E-06** at limit **
   6  norm          7.0031        5.6594       -.88941E-06    .78403E-04
   7  Prefactor     .10000E-03    5.7372       -.15067E-06** at limit **
   8  Prefactor     .10000E-03    1.4122        .97236E-07** at limit **
   9  norm          .10000E-03    81.180       -.26564E-05** at limit **
  10  Prefactor     .10000E-03    28.446       -.13788E-05** at limit **
  11  Prefactor     .10000E-03    38.247        .16099E-05** at limit **
  12  Prefactor     .10000E-03    6.0080       -.14635E-06** at limit **
  13  Prefactor     .10000E-03    72.328       -.37849E-05** at limit **
  14  Prefactor     .10000E-03    47.395        .67242E-06** at limit **
  15  Prefactor     .10000E-03    12.839       -.14871E-06** at limit **
  16  Prefactor     .10000E-03    13.658       -.48828E-06** at limit **
  17  Prefactor     .10000E-03    4.2146       -.69027E-07** at limit **
  18  norm          19.006        11.402        .85353E-07    .17929E-05
  19  Prefactor     .10000E-03    21.365        .63531E-06** at limit **
  20  norm          1.7083        .95291        .22354E-07   -.50493E-03
  21  Prefactor     16.052        39.932        .95151E-06    .77097E-05
  22  norm          12.360        17.409        .89196E-06    .38698E-04
  23  Prefactor     .10000E-03    88.494       -.62362E-06** at limit **
  24  Prefactor     .10000E-03    50.821       -.39316E-06** at limit **
  25  Prefactor     65.147        35.750        .12858E-05    .69274E-04
  26  Prefactor     .10000E-03    14.052        .28349E-06** at limit **
  27  norm          10.558        19.395        .28851E-06    .67957E-05
  28  Prefactor     332.67        307.94       -.20935E-04   -.10623E-03
  29  Normalizat    .88414        .29103       -.47808E-05    .12536E-03
  30  Prefactor     1.1216        .13381        .33367E-06    .13559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.33249
  Prefactor  = 1.54757
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 7.00309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.0059
  Prefactor  = 0.0001
  norm       = 1.70826
  Prefactor  = 16.0524
  norm       = 12.3597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.1468
  Prefactor  = 0.0001
  norm       = 10.5585
  Prefactor  = 332.667
  Normalizat = 0.884137
  Prefactor  = 1.12162
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.235     FROM HESSE     STATUS=OK           576 CALLS     5397 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3325        20.317        .26849E-03   -1.5403    
   3  Prefactor     1.5476        11.359        .17107E-02   -1.5459    
   4  Prefactor     .10000E-03    104.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.6299        .88640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.0031        5.6445        .14362E-03   -1.5179    
   7  Prefactor     .10000E-03    5.7607        .16791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1660        .16361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    81.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0452        .17178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    72.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2192        .14388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.006        11.401        .91872E-04   -1.4836    
  19  Prefactor     .10000E-03    21.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7083        .94350        .49277E-04   -1.5447    
  21  Prefactor     16.052        39.892        .99953E-04   -1.4906    
  22  norm          12.360        17.392        .11391E-03   -1.5005    
  23  Prefactor     .10000E-03    89.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    50.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     65.147        35.754        .49716E-04   -1.4092    
  26  Prefactor     .10000E-03    14.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.558        19.452        .12324E-03   -1.5058    
  28  Prefactor     332.67        308.89        .11157E-03   -1.2040    
  29  Normalizat    .88414        .31780        .41683E-03   -.97020    
  30  Prefactor     1.1216        .14881        .17863E-03   -.88778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11334e-10
Minuit parameter uncertainties:
  1  5.81786e-05
  2  13.7741
  3  8.3873
  4  0.000925825
  5  9.11935e-06
  6  5.64495
  7  1.99003e-05
  8  3.30103e-07
  9  0.00037475
  10  0.000126121
  11  8.38798e-05
  12  2.02673e-05
  13  0.000499017
  14  1.68496e-05
  15  5.50332e-05
  16  3.50635e-05
  17  6.69902e-06
  18  11.4021
  19  5.58148e-06
  20  0.943509
  21  39.9585
  22  17.3988
  23  0.000144047
  24  0.000118407
  25  35.7662
  26  1.62787e-05
  27  19.4637
  28  310.433
  29  0.318479
  30  0.14887
Done.

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

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  8.388e-05  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.951e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  3.218e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.122e+00  1.489e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  8.841e-01  3.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.229 18.719
Photon Flux Upper Limit: 1.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/368354/likelihoodResults_548294401_548553601_4FGL_J0224.9+1843_daily_bin1192.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): 102
logL (Free Index) = 5152.23536254
delta logL = -0.000124368844808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5152.23523806
delta logL = 1.19797732623e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5990       1.0000          .0000       10.000    
     3 'Normalizat'    .88414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5152.235     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      273 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10028E-03    1280.1        .18142E-02** at limit **
   2  Index         3.5491        5.1924        .50000        .67550E-06
   3  Normalizat    .88413        .43241E-01    .41683E-03   -.35456E-06
   4  Prefactor     1.1216        .20777E-01    .17863E-03   -.95464E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100276
  Index      = 3.54909
  Normalizat = 0.884134
  Prefactor  = 1.12162
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.235     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10028E-03    7174.1        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5491        5.3922        .50000       -.29442    
   3  Normalizat    .88413        .97949E-01    .16673E-04   -.97020    
   4  Prefactor     1.1216        .47071E-01    .71453E-05   -.88778    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05753e-09
Minuit parameter uncertainties:
  1  0.0756704
  2  6236.26
  3  0.0979687
  4  0.047073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368354': 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): 102
logL (Free Index) = 5152.23523804
delta logL = 1.33602043206e-07

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  1.003e-04  7.567e-02  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  3.549e+00  6.236e+03  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  3.218e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.122e+00  4.707e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  8.841e-01  9.797e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.229 18.719

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/368354/cmap_HighResolution_548294401_548553601_4FGL_J0224.9+1843_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', job_status='DONE', photon_flux_upper_limit='1.87e-07', time_completed='2021-08-15 20:55:58.896455', job_id='368354', GAL2='1.12', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1629086158.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.95' WHERE bin_id='1192' AND source_name='4FGL J0224.9+1843' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:55:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 368354: <4FGL_J0224.9+1843_daily_bin1192> in cluster <slac> Done

Job <4FGL_J0224.9+1843_daily_bin1192> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 15 20:40:34 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 20:40:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 20:40:41 2021
Terminated at Sun Aug 15 20:56:00 2021
Results reported at Sun Aug 15 20:56:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_daily_bin1192 36.2294 18.7194 548294401 548553601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0224.9+1843 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   830.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            926 sec.

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

