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


Performing analysis on: 4FGL_J0224.2+0700_daily_bin618
RA = 36.0577, Dec = 7.0126
tmin = 399513601, tmax = 399772801
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='355780', job_status='RUN', time_executed='2021-08-15 20:09:30.058354', time_epoch_executed='1629083370.06' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355780

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355780/ft1_4FGL_J0224.2+0700_daily_bin618.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355780/ft2_4FGL_J0224.2+0700_daily_bin618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355780/ft1_4FGL_J0224.2+0700_daily_bin618.fits outfile=/scratch/kocevski/355780/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin618.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=399513601.0 tmax=399772801.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 8.38
user 4.98
sys 3.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355780/ft1_filtered_4FGL_J0224.2+0700_daily_bin618.fits" evtable="EVENTS" scfile=/scratch/kocevski/355780/ft2_4FGL_J0224.2+0700_daily_bin618.fits sctable="SC_DATA" outfile=/scratch/kocevski/355780/ltcube_399513601_399772801_4FGL_J0224.2+0700_daily_bin618.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/355780/ft2_4FGL_J0224.2+0700_daily_bin618.fits
.....................!
real 17.44
user 13.45
sys 3.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355780/ft1_filtered_4FGL_J0224.2+0700_daily_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/355780/ft2_4FGL_J0224.2+0700_daily_bin618.fits sctable="SC_DATA" expcube=/scratch/kocevski/355780/ltcube_399513601_399772801_4FGL_J0224.2+0700_daily_bin618.fits outfile=/scratch/kocevski/355780/expmap_399513601_399772801_4FGL_J0224.2+0700_daily_bin618.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/355780/ltcube_399513601_399772801_4FGL_J0224.2+0700_daily_bin618.fits
.....................!
real 196.90
user 187.01
sys 9.40

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/355780/ft1_filtered_4FGL_J0224.2+0700_daily_bin618.fits scfile=/scratch/kocevski/355780/ft2_4FGL_J0224.2+0700_daily_bin618.fits outfile=/scratch/kocevski/355780/cmap_399513601_399772801_4FGL_J0224.2+0700_daily_bin618.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 3.60
user 0.37
sys 3.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355780/ft1_filtered_4FGL_J0224.2+0700_daily_bin618.fits scfile=/scratch/kocevski/355780/ft2_4FGL_J0224.2+0700_daily_bin618.fits outfile=/scratch/kocevski/355780/cmap_HighResolution_399513601_399772801_4FGL_J0224.2+0700_daily_bin618.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 3.67
user 0.40
sys 3.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8223       1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1476       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .94249       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7006       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2856       1.0000         .10000E-03   10000.    
    16 'norm      '    .11034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    18.425       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.3660       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.5164       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2401       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83826       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=   3408.846     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3675 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8233        12.960        .40333E-05   -.13488E-03
   2  norm          .10002E-03    43.060       -.58935E-05** at limit **
   3  Prefactor     .10000E-03    10.308        .84879E-06** at limit **
   4  Prefactor     .10004E-03    3.0526       -.14769E-05** at limit **
   5  norm          6.1480        7.4189        .29639E-05   -.19280E-03
   6  Prefactor     .93940        3.0550        .25206E-06   -.13591E-03
   7  norm          .10000E-03    .44015        .24077E-07** at limit **
   8  Prefactor     .10003E-03    64.681        .69986E-05** at limit **
   9  Prefactor     5.6993        77.185        .87257E-06    .57679E-05
  10  Prefactor     .10000E-03    5.4906        .10084E-07** at limit **
  11  Prefactor     .10001E-03    32.773        .30397E-05** at limit **
  12  Prefactor     .10000E-03    7.2444        .59851E-07** at limit **
  13  Prefactor     .10000E-03    58.132       -.13981E-05** at limit **
  14  Prefactor     .10000E-03    8.8042       -.37219E-08** at limit **
  15  Prefactor     7.2996        12.737        .32063E-06   -.60637E-04
  16  norm          .10000E-03    .41091        .31893E-07** at limit **
  17  Prefactor     .10000E-03    22.935        .13843E-06** at limit **
  18  Prefactor     .10000E-03    18.321       -.19160E-05** at limit **
  19  norm          18.421        16.181        .16081E-06   -.11451E-04
  20  Prefactor     .10000E-03    15.779        .12071E-05** at limit **
  21  Prefactor     .10000E-03    16.551        .32556E-06** at limit **
  22  Prefactor     .10002E-03    241.64       -.54287E-05** at limit **
  23  Prefactor     .10000E-03    2.6799        .27097E-07** at limit **
  24  norm          .10000E-03    5.2459        .23432E-07** at limit **
  25  norm          7.3665        5.7902       -.39482E-07   -.18786E-03
  26  Prefactor     9.5169        8.4719        .11097E-06   -.89167E-05
  27  norm          .10000E-03    3.4363       -.11764E-07** at limit **
  28  Normalizat    1.2401        .26642       -.20861E-05    .16657E-03
  29  Prefactor     .83821        .14368       -.23734E-06    .18228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.82335
  norm       = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  norm       = 6.14795
  Prefactor  = 0.939399
  norm       = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 5.69935
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.29957
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 18.421
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.36648
  Prefactor  = 9.51685
  norm       = 0.0001
  Normalizat = 1.24007
  Prefactor  = 0.838209
 **********
 **   18 **HESSE 
 **********

 FCN=   3408.846     FROM HESSE     STATUS=OK           543 CALLS     4218 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8233        13.122        .76805E-03   -1.5185    
   2  norm          .10002E-03    45.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    11.199        .18657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1480        7.5269        .80959E-03   -1.5212    
   6  Prefactor     .93940        2.9553        .17365E-03   -1.5514    
   7  norm          .10000E-03    .44540        .37809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    68.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6993        77.062        .16824E-03   -1.5230    
  10  Prefactor     .10000E-03    5.5105        .13360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    33.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.2916        .15341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    58.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.8303        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2996        12.121        .14860E-03   -1.5168    
  16  norm          .10000E-03    .75841        .68762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          18.421        16.194        .93307E-04   -1.4849    
  20  Prefactor     .10000E-03    15.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    244.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6830        .93346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.2477        .13061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.3665        5.8130        .11926E-03   -1.5165    
  26  Prefactor     9.5169        8.4733        .12991E-03   -1.5091    
  27  norm          .10000E-03    3.4395        .10570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2401        .29628        .29325E-03   -.85373    
  29  Prefactor     .83821        .16144        .18807E-03   -.98335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59259e-09
