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


Performing analysis on: 4FGL_J0224.2+0700_daily_bin177
RA = 36.0577, Dec = 7.0126
tmin = 285206401, tmax = 285465601
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='354129', job_status='RUN', time_executed='2021-08-15 20:01:17.996620', time_epoch_executed='1629082878.0' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354129

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/354129/ft1_4FGL_J0224.2+0700_daily_bin177.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/354129/ft2_4FGL_J0224.2+0700_daily_bin177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/354129/ft1_4FGL_J0224.2+0700_daily_bin177.fits outfile=/scratch/kocevski/354129/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin177.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=285206401.0 tmax=285465601.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.01
user 3.27
sys 1.68

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/354129/ft2_4FGL_J0224.2+0700_daily_bin177.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/354129/ft2_4FGL_J0224.2+0700_daily_bin177.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/354129/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin177.fits evtable="EVENTS" outfile="/scratch/kocevski/354129/ft1_filtered_4FGL_J0224.2+0700_daily_bin177.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 2.03
user 0.34
sys 1.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/354129/ft1_filtered_4FGL_J0224.2+0700_daily_bin177.fits" evtable="EVENTS" scfile=/scratch/kocevski/354129/ft2_4FGL_J0224.2+0700_daily_bin177.fits sctable="SC_DATA" outfile=/scratch/kocevski/354129/ltcube_285206401_285465601_4FGL_J0224.2+0700_daily_bin177.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/354129/ft2_4FGL_J0224.2+0700_daily_bin177.fits
.....................!
real 17.50
user 15.42
sys 1.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354129/ft1_filtered_4FGL_J0224.2+0700_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/354129/ft2_4FGL_J0224.2+0700_daily_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/354129/ltcube_285206401_285465601_4FGL_J0224.2+0700_daily_bin177.fits outfile=/scratch/kocevski/354129/expmap_285206401_285465601_4FGL_J0224.2+0700_daily_bin177.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/354129/ltcube_285206401_285465601_4FGL_J0224.2+0700_daily_bin177.fits
.....................!
real 196.35
user 187.43
sys 7.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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0224.2+0700 @ 36.0577 7.0126

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/354129/ft1_filtered_4FGL_J0224.2+0700_daily_bin177.fits scfile=/scratch/kocevski/354129/ft2_4FGL_J0224.2+0700_daily_bin177.fits outfile=/scratch/kocevski/354129/cmap_285206401_285465601_4FGL_J0224.2+0700_daily_bin177.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.0577 yref=7.0126 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 2.08
user 0.36
sys 1.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354129/ft1_filtered_4FGL_J0224.2+0700_daily_bin177.fits scfile=/scratch/kocevski/354129/ft2_4FGL_J0224.2+0700_daily_bin177.fits outfile=/scratch/kocevski/354129/cmap_HighResolution_285206401_285465601_4FGL_J0224.2+0700_daily_bin177.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.0577 yref=7.0126 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 2.02
user 0.39
sys 1.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/354129/ft1_filtered_4FGL_J0224.2+0700_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/354129/ft2_4FGL_J0224.2+0700_daily_bin177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/354129/Model_4FGL_J0224.2+0700_daily_bin177.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/354129/ft1_filtered_4FGL_J0224.2+0700_daily_bin177.fits.....................!
real 87.83
user 84.47
sys 2.92

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/354129/ft1_filtered_4FGL_J0224.2+0700_daily_bin177.fits', '/scratch/kocevski/354129/ft2_4FGL_J0224.2+0700_daily_bin177.fits', expMap='/scratch/kocevski/354129/expmap_285206401_285465601_4FGL_J0224.2+0700_daily_bin177.fits', expCube='/scratch/kocevski/354129/ltcube_285206401_285465601_4FGL_J0224.2+0700_daily_bin177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/354129/Model_4FGL_J0224.2+0700_daily_bin177.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0224.2+0700'

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  3.952e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/354129/ft1_filtered_4FGL_J0224.2+0700_daily_bin177.fits
Spacecraft file(s): /scratch/kocevski/354129/ft2_4FGL_J0224.2+0700_daily_bin177.fits
Exposure map: /scratch/kocevski/354129/expmap_285206401_285465601_4FGL_J0224.2+0700_daily_bin177.fits
Exposure cube: /scratch/kocevski/354129/ltcube_285206401_285465601_4FGL_J0224.2+0700_daily_bin177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/354129/Model_4FGL_J0224.2+0700_daily_bin177.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) = 6935.13946625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18978E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.875       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0500       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4582       1.0000         .10000E-03   10000.    
     5 'norm      '    .71174E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7636       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0167       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.815       1.0000         .10000E-03   10000.    
     9 'Prefactor '    99.490       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0409       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .32691       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.899       1.0000         .10000E-03   10000.    
    19 'norm      '    16.996       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.654       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5911       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .67922       1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .48473       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.7834       1.0000         .10000E-03   10000.    
    27 'norm      '    22.076       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .70796       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6935.134     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3711 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1238       -.47735E-06** at limit **
   2  norm          10.875        12.052       -.26273E-07    .19271E-05
   3  Prefactor     3.0479        7.0028        .23594E-07   -.21317E-04
   4  Prefactor     2.4579        2.2154       -.10231E-06   -.18699E-04
   5  norm          .10000E-03    4.1905        .10206E-06** at limit **
   6  Prefactor     5.7630        2.9306       -.19428E-06   -.41153E-04
   7  norm          3.0167        1.0515        .30834E-07    .54818E-04
   8  Prefactor     15.815        16.648        .21942E-06   -.48712E-05
   9  Prefactor     99.494        58.155        .29277E-05    .63021E-05
  10  Prefactor     2.0430        5.5248       -.76158E-06   -.46075E-04
  11  Prefactor     .10000E-03    19.524        .21923E-05** at limit **
  12  Prefactor     .10000E-03    7.6052       -.79287E-08** at limit **
  13  Prefactor     .10000E-03    12.327        .91117E-06** at limit **
  14  Prefactor     .10000E-03    2.4239       -.51144E-07** at limit **
  15  Prefactor     .10000E-03    3.0056        .80818E-08** at limit **
  16  norm          .32668        .37672       -.38516E-07   -.38878E-03
  17  Prefactor     .10000E-03    18.717       -.22748E-05** at limit **
  18  Prefactor     18.893        18.560       -.23803E-05   -.48246E-04
  19  norm          16.997        12.810       -.17414E-06   -.42277E-05
  20  Prefactor     16.656        20.101        .57770E-06    .42844E-05
  21  Prefactor     5.5919        21.454        .59802E-06    .12776E-05
  22  Prefactor     .10000E-03    12.464        .67585E-06** at limit **
  23  Prefactor     .68548        4.0723        .42727E-06   -.74892E-04
  24  norm          .10000E-03    8.7278       -.12326E-06** at limit **
  25  norm          .48941        2.4173        .35752E-07   -.21264E-04
  26  Prefactor     2.7815        1.4920        .73991E-07   -.57519E-03
  27  norm          22.075        11.554        .11501E-06   -.20619E-04
  28  Normalizat    .70801        .19487        .40432E-06   -.91721E-05
  29  Prefactor     1.0665        .11275       -.16780E-06   -.28739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 10.8747
  Prefactor  = 3.0479
  Prefactor  = 2.45788
  norm       = 0.0001
  Prefactor  = 5.76303
  norm       = 3.01671
  Prefactor  = 15.8151
  Prefactor  = 99.494
  Prefactor  = 2.04305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.326681
  Prefactor  = 0.0001
  Prefactor  = 18.8929
  norm       = 16.9966
  Prefactor  = 16.6561
  Prefactor  = 5.59192
  Prefactor  = 0.0001
  Prefactor  = 0.685475
  norm       = 0.0001
  norm       = 0.489413
  Prefactor  = 2.78154
  norm       = 22.0748
  Normalizat = 0.70801
  Prefactor  = 1.06651
 **********
 **   18 **HESSE 
 **********

 FCN=   6935.134     FROM HESSE     STATUS=OK           573 CALLS     4284 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.782        .31908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.875        12.048        .12149E-03   -1.5048    
   3  Prefactor     3.0479        6.9791        .23231E-03   -1.5359    
   4  Prefactor     2.4579        2.2168        .11333E-03   -1.5394    
   5  norm          .10000E-03    4.4199        .49681E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7630        2.9278        .95347E-04   -1.5228    
   7  norm          3.0167        1.0537        .23367E-04   -1.5361    
   8  Prefactor     15.815        16.643        .10071E-03   -1.4912    
   9  Prefactor     99.494        58.123        .40304E-04   -1.3710    
  10  Prefactor     2.0430        5.5141        .28947E-03   -1.5422    
  11  Prefactor     .10000E-03    19.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.7432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4253        .12661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0109        .14095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .32668        .34802        .51495E-03   -1.5594    
  17  Prefactor     .10000E-03    18.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.893        18.582        .92130E-04   -1.4838    
  19  norm          16.997        12.804        .97152E-04   -1.4883    
  20  Prefactor     16.656        19.915        .98143E-04   -1.4892    
  21  Prefactor     5.5919        21.422        .16990E-03   -1.5235    
  22  Prefactor     .10000E-03    12.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .68548        21.178        .30447E-02   -1.5542    
  24  norm          .10000E-03    8.7930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .48941        8.9797        .23854E-02   -1.5568    
  26  Prefactor     2.7815        6.3272        .12195E-02   -1.5374    
  27  norm          22.075        11.544        .85250E-04   -1.4768    
  28  Normalizat    .70801        .20663        .36564E-03   -1.0358    
  29  Prefactor     1.0665        .12600        .17988E-03   -.90544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4866e-08
