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


Performing analysis on: 4FGL_J0224.2+0700_daily_bin613
RA = 36.0577, Dec = 7.0126
tmin = 398217601, tmax = 398476801
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='355773', job_status='RUN', time_executed='2021-08-15 20:09:43.371999', time_epoch_executed='1629083383.37' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355773

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355773/ft1_4FGL_J0224.2+0700_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355773/ft2_4FGL_J0224.2+0700_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355773/ft1_4FGL_J0224.2+0700_daily_bin613.fits outfile=/scratch/kocevski/355773/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin613.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=398217601.0 tmax=398476801.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 6.55
user 6.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355773/ft1_filtered_4FGL_J0224.2+0700_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/355773/ft2_4FGL_J0224.2+0700_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/355773/ltcube_398217601_398476801_4FGL_J0224.2+0700_daily_bin613.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/355773/ft2_4FGL_J0224.2+0700_daily_bin613.fits
.....................!
real 12.01
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355773/ft1_filtered_4FGL_J0224.2+0700_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/355773/ft2_4FGL_J0224.2+0700_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/355773/ltcube_398217601_398476801_4FGL_J0224.2+0700_daily_bin613.fits outfile=/scratch/kocevski/355773/expmap_398217601_398476801_4FGL_J0224.2+0700_daily_bin613.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/355773/ltcube_398217601_398476801_4FGL_J0224.2+0700_daily_bin613.fits
.....................!
real 192.71
user 187.48
sys 4.64

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/355773/ft1_filtered_4FGL_J0224.2+0700_daily_bin613.fits scfile=/scratch/kocevski/355773/ft2_4FGL_J0224.2+0700_daily_bin613.fits outfile=/scratch/kocevski/355773/cmap_398217601_398476801_4FGL_J0224.2+0700_daily_bin613.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355773/ft1_filtered_4FGL_J0224.2+0700_daily_bin613.fits scfile=/scratch/kocevski/355773/ft2_4FGL_J0224.2+0700_daily_bin613.fits outfile=/scratch/kocevski/355773/cmap_HighResolution_398217601_398476801_4FGL_J0224.2+0700_daily_bin613.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95363       1.0000         .10000E-03   10000.    
     2 'norm      '    20.126       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6492       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.652       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1836       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7847       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5288       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.931       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2589       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.053       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7637       1.0000         .10000E-03   10000.    
    16 'norm      '    .10254E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    20.633       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.114       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.0838       1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.4395       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.7935       1.0000         .10000E-03   10000.    
    27 'norm      '    7.7421       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1957       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87223       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=   4917.523     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3140 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95332        6.4512        .65484E-06   -.71369E-04
   2  norm          20.125        17.592       -.94247E-07   -.56945E-05
   3  Prefactor     1.6492        6.3416        .10738E-04    .32049E-04
   4  Prefactor     .10000E-03    1.4589       -.19232E-06** at limit **
   5  norm          10.652        8.3694       -.11021E-06   -.25089E-04
   6  Prefactor     4.1831        4.9425        .15189E-06   -.45976E-04
   7  norm          1.7845        1.3427        .12057E-06   -.82479E-04
   8  Prefactor     .10000E-03    19.158        .55466E-06** at limit **
   9  Prefactor     4.4488        121.33        .34563E-04   -.11102E-04
  10  Prefactor     .10000E-03    11.132       -.79174E-06** at limit **
  11  Prefactor     10.935        93.857       -.86843E-06   -.26177E-05
  12  Prefactor     .10000E-03    5.4481       -.23536E-06** at limit **
  13  Prefactor     6.2585        14.289        .10787E-05   -.42135E-05
  14  Prefactor     20.053        16.674        .35808E-06   -.27709E-05
  15  Prefactor     6.7711        11.393        .62003E-06    .30771E-03
  16  norm          .10000E-03    .44738       -.41159E-06** at limit **
  17  Prefactor     .10000E-03    18.511        .14016E-05** at limit **
  18  Prefactor     .10000E-03    29.638        .42537E-06** at limit **
  19  norm          20.635        14.428        .39162E-06    .14088E-04
  20  Prefactor     .10000E-03    6.7851       -.16967E-06** at limit **
  21  Prefactor     12.135        35.137       -.48622E-05   -.90710E-05
  22  Prefactor     .10000E-03    24.264       -.19443E-05** at limit **
  23  Prefactor     6.0832        6.5709        .21911E-06   -.80918E-05
  24  norm          .10000E-03    4.4485       -.10539E-07** at limit **
  25  norm          7.4390        5.6773        .25322E-06   -.78091E-05
  26  Prefactor     6.7935        6.2975        .11078E-06   -.48011E-05
  27  norm          7.7424        9.9129        .40610E-06   -.30727E-06
  28  Normalizat    1.1959        .24526       -.18453E-05    .12608E-04
  29  Prefactor     .87218        .13237       -.10672E-05   -.18597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.953319
  norm       = 20.1246
  Prefactor  = 1.64917
  Prefactor  = 0.0001
  norm       = 10.6516
  Prefactor  = 4.18315
  norm       = 1.78454
  Prefactor  = 0.0001
  Prefactor  = 4.44881
  Prefactor  = 0.0001
  Prefactor  = 10.9354
  Prefactor  = 0.0001
  Prefactor  = 6.25854
  Prefactor  = 20.0531
  Prefactor  = 6.77108
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.6348
  Prefactor  = 0.0001
  Prefactor  = 12.1352
  Prefactor  = 0.0001
  Prefactor  = 6.08322
  norm       = 0.0001
  norm       = 7.439
  Prefactor  = 6.79352
  norm       = 7.74239
  Normalizat = 1.19588
  Prefactor  = 0.872179
 **********
 **   18 **HESSE 
 **********

 FCN=   4917.523     FROM HESSE     STATUS=OK           565 CALLS     3705 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95332        12.836        .33649E-02   -1.5513    
   2  norm          20.125        17.595        .89279E-04   -1.4810    
   3  Prefactor     1.6492        6.3501        .16440E-02   -1.5451    
   4  Prefactor     .10000E-03    1.4745        .82682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.652        8.3364        .61381E-03   -1.5055    
   6  Prefactor     4.1831        4.9214        .14702E-03   -1.5299    
   7  norm          1.7845        1.3438        .66106E-04   -1.5441    
   8  Prefactor     .10000E-03    19.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4488        121.36        .18918E-03   -1.5286    
  10  Prefactor     .10000E-03    11.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.935        93.614        .12118E-03   -1.5046    
  12  Prefactor     .10000E-03    5.4731        .15979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.2585        14.275        .80227E-03   -1.5208    
  14  Prefactor     20.053        16.661        .89442E-04   -1.4812    
  15  Prefactor     6.7711        10.472        .15428E-03   -1.5187    
  16  norm          .10000E-03    1.2219        .82860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          20.635        14.417        .88177E-04   -1.4799    
  20  Prefactor     .10000E-03    6.7909        .17840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.135        35.128        .11510E-03   -1.5011    
  22  Prefactor     .10000E-03    24.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.0832        6.5677        .16278E-03   -1.5215    
  24  norm          .10000E-03    4.4507        .14444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.4390        5.6832        .13845E-03   -1.5162    
  26  Prefactor     6.7935        6.2987        .15394E-03   -1.5187    
  27  norm          7.7424        9.9364        .14412E-03   -1.5151    
  28  Normalizat    1.1959        .27348        .30940E-03   -.86730    
  29  Prefactor     .87218        .14866        .19792E-03   -.97120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30869e-08
