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


Performing analysis on: 4FGL_J0224.2+0700_daily_bin658
RA = 36.0577, Dec = 7.0126
tmin = 409881601, tmax = 410140801
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='355837', job_status='RUN', time_executed='2021-08-15 20:09:12.043528', time_epoch_executed='1629083352.04' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355837

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355837/ft1_4FGL_J0224.2+0700_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355837/ft2_4FGL_J0224.2+0700_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355837/ft1_4FGL_J0224.2+0700_daily_bin658.fits outfile=/scratch/kocevski/355837/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin658.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=409881601.0 tmax=410140801.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.63
user 4.85
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/355837/ft2_4FGL_J0224.2+0700_daily_bin658.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/355837/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/355837/ft1_filtered_4FGL_J0224.2+0700_daily_bin658.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.97
user 0.28
sys 0.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355837/ft1_filtered_4FGL_J0224.2+0700_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/355837/ft2_4FGL_J0224.2+0700_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/355837/ltcube_409881601_410140801_4FGL_J0224.2+0700_daily_bin658.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/355837/ft2_4FGL_J0224.2+0700_daily_bin658.fits
.....................!
real 11.17
user 10.22
sys 0.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355837/ft1_filtered_4FGL_J0224.2+0700_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/355837/ft2_4FGL_J0224.2+0700_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/355837/ltcube_409881601_410140801_4FGL_J0224.2+0700_daily_bin658.fits outfile=/scratch/kocevski/355837/expmap_409881601_410140801_4FGL_J0224.2+0700_daily_bin658.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/355837/ltcube_409881601_410140801_4FGL_J0224.2+0700_daily_bin658.fits
.....................!
real 156.39
user 151.59
sys 4.42

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/355837/ft1_filtered_4FGL_J0224.2+0700_daily_bin658.fits scfile=/scratch/kocevski/355837/ft2_4FGL_J0224.2+0700_daily_bin658.fits outfile=/scratch/kocevski/355837/cmap_409881601_410140801_4FGL_J0224.2+0700_daily_bin658.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 1.01
user 0.33
sys 0.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355837/ft1_filtered_4FGL_J0224.2+0700_daily_bin658.fits scfile=/scratch/kocevski/355837/ft2_4FGL_J0224.2+0700_daily_bin658.fits outfile=/scratch/kocevski/355837/cmap_HighResolution_409881601_410140801_4FGL_J0224.2+0700_daily_bin658.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 1.02
user 0.33
sys 0.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17663       1.0000         .10000E-03   10000.    
     2 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.960       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.566       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3513       1.0000         .10000E-03   10000.    
     7 'norm      '    .53119       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0661       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.152       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8378       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    117.89       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.7775       1.0000         .10000E-03   10000.    
    25 'norm      '    5.6708       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14073E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .79751       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95876       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=   5726.528     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3758 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18050        3.8754       -.64832E-07   -.50489E-04
   2  norm          .10000E-03    14.139       -.63209E-07** at limit **
   3  Prefactor     14.960        11.675        .20105E-06   -.12840E-04
   4  Prefactor     .10000E-03    1.6342        .52277E-07** at limit **
   5  norm          16.565        7.6137       -.78770E-07   -.38175E-04
   6  Prefactor     4.3515        2.9996       -.13989E-06   -.14232E-03
   7  norm          .53116        .50289        .59628E-08    .37207E-04
   8  Prefactor     .10000E-03    8.0836       -.53468E-06** at limit **
   9  Prefactor     .10000E-03    70.500       -.44810E-06** at limit **
  10  Prefactor     6.0664        6.1416       -.68035E-07   -.92205E-04
  11  Prefactor     34.084        78.809        .10144E-04   -.26084E-04
  12  Prefactor     .10000E-03    4.6994        .33784E-06** at limit **
  13  Prefactor     .10000E-03    5.5437       -.14665E-06** at limit **
  14  Prefactor     .10000E-03    2.9040       -.18248E-06** at limit **
  15  Prefactor     .10000E-03    18.332        .28876E-05** at limit **
  16  norm          .10000E-03    .44508        .35134E-06** at limit **
  17  Prefactor     9.8887        130.11       -.17059E-04   -.74215E-04
  18  Prefactor     .10000E-03    8.4559       -.17959E-06** at limit **
  19  norm          .10000E-03    8.2009        .30513E-06** at limit **
  20  Prefactor     .10000E-03    38.217        .68385E-06** at limit **
  21  Prefactor     117.88        68.990        .26100E-05   -.14431E-03
  22  Prefactor     .10000E-03    19.505       -.18670E-05** at limit **
  23  Prefactor     .10000E-03    2.2675        .35103E-07** at limit **
  24  norm          1.7778        6.7538        .93260E-05   -.12218E-03
  25  norm          5.6706        4.1070       -.20317E-06   -.71369E-04
  26  Prefactor     .10030E-03    5.2982        .46735E-06** at limit **
  27  norm          .10000E-03    3.2623       -.13201E-07** at limit **
  28  Normalizat    .79762        .18990        .14181E-06   -.18530E-03
  29  Prefactor     .95873        .11263       -.93768E-06   -.36831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.180499
  norm       = 0.0001
  Prefactor  = 14.9601
  Prefactor  = 0.0001
  norm       = 16.5654
  Prefactor  = 4.35151
  norm       = 0.53116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.06643
  Prefactor  = 34.084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.88875
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 117.878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.77782
  norm       = 5.67063
  Prefactor  = 0.000100302
  norm       = 0.0001
  Normalizat = 0.797617
  Prefactor  = 0.95873
 **********
 **   18 **HESSE 
 **********

 FCN=   5726.528     FROM HESSE     STATUS=OK           557 CALLS     4315 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18050        16.660        .28723E-02   -1.5623    
   2  norm          .10000E-03    14.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.960        11.667        .10355E-03   -1.4934    
   4  Prefactor     .10000E-03    1.6557        .94413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.565        7.6058        .98403E-04   -1.4894    
   6  Prefactor     4.3515        2.9935        .10237E-03   -1.5291    
   7  norm          .53116        .52068        .50463E-03   -1.5562    
   8  Prefactor     .10000E-03    8.0962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    70.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0664        6.1385        .16302E-03   -1.5215    
  11  Prefactor     34.084        78.479        .68571E-04   -1.4540    
  12  Prefactor     .10000E-03    4.7166        .16015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.5490        .17402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.9077        .12595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0380        .96008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.8887        130.38        .12776E-03   -1.5079    
  18  Prefactor     .10000E-03    8.4898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.2475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     117.88        68.343        .37059E-04   -1.3532    
  22  Prefactor     .10000E-03    19.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.2776        .11126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.7778        6.7651        .15698E-02   -1.5441    
  25  norm          5.6706        4.1161        .12453E-03   -1.5232    
  26  Prefactor     .10030E-03    6.1392        .52357E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.2775        .13347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .79762        .20865        .33083E-03   -1.0016    
  29  Prefactor     .95873        .12493        .17702E-03   -.94118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90453e-08