Minuit parameter uncertainties:
  1  0.000368755
  2  12.0504
  3  6.981
  4  2.21691
  5  1.04015e-05
  6  2.9279
  7  1.0537
  8  16.6476
  9  58.1561
  10  5.5155
  11  5.96363e-06
  12  7.61273e-06
  13  1.96358e-05
  14  1.17674e-06
  15  2.69074e-06
  16  0.34802
  17  2.71125e-06
  18  18.5879
  19  12.8059
  20  19.9231
  21  21.4519
  22  9.59855e-07
  23  7.62267
  24  4.45238e-07
  25  4.19306
  26  6.32875
  27  11.5451
  28  0.206856
  29  0.126039
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.582e+01  1.665e+01  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.067e+00  1.260e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  7.080e-01  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.61
Ra Dec: 36.058 7.013
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 2.76e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 8.00e-06 +/- 8.43e-06

TS (Fixed Index): 2.61
Ra Dec: 36.058 7.013
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/354129/likelihoodResults_285206401_285465601_4FGL_J0224.2+0700_daily_bin177.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6934.69859477
delta logL = 0.435280488227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6934.68619632
delta logL = 0.44767894094

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.712       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7270       1.0000          .0000       10.000    
     3 'Normalizat'    .72064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+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=   6934.686     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      244 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.716        20.805        .92591E-04   -.16871E-03
   2  Index         1.7271        .73919        .11915E-01   -.94089E-05
   3  Normalizat    .72062        .19447        .36282E-03   -.43968E-03
   4  Prefactor     1.0635        .11615        .18012E-03   -.59316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7157
  Index      = 1.72707
  Normalizat = 0.72062
  Prefactor  = 1.06346
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.686     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.716        21.063        .18518E-04   -1.4842    
   2  Index         1.7271        .74851        .47660E-03   -.71364    
   3  Normalizat    .72062        .19454        .14513E-04   -1.0308    
   4  Prefactor     1.0635        .11619        .36025E-04   -.90643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55086e-10
