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


Performing analysis on: 4FGL_J0224.2+0700_daily_bin606
RA = 36.0577, Dec = 7.0126
tmin = 396403201, tmax = 396662401
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='355762', job_status='RUN', time_executed='2021-08-15 20:08:28.620494', time_epoch_executed='1629083308.62' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355762

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355762/ft1_4FGL_J0224.2+0700_daily_bin606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355762/ft2_4FGL_J0224.2+0700_daily_bin606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355762/ft1_4FGL_J0224.2+0700_daily_bin606.fits outfile=/scratch/kocevski/355762/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin606.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=396403201.0 tmax=396662401.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 4.98
user 3.43
sys 1.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355762/ft1_filtered_4FGL_J0224.2+0700_daily_bin606.fits" evtable="EVENTS" scfile=/scratch/kocevski/355762/ft2_4FGL_J0224.2+0700_daily_bin606.fits sctable="SC_DATA" outfile=/scratch/kocevski/355762/ltcube_396403201_396662401_4FGL_J0224.2+0700_daily_bin606.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/355762/ft2_4FGL_J0224.2+0700_daily_bin606.fits
.....................!
real 12.35
user 10.86
sys 1.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355762/ft1_filtered_4FGL_J0224.2+0700_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/355762/ft2_4FGL_J0224.2+0700_daily_bin606.fits sctable="SC_DATA" expcube=/scratch/kocevski/355762/ltcube_396403201_396662401_4FGL_J0224.2+0700_daily_bin606.fits outfile=/scratch/kocevski/355762/expmap_396403201_396662401_4FGL_J0224.2+0700_daily_bin606.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/355762/ltcube_396403201_396662401_4FGL_J0224.2+0700_daily_bin606.fits
.....................!
real 157.93
user 151.76
sys 5.68

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/355762/ft1_filtered_4FGL_J0224.2+0700_daily_bin606.fits scfile=/scratch/kocevski/355762/ft2_4FGL_J0224.2+0700_daily_bin606.fits outfile=/scratch/kocevski/355762/cmap_396403201_396662401_4FGL_J0224.2+0700_daily_bin606.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.42
user 0.33
sys 1.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355762/ft1_filtered_4FGL_J0224.2+0700_daily_bin606.fits scfile=/scratch/kocevski/355762/ft2_4FGL_J0224.2+0700_daily_bin606.fits outfile=/scratch/kocevski/355762/cmap_HighResolution_396403201_396662401_4FGL_J0224.2+0700_daily_bin606.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.42
user 0.32
sys 1.08

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5974       1.0000         .10000E-03   10000.    
     2 'norm      '    .13389E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11983E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29976E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.060       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.783       1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.537       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.870       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11653E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.986       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25322E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.285       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0608       1.0000         .10000E-03   10000.    
    22 'Prefactor '    58.540       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.8645       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.5988       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1393       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86640       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=   8645.271     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3792 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5972        3.2051        .71109E-07    .73522E-04
   2  norm          .10046E-03    29.568        .10698E-04** at limit **
   3  Prefactor     .10003E-03    7.4274       -.50626E-05** at limit **
   4  Prefactor     .10000E-03    .94131       -.45989E-06** at limit **
   5  norm          20.060        6.3194       -.37285E-07   -.15815E-04
   6  Prefactor     .10000E-03    1.5418       -.37598E-06** at limit **
   7  norm          .10000E-03    .25984       -.19218E-06** at limit **
   8  Prefactor     42.785        25.665        .33852E-06    .18637E-03
   9  Prefactor     54.479        46.471        .19449E-05    .11271E-03
  10  Prefactor     .10000E-03    2.1972       -.86995E-07** at limit **
  11  Prefactor     .10000E-03    23.802       -.52171E-07** at limit **
  12  Prefactor     17.871        9.8005       -.52220E-06   -.15967E-04
  13  Prefactor     .10000E-03    24.310       -.59903E-06** at limit **
  14  Prefactor     .10000E-03    12.693       -.11688E-05** at limit **
  15  Prefactor     .10000E-03    3.2383        .68200E-06** at limit **
  16  norm          .10000E-03    .23596       -.37663E-07** at limit **
  17  Prefactor     25.943        39.104        .13776E-05    .65563E-04
  18  Prefactor     .10000E-03    35.224       -.23321E-05** at limit **
  19  norm          .10000E-03    9.4723       -.46810E-06** at limit **
  20  Prefactor     19.281        18.361       -.15522E-05   -.16015E-03
  21  Prefactor     8.0633        26.255       -.90349E-06   -.47875E-05
  22  Prefactor     58.533        46.015        .21756E-06    .32456E-04
  23  Prefactor     .10000E-03    1.7326       -.15461E-06** at limit **
  24  norm          .10000E-03    3.2735       -.53494E-07** at limit **
  25  norm          9.8643        5.1215        .15887E-06    .26304E-03
  26  Prefactor     .10000E-03    2.2506       -.14147E-06** at limit **
  27  norm          1.6039        6.2110       -.38862E-05   -.33892E-04
  28  Normalizat    1.1394        .16507        .14511E-05    .26659E-03
  29  Prefactor     .86643        .96077E-01   -.38737E-06    .46255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.59719
  norm       = 0.000100456
  Prefactor  = 0.000100031
  Prefactor  = 0.000100001
  norm       = 20.0605
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.7846
  Prefactor  = 54.4786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.9426
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.2811
  Prefactor  = 8.06326
  Prefactor  = 58.5333
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.86428
  Prefactor  = 0.0001
  norm       = 1.60388
  Normalizat = 1.13945
  Prefactor  = 0.866429
 **********
 **   18 **HESSE 
 **********

 FCN=   8645.271     FROM HESSE     STATUS=OK           551 CALLS     4343 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5972        3.2127        .15227E-03   -1.5329    
   2  norm          .10046E-03    65.445        .47990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    10.152        .29292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1918        .17152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.060        6.2890        .89426E-04   -1.4812    
   6  Prefactor     .10000E-03    1.5954        .22491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .36491        .90674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.785        25.698        .61289E-04   -1.4399    
   9  Prefactor     54.479        46.575        .54315E-04   -1.4230    
  10  Prefactor     .10000E-03    2.2051        .13450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.871        9.7910        .94744E-04   -1.4862    
  13  Prefactor     .10000E-03    24.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2506        .16334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .89533        .84330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.943        39.152        .78584E-04   -1.4689    
  18  Prefactor     .10000E-03    36.791        .40010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.6512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.281        17.995        .91205E-04   -1.4829    
  21  Prefactor     8.0633        26.190        .14122E-03   -1.5140    
  22  Prefactor     58.533        46.041        .52435E-04   -1.4176    
  23  Prefactor     .10000E-03    1.7410        .11952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.2785        .16428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.8643        5.1304        .12758E-03   -1.5080    
  26  Prefactor     .10000E-03    2.2666        .13622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.6039        6.2593        .33534E-03   -1.5455    
  28  Normalizat    1.1394        .18183        .29702E-03   -.88495    
  29  Prefactor     .86643        .10657        .19338E-03   -.97324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84921e-09
