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


Performing analysis on: 4FGL_J0224.2+0700_daily_bin652
RA = 36.0577, Dec = 7.0126
tmin = 408326401, tmax = 408585601
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='355828', job_status='RUN', time_executed='2021-08-15 20:08:41.416505', time_epoch_executed='1629083321.42' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355828/ft1_4FGL_J0224.2+0700_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355828/ft2_4FGL_J0224.2+0700_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355828/ft1_4FGL_J0224.2+0700_daily_bin652.fits outfile=/scratch/kocevski/355828/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin652.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=408326401.0 tmax=408585601.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 7.65
user 4.66
sys 2.81

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/355828/ft2_4FGL_J0224.2+0700_daily_bin652.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/355828/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin652.fits evtable="EVENTS" outfile="/scratch/kocevski/355828/ft1_filtered_4FGL_J0224.2+0700_daily_bin652.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.14
user 0.35
sys 2.71

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355828/ft1_filtered_4FGL_J0224.2+0700_daily_bin652.fits" evtable="EVENTS" scfile=/scratch/kocevski/355828/ft2_4FGL_J0224.2+0700_daily_bin652.fits sctable="SC_DATA" outfile=/scratch/kocevski/355828/ltcube_408326401_408585601_4FGL_J0224.2+0700_daily_bin652.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/355828/ft2_4FGL_J0224.2+0700_daily_bin652.fits
.....................!
real 17.88
user 14.30
sys 3.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355828/ft1_filtered_4FGL_J0224.2+0700_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/355828/ft2_4FGL_J0224.2+0700_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/355828/ltcube_408326401_408585601_4FGL_J0224.2+0700_daily_bin652.fits outfile=/scratch/kocevski/355828/expmap_408326401_408585601_4FGL_J0224.2+0700_daily_bin652.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/355828/ltcube_408326401_408585601_4FGL_J0224.2+0700_daily_bin652.fits
.....................!
real 198.47
user 186.99
sys 8.73

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/355828/ft1_filtered_4FGL_J0224.2+0700_daily_bin652.fits scfile=/scratch/kocevski/355828/ft2_4FGL_J0224.2+0700_daily_bin652.fits outfile=/scratch/kocevski/355828/cmap_408326401_408585601_4FGL_J0224.2+0700_daily_bin652.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.16
user 0.38
sys 2.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355828/ft1_filtered_4FGL_J0224.2+0700_daily_bin652.fits scfile=/scratch/kocevski/355828/ft2_4FGL_J0224.2+0700_daily_bin652.fits outfile=/scratch/kocevski/355828/cmap_HighResolution_408326401_408585601_4FGL_J0224.2+0700_daily_bin652.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.12
user 0.40
sys 2.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12320       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18740E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10208       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.371       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7010       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6867       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.816       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.035       1.0000         .10000E-03   10000.    
    19 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.5723       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5252       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70445       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=   3230.338     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3148 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8913       -.15411E-07** at limit **
   2  norm          .10000E-03    25.137        .26185E-05** at limit **
   3  Prefactor     .10000E-03    6.7009       -.38569E-06** at limit **
   4  Prefactor     .16026        6.8599        .48789E-05   -.58379E-03
   5  norm          .10000E-03    4.5156       -.39752E-07** at limit **
   6  Prefactor     .10000E-03    4.1114       -.10698E-05** at limit **
   7  norm          .10345        1.5304        .54362E-06   -.10002E-03
   8  Prefactor     .10000E-03    91.938        .13301E-05** at limit **
   9  Prefactor     .10000E-03    43.181       -.16411E-05** at limit **
  10  Prefactor     18.376        14.492       -.12030E-05    .27581E-04
  11  Prefactor     .10000E-03    42.841       -.14038E-05** at limit **
  12  Prefactor     3.6988        11.929        .66758E-05    .37275E-03
  13  Prefactor     7.6948        21.777       -.12176E-06   -.30161E-04
  14  Prefactor     22.821        17.437       -.86041E-07    .48789E-05
  15  Prefactor     .10000E-03    9.9127       -.54957E-06** at limit **
  16  norm          .10000E-03    .26315        .24825E-07** at limit **
  17  Prefactor     .10000E-03    20.590       -.10342E-05** at limit **
  18  Prefactor     20.038        18.922        .23542E-06   -.76007E-05
  19  norm          .10000E-03    7.6070        .17908E-06** at limit **
  20  Prefactor     .10000E-03    7.9437       -.11572E-06** at limit **
  21  Prefactor     .10000E-03    18.484       -.13688E-05** at limit **
  22  Prefactor     .10000E-03    39.911        .10965E-05** at limit **
  23  Prefactor     .10000E-03    2.5474       -.25947E-07** at limit **
  24  norm          .10000E-03    6.2383        .42018E-06** at limit **
  25  norm          .10000E-03    6.4490       -.36141E-06** at limit **
  26  Prefactor     .10000E-03    7.2613        .20697E-06** at limit **
  27  norm          6.5711        14.228        .42161E-06    .52865E-04
  28  Normalizat    1.5249        .28654       -.19035E-05   -.43600E-04
  29  Prefactor     .70446        .14727        .38868E-06   -.15041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.160259
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.103448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3759
  Prefactor  = 0.0001
  Prefactor  = 3.69884
  Prefactor  = 7.69483
  Prefactor  = 22.8215
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0382
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.57113
  Normalizat = 1.52495
  Prefactor  = 0.704458
 **********
 **   18 **HESSE 
 **********

 FCN=   3230.338     FROM HESSE     STATUS=OK           549 CALLS     3697 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9366        .12276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    25.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7241        .14368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16026        14.432        .16896E-02   -1.5628    
   5  norm          .10000E-03    4.5325        .11792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5114        .21805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10345        3.5619        .12894E-02   -1.5644    
   8  Prefactor     .10000E-03    92.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.376        14.757        .93444E-04   -1.4850    
  11  Prefactor     .10000E-03    42.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6988        13.506        .10496E-02   -1.5323    
  13  Prefactor     7.6948        21.751        .14464E-03   -1.5153    
  14  Prefactor     22.821        17.451        .83857E-04   -1.4752    
  15  Prefactor     .10000E-03    10.013        .17469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .27948        .56861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.038        18.934        .89483E-04   -1.4812    
  19  norm          .10000E-03    7.6126        .15304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.9475        .15647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    39.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5512        .88595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.2494        .13865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.6132        .28149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.3639        .14952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.5711        14.281        .15654E-03   -1.5195    
  28  Normalizat    1.5249        .31449        .26696E-03   -.77080    
  29  Prefactor     .70446        .16525        .20181E-03   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03862e-08