Minuit parameter uncertainties:
  1  21.0711
  2  0.75349
  3  0.194731
  4  0.11622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354129': 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) = 6934.68619629
delta logL = 0.447678972347

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.872e+01  2.107e+01  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  1.727e+00  7.535e-01  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.063e+00  1.162e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  7.206e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 36.058 7.013
Photon Index (Free Index): 1.73 +/- 0.75
Photon Flux (Free Index): 1.20e-08 +/- 1.80e-08
Energy Flux (Free Index): 1.79e-05 +/- 3.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/354129/cmap_HighResolution_285206401_285465601_4FGL_J0224.2+0700_daily_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.53e-03', comment='SUCCESS', photon_flux='2.76e-08', energy_flux2='1.79e-05', photon_flux_error='2.91e-08', dlogl='4.48e-01', energy_flux='8.00e-06', photon_flux2='1.20e-08', job_status='DONE', time_completed='2021-08-15 20:16:20.142309', photon_index_error2='0.75', photon_index2='1.73', ts='2.61', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='3.00e-05', EG='0.71', time_epoch_completed='1629083780.14', return_code='0', job_id='354129', GAL2='1.06', EG2='0.72', return_code2='0', energy_flux_error='8.43e-06', photon_flux_error2='1.80e-08', ts2='3.50', photon_index='2.50' WHERE bin_id='177' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:16:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 354129: <4FGL_J0224.2+0700_daily_bin177> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin177> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 20:00:28 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 20:00:40 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:00:40 2021
Terminated at Sun Aug 15 20:16:20 2021
Results reported at Sun Aug 15 20:16:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin177 36.0577 7.0126 285206401 285465601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0224.2+0700 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   917.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            952 sec.

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