Minuit parameter uncertainties:
  1  3.21286
  2  0.0109338
  3  0.0011232
  4  0.000189029
  5  6.28925
  6  6.95882e-06
  7  5.39788e-06
  8  25.7048
  9  46.6066
  10  3.28925e-06
  11  7.04266e-06
  12  9.7919
  13  2.28237e-05
  14  2.94143e-05
  15  7.83693e-06
  16  4.24843e-06
  17  39.1906
  18  0.000159661
  19  1.38348e-05
  20  17.9997
  21  26.2271
  22  46.0693
  23  2.13196e-06
  24  1.26474e-06
  25  5.13065
  26  1.23363e-06
  27  6.26182
  28  0.181934
  29  0.106598
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  4.278e+01  2.570e+01  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  8.664e-01  1.066e-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.139e+00  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.15
Ra Dec: 36.058 7.013
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 7.48e-08 +/- 4.49e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 1.30e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8643.89434995
delta logL = 1.37685702261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8643.88565513
delta logL = 1.38555183806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4897       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7399       1.0000          .0000       10.000    
     3 'Normalizat'    1.0657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89242       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8643.886     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      323 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5233        92.332        .60924E-03   -.25416E-03
   2  Index         3.7375        3.2144        .40256E-02   -.37933E-04
   3  Normalizat    1.0659        .18571        .30524E-03   -.51175E-04
   4  Prefactor     .89235        .10501        .19082E-03    .47781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.52326
  Index      = 3.73752
  Normalizat = 1.06592
  Prefactor  = 0.892349
 **********
 **   18 **HESSE 
 **********

 FCN=   8643.886     FROM HESSE     STATUS=OK            25 CALLS      348 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5233        17.081        .24370E-04   -1.5091    
   2  Index         3.7375        1.0038        .16103E-03   -.25526    
   3  Normalizat    1.0659        .18365        .12210E-04   -.90854    
   4  Prefactor     .89235        .10328        .76329E-05   -.96409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71049e-11
Minuit parameter uncertainties:
  1  17.0901
  2  1.01115
  3  0.183755
  4  0.103303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355762': 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) = 8643.88565112
delta logL = 1.38555585419

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  9.523e+00  1.709e+01  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  3.738e+00  1.011e+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.923e-01  1.033e-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.066e+00  1.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.24
Ra Dec: 36.058 7.013
Photon Index (Free Index): 3.74 +/- 1.01
Photon Flux (Free Index): 1.43e-07 +/- 6.87e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/355762/cmap_HighResolution_396403201_396662401_4FGL_J0224.2+0700_daily_bin606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.48e-08', energy_flux2='2.25e-05', photon_flux_error='4.49e-08', dlogl='1.39e+00', energy_flux='2.17e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-08-15 20:21:14.893077', photon_index_error2='1.01', photon_index2='3.74', ts='4.15', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='1.14', time_epoch_completed='1629084074.89', return_code='0', job_id='355762', GAL2='0.89', EG2='1.07', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='6.87e-08', ts2='7.24', photon_index='2.50' WHERE bin_id='606' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:21:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 355762: <4FGL_J0224.2+0700_daily_bin606> in cluster <slac> Done

Job <4FGL_J0224.2+0700_daily_bin606> 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) <bullet0033>, 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:15 2021
Results reported at Sun Aug 15 20:21:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin606 36.0577 7.0126 396403201 396662401 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 :                                   775.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            945 sec.

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

