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


Performing analysis on: 4FGL_J0224.2+0700_daily_bin1022
RA = 36.0577, Dec = 7.0126
tmin = 504230401, tmax = 504489601
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='357345', job_status='RUN', time_executed='2021-08-15 20:11:03.206192', time_epoch_executed='1629083463.21' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357345/ft1_4FGL_J0224.2+0700_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357345/ft2_4FGL_J0224.2+0700_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357345/ft1_4FGL_J0224.2+0700_daily_bin1022.fits outfile=/scratch/kocevski/357345/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin1022.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=504230401.0 tmax=504489601.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 3.65
user 3.36
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357345/ft1_filtered_4FGL_J0224.2+0700_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/357345/ft2_4FGL_J0224.2+0700_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/357345/ltcube_504230401_504489601_4FGL_J0224.2+0700_daily_bin1022.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/357345/ft2_4FGL_J0224.2+0700_daily_bin1022.fits
.....................!
real 14.38
user 13.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357345/ft1_filtered_4FGL_J0224.2+0700_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/357345/ft2_4FGL_J0224.2+0700_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/357345/ltcube_504230401_504489601_4FGL_J0224.2+0700_daily_bin1022.fits outfile=/scratch/kocevski/357345/expmap_504230401_504489601_4FGL_J0224.2+0700_daily_bin1022.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/357345/ltcube_504230401_504489601_4FGL_J0224.2+0700_daily_bin1022.fits
.....................!
real 192.67
user 186.83
sys 5.14

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/357345/ft1_filtered_4FGL_J0224.2+0700_daily_bin1022.fits scfile=/scratch/kocevski/357345/ft2_4FGL_J0224.2+0700_daily_bin1022.fits outfile=/scratch/kocevski/357345/cmap_504230401_504489601_4FGL_J0224.2+0700_daily_bin1022.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 0.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357345/ft1_filtered_4FGL_J0224.2+0700_daily_bin1022.fits scfile=/scratch/kocevski/357345/ft2_4FGL_J0224.2+0700_daily_bin1022.fits outfile=/scratch/kocevski/357345/cmap_HighResolution_504230401_504489601_4FGL_J0224.2+0700_daily_bin1022.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 0.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/357345/ft1_filtered_4FGL_J0224.2+0700_daily_bin1022.fits', '/scratch/kocevski/357345/ft2_4FGL_J0224.2+0700_daily_bin1022.fits', expMap='/scratch/kocevski/357345/expmap_504230401_504489601_4FGL_J0224.2+0700_daily_bin1022.fits', expCube='/scratch/kocevski/357345/ltcube_504230401_504489601_4FGL_J0224.2+0700_daily_bin1022.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/357345/Model_4FGL_J0224.2+0700_daily_bin1022.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/357345/ft1_filtered_4FGL_J0224.2+0700_daily_bin1022.fits
Spacecraft file(s): /scratch/kocevski/357345/ft2_4FGL_J0224.2+0700_daily_bin1022.fits
Exposure map: /scratch/kocevski/357345/expmap_504230401_504489601_4FGL_J0224.2+0700_daily_bin1022.fits
Exposure cube: /scratch/kocevski/357345/ltcube_504230401_504489601_4FGL_J0224.2+0700_daily_bin1022.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/357345/Model_4FGL_J0224.2+0700_daily_bin1022.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) = 7310.99429499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15033E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4257       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3783       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3050       1.0000         .10000E-03   10000.    
     7 'norm      '    .28908       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.407       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.065       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0563       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4536       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1653       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.528       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.009       1.0000         .10000E-03   10000.    
    19 'norm      '    2.5224       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.297       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .68258E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.5136       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77115       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1308       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=   7310.975     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3782 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2086        .10676E-05** at limit **
   2  norm          .10000E-03    5.3642        .40486E-06** at limit **
   3  Prefactor     .10000E-03    3.4625       -.37803E-08** at limit **
   4  Prefactor     9.4254        3.3049        .10270E-06    .97784E-05
   5  norm          2.3780        2.9232        .97074E-07    .14714E-04
   6  Prefactor     8.3052        3.4179        .11632E-06    .90354E-04
   7  norm          .28942        .60927        .39628E-07   -.43470E-03
   8  Prefactor     11.384        22.367       -.14668E-06    .65915E-05
   9  Prefactor     .10000E-03    24.032       -.15197E-05** at limit **
  10  Prefactor     .10000E-03    4.2803        .15570E-06** at limit **
  11  Prefactor     .10000E-03    46.530       -.33971E-05** at limit **
  12  Prefactor     23.063        11.256       -.29713E-06    .11252E-04
  13  Prefactor     7.0603        18.772        .17606E-05    .54568E-05
  14  Prefactor     .10000E-03    12.761        .10123E-05** at limit **
  15  Prefactor     4.4579        11.400       -.16255E-05   -.19311E-03
  16  norm          1.1652        .58660       -.52786E-07   -.19108E-02
  17  Prefactor     26.484        50.288        .28312E-05   -.40372E-04
  18  Prefactor     19.009        17.887       -.66588E-07   -.10916E-03
  19  norm          2.5368        17.541       -.51629E-05   -.19476E-03
  20  Prefactor     .10000E-03    35.949        .29605E-05** at limit **
  21  Prefactor     11.208        41.437        .13140E-04   -.91631E-05
  22  Prefactor     .10000E-03    25.452        .28407E-06** at limit **
  23  Prefactor     .10480E-03    5.6858        .31351E-05** at limit **
  24  norm          .10000E-03    5.3970       -.26892E-06** at limit **
  25  norm          2.5126        4.8022        .62376E-05    .24642E-03
  26  Prefactor     .10000E-03    7.6719        .15891E-06** at limit **
  27  norm          .10000E-03    1.5963        .16993E-08** at limit **
  28  Normalizat    .77118        .19526        .75225E-06   -.20015E-03
  29  Prefactor     1.1309        .11487       -.17717E-05   -.34876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.42544
  norm       = 2.378
  Prefactor  = 8.30522
  norm       = 0.289418
  Prefactor  = 11.3841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0634
  Prefactor  = 7.06028
  Prefactor  = 0.0001
  Prefactor  = 4.45793
  norm       = 1.16523
  Prefactor  = 26.4835
  Prefactor  = 19.0088
  norm       = 2.53683
  Prefactor  = 0.000100001
  Prefactor  = 11.2075
  Prefactor  = 0.0001
  Prefactor  = 0.000104795
  norm       = 0.0001
  norm       = 2.51259
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.77118
  Prefactor  = 1.13088
 **********
 **   18 **HESSE 
 **********

 FCN=   7310.975     FROM HESSE     STATUS=OK           569 CALLS     4351 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6673        .29323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.3726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5253        .15535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.4254        3.3026        .88162E-04   -1.5094    
   5  norm          2.3780        2.9115        .15680E-03   -1.5400    
   6  Prefactor     8.3052        3.4125        .93648E-04   -1.5132    
   7  norm          .28942        .53636        .92290E-03   -1.5600    
   8  Prefactor     11.384        22.312        .11862E-03   -1.5033    
   9  Prefactor     .10000E-03    24.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3008        .17260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    46.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.063        11.201        .83405E-04   -1.4747    
  13  Prefactor     7.0603        18.713        .75509E-03   -1.5176    
  14  Prefactor     .10000E-03    13.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4579        11.343        .19081E-03   -1.5286    
  16  norm          1.1652        .58536        .41681E-04   -1.5492    
  17  Prefactor     26.484        50.026        .77780E-04   -1.4678    
  18  Prefactor     19.009        17.901        .91865E-04   -1.4836    
  19  norm          2.5368        17.583        .25722E-03   -1.5389    
  20  Prefactor     .10000E-03    36.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.208        41.348        .11919E-03   -1.5038    
  22  Prefactor     .10000E-03    25.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10480E-03    6.3516        .55021E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.4077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.5126        4.8251        .12153E-02   -1.5391    
  26  Prefactor     .10000E-03    7.9885        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.5971        .10550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77118        .20710        .36401E-03   -1.0115    
  29  Prefactor     1.1309        .12455        .18274E-03   -.88485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.3421e-09