Minuit parameter uncertainties:
  1  6.99763
  2  17.5992
  3  6.35273
  4  9.92947e-06
  5  8.33729
  6  4.92188
  7  1.34386
  8  8.73516e-06
  9  46.576
  10  5.59295e-05
  11  64.1264
  12  1.65986e-05
  13  14.2825
  14  16.6653
  15  10.4746
  16  2.79457e-05
  17  7.07957e-05
  18  8.71602e-05
  19  14.4198
  20  1.90912e-05
  21  35.1878
  22  1.11224e-05
  23  6.56843
  24  1.25661e-06
  25  5.68361
  26  6.29934
  27  9.93855
  28  0.273803
  29  0.148727
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  8.735e-06  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.722e-01  1.487e-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.196e+00  2.738e-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.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/355773/likelihoodResults_398217601_398476801_4FGL_J0224.2+0700_daily_bin613.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) = 4917.52369781
delta logL = -0.000248405372076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4917.52345205
delta logL = -2.64714253717e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11243E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4714       1.0000          .0000       10.000    
     3 'Normalizat'    1.1959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87218       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=   4917.523     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      242 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    134.44        .90712E-02** at limit **
   2  Index         3.4509        7.4662        .50000        .18571E-04
   3  Normalizat    1.1959        .23579E-01    .69929E-01    .89102E-04
   4  Prefactor     .87218        .13175E-01    .44649E-01    .64084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.45094
  Normalizat = 1.19588
  Prefactor  = 0.872179
 **********
 **   18 **HESSE 
 **********

 FCN=   4917.523     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4509        6.6488        .50000       -.31499    
   3  Normalizat    1.1959        .24946        .30940E-03   -.86730    
   4  Prefactor     .87218        .13963        .19792E-03   -.97120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89451e-10
Minuit parameter uncertainties:
  1  0.000196614
  2  4.79001
  3  0.249711
  4  0.139683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355773': 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) = 4917.52345138
delta logL = -1.98313318833e-06

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  1.966e-04  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  3.451e+00  4.790e+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:  8.722e-01  1.397e-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.196e+00  2.497e-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/355773/cmap_HighResolution_398217601_398476801_4FGL_J0224.2+0700_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.25e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-08-15 20:21:20.751514', job_id='355773', GAL2='0.87', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1629084080.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-1.98e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='613' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:21:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 355773: <4FGL_J0224.2+0700_daily_bin613> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin613 36.0577 7.0126 398217601 398476801 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            951 sec.

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