Minuit parameter uncertainties:
  1  3.46824
  2  1.29718e-05
  3  11.6691
  4  3.15871e-06
  5  7.60622
  6  2.99357
  7  0.520683
  8  2.56621e-05
  9  8.61141e-05
  10  6.13911
  11  78.7179
  12  3.71806e-05
  13  1.41437e-05
  14  1.20606e-05
  15  0.000193186
  16  1.46197e-06
  17  72.0048
  18  7.63142e-08
  19  2.13037e-05
  20  3.89838e-05
  21  68.3889
  22  3.72655e-05
  23  2.31375e-06
  24  6.76805
  25  4.11629
  26  0.00272534
  27  1.21373e-06
  28  0.208859
  29  0.12497
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  2.566e-05  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:  9.587e-01  1.250e-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.976e-01  2.089e-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: 6.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/355837/likelihoodResults_409881601_410140801_4FGL_J0224.2+0700_daily_bin658.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) = 5726.52855815
delta logL = -0.000587482463743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5726.52797056
delta logL = 1.04123500932e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4817       1.0000          .0000       10.000    
     3 'Normalizat'    .79762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95873       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=   5726.528     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      259 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.332        .18142E-01** at limit **
   2  Index         1.9258        8.9329        .50000        .13476E-06
   3  Normalizat    .79762        .86900E-02    .33083E-03    .37217E-03
   4  Prefactor     .95873        .50942E-02    .17702E-03    .62467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92582
  Normalizat = 0.797619
  Prefactor  = 0.958731
 **********
 **   18 **HESSE 
 **********

 FCN=   5726.528     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    215.47        .23963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9258        6.4953        .50000       -.66218    
   3  Normalizat    .79762        .24922E-01    .13233E-04   -1.0016    
   4  Prefactor     .95873        .14610E-01    .35403E-04   -.94118    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.85745e-10
Minuit parameter uncertainties:
  1  0.000132751
  2  815.073
  3  0.0249221
  4  0.0146097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355837': 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) = 5726.52796924
delta logL = 1.42736462294e-06

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  1.328e-04  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  1.926e+00  8.151e+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:  9.587e-01  1.461e-02  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.976e-01  2.492e-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/355837/cmap_HighResolution_409881601_410140801_4FGL_J0224.2+0700_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', job_status='DONE', photon_flux_upper_limit='6.73e-08', time_completed='2021-08-15 20:20:07.751504', job_id='355837', GAL2='0.96', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1629084007.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='658' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:20:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 355837: <4FGL_J0224.2+0700_daily_bin658> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin658 36.0577 7.0126 409881601 410140801 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 :                                   660.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            875 sec.

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