Minuit parameter uncertainties:
  1  0.00017493
  2  3.6516e-06
  3  2.8316e-06
  4  3.30264
  5  2.91171
  6  3.41255
  7  0.536367
  8  22.3279
  9  4.70647e-05
  10  1.7333e-05
  11  0.000134943
  12  11.2019
  13  18.7286
  14  0.000110506
  15  11.3489
  16  0.585358
  17  50.1054
  18  17.906
  19  13.3629
  20  0.000368361
  21  41.4539
  22  5.73031e-06
  23  0.0110386
  24  4.11964e-07
  25  4.82584
  26  1.9171e-05
  27  1.11928e-06
  28  0.207314
  29  0.124578
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.138e+01  2.233e+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.131e+00  1.246e-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.712e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/357345/likelihoodResults_504230401_504489601_4FGL_J0224.2+0700_daily_bin1022.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) = 7310.85831955
delta logL = 0.116311133776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7310.85272547
delta logL = 0.121905219555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3938       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2543       1.0000          .0000       10.000    
     3 'Normalizat'    .75297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1361       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=   7310.853     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      320 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3928        30.248        .15873E-03   -.38834E-03
   2  Index         3.2548        2.4936        .80578E-02   -.17113E-03
   3  Normalizat    .75245        .20355        .36785E-03   -.19193E-03
   4  Prefactor     1.1364        .11938        .18230E-03   -.25514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.39284
  Index      = 3.25479
  Normalizat = 0.752454
  Prefactor  = 1.13642
 **********
 **   18 **HESSE 
 **********

 FCN=   7310.853     FROM HESSE     STATUS=OK            25 CALLS      345 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3928        17.472        .63492E-05   -1.5202    
   2  Index         3.2548        1.6153        .32231E-03   -.35655    
   3  Normalizat    .75245        .20220        .14714E-04   -1.0186    
   4  Prefactor     1.1364        .11878        .36460E-04   -.88311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85573e-09
Minuit parameter uncertainties:
  1  17.4864
  2  1.64917
  3  0.202403
  4  0.118805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357345': 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) = 7310.85272191
delta logL = 0.121908772435

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  6.393e+00  1.749e+01  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  3.255e+00  1.649e+00  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.136e+00  1.188e-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.525e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.36
Ra Dec: 36.058 7.013

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/357345/cmap_HighResolution_504230401_504489601_4FGL_J0224.2+0700_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.90e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-08-15 20:26:45.975214', job_id='357345', GAL2='1.14', fit_tolerance='1e-08', EG2='0.75', EG='0.77', time_epoch_completed='1629084405.98', return_code2='0', ts='0.36', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.22e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1022' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:26:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 357345: <4FGL_J0224.2+0700_daily_bin1022> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin1022> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 20:10:25 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 20:10:51 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:10:51 2021
Terminated at Sun Aug 15 20:26:46 2021
Results reported at Sun Aug 15 20:26:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin1022 36.0577 7.0126 504230401 504489601 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 :                                   933.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            981 sec.

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