Minuit parameter uncertainties:
  1  13.1278
  2  0.00196448
  3  0.000140548
  4  0.00139265
  5  7.52805
  6  2.95572
  7  5.27749e-07
  8  0.00291962
  9  41.9802
  10  2.56799e-06
  11  0.00096009
  12  1.27018e-05
  13  0.000612219
  14  1.66949e-06
  15  12.1246
  16  7.49641e-07
  17  3.88434e-05
  18  0.000448847
  19  16.1978
  20  0.00025657
  21  7.37254e-05
  22  0.00466852
  23  2.32886e-06
  24  4.16969e-06
  25  5.81347
  26  8.47439
  27  1.21368e-06
  28  0.296686
  29  0.16153
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  2.920e-03  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:  8.382e-01  1.615e-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:  1.240e+00  2.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/355780/likelihoodResults_399513601_399772801_4FGL_J0224.2+0700_daily_bin618.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) = 3408.84598669
delta logL = -6.96949309713e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3408.84591714
delta logL = -1.41450527735e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7422       1.0000          .0000       10.000    
     3 'Normalizat'    1.2401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83821       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.

 FCN=   3408.846     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      245 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.745        .90712E-02** at limit **
   2  Index         2.7127        6.3501        .50000        .39337E-05
   3  Normalizat    1.2401        .69985E-02    .66291E-01   -.34836E-04
   4  Prefactor     .83821        .37890E-02    .44213E-01   -.38802E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.71273
  Normalizat = 1.24007
  Prefactor  = 0.83821
 **********
 **   18 **HESSE 
 **********

 FCN=   3408.846     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      278 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    307.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7127        8.1558        .50000       -.47513    
   3  Normalizat    1.2401        .17018E-01    .29325E-03   -.85373    
   4  Prefactor     .83821        .92201E-02    .18807E-03   -.98335    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.84269e-08
Minuit parameter uncertainties:
  1  0.000365696
  2  351.248
  3  0.0170182
  4  0.00922009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355780': 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) = 3408.84591708
delta logL = -8.18763510324e-08

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  3.657e-04  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.713e+00  3.512e+02  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:  8.382e-01  9.220e-03  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:  1.240e+00  1.702e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.058 7.013

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/355780/cmap_HighResolution_399513601_399772801_4FGL_J0224.2+0700_daily_bin618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-08-15 20:20:14.250500', job_id='355780', GAL2='0.84', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1629084014.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-8.19e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='618' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:20:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 355780: <4FGL_J0224.2+0700_daily_bin618> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin618> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 15 20:05:31 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 20:05:48 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:05:48 2021
Terminated at Sun Aug 15 20:20:15 2021
Results reported at Sun Aug 15 20:20:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin618 36.0577 7.0126 399513601 399772801 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 :                                   688.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            884 sec.

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