Minuit parameter uncertainties:
  1  8.35772e-07
  2  7.95154e-05
  3  1.11166e-05
  4  3.04145
  5  4.91319e-06
  6  0.000174663
  7  1.21353
  8  0.000142724
  9  8.14732e-05
  10  14.7596
  11  9.31615e-05
  12  13.5174
  13  21.7733
  14  17.4546
  15  2.34676e-06
  16  4.97612e-07
  17  4.00641e-05
  18  18.9396
  19  9.00171e-06
  20  2.01443e-06
  21  4.91494e-05
  22  5.32328e-05
  23  1.21943e-06
  24  6.30464e-06
  25  6.55738e-06
  26  6.7068e-06
  27  14.2883
  28  0.314891
  29  0.165364
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  1.427e-04  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:  7.045e-01  1.654e-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.525e+00  3.149e-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.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/355828/likelihoodResults_408326401_408585601_4FGL_J0224.2+0700_daily_bin652.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) = 3230.33773813
delta logL = -5.13972199769e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3230.33768682
delta logL = -8.90363480721e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4566       1.0000          .0000       10.000    
     3 'Normalizat'    1.5250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70446       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=   3230.338     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      242 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9029.9        .90712E-02** at limit **
   2  Index         2.5221        7.6326        .50000       -.80246E-05
   3  Normalizat    1.5249        .10808        .60367E-01   -.25985E-03
   4  Prefactor     .70446        .57715E-01    .42461E-01   -.81976E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.52208
  Normalizat = 1.52494
  Prefactor  = 0.704459
 **********
 **   18 **HESSE 
 **********

 FCN=   3230.338     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9984.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5221        6.9762        .50000       -.51851    
   3  Normalizat    1.5249        .24678        .26696E-03   -.77080    
   4  Prefactor     .70446        .13299        .20181E-03   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.30841e-10
Minuit parameter uncertainties:
  1  0.0229962
  2  67.2647
  3  0.246975
  4  0.13305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355828': 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) = 3230.3376867
delta logL = 3.57708813681e-08

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  2.300e-02  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.522e+00  6.726e+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:  7.045e-01  1.331e-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.525e+00  2.470e-01  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/355828/cmap_HighResolution_408326401_408585601_4FGL_J0224.2+0700_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', job_status='DONE', photon_flux_upper_limit='1.78e-07', time_completed='2021-08-15 20:19:04.488828', job_id='355828', GAL2='0.70', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1629083944.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='3.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='652' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:19:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 355828: <4FGL_J0224.2+0700_daily_bin652> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin652> 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) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 20:06:06 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:06 2021
Terminated at Sun Aug 15 20:19:05 2021
Results reported at Sun Aug 15 20:19:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin652 36.0577 7.0126 408326401 408585601 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 :                                   650.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            811 sec.

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

