/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 137 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 = 7399
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0224.2+0700_daily_bin155
RA = 36.0577, Dec = 7.0126
tmin = 279504001, tmax = 279763201
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='354098', job_status='RUN', time_executed='2021-08-15 20:03:25.026701', time_epoch_executed='1629083005.03' WHERE source_name='4FGL J0224.2+0700' and cadence='daily' and bin_id='155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354098

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/354098/ft1_4FGL_J0224.2+0700_daily_bin155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/354098/ft2_4FGL_J0224.2+0700_daily_bin155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/354098/ft1_4FGL_J0224.2+0700_daily_bin155.fits outfile=/scratch/kocevski/354098/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin155.fits ra=36.0577 dec=7.0126 rad=12.0 tmin=279504001.0 tmax=279763201.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.38
user 2.73
sys 1.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/354098/ft2_4FGL_J0224.2+0700_daily_bin155.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/354098/ft1_filteredMKT_4FGL_J0224.2+0700_daily_bin155.fits evtable="EVENTS" outfile="/scratch/kocevski/354098/ft1_filtered_4FGL_J0224.2+0700_daily_bin155.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.86
user 0.30
sys 1.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/354098/ft1_filtered_4FGL_J0224.2+0700_daily_bin155.fits" evtable="EVENTS" scfile=/scratch/kocevski/354098/ft2_4FGL_J0224.2+0700_daily_bin155.fits sctable="SC_DATA" outfile=/scratch/kocevski/354098/ltcube_279504001_279763201_4FGL_J0224.2+0700_daily_bin155.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/354098/ft2_4FGL_J0224.2+0700_daily_bin155.fits
.....................!
real 13.46
user 10.93
sys 1.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354098/ft1_filtered_4FGL_J0224.2+0700_daily_bin155.fits evtable="EVENTS" scfile=/scratch/kocevski/354098/ft2_4FGL_J0224.2+0700_daily_bin155.fits sctable="SC_DATA" expcube=/scratch/kocevski/354098/ltcube_279504001_279763201_4FGL_J0224.2+0700_daily_bin155.fits outfile=/scratch/kocevski/354098/expmap_279504001_279763201_4FGL_J0224.2+0700_daily_bin155.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/354098/ltcube_279504001_279763201_4FGL_J0224.2+0700_daily_bin155.fits
.....................!
real 156.66
user 151.02
sys 5.03

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/354098/ft1_filtered_4FGL_J0224.2+0700_daily_bin155.fits scfile=/scratch/kocevski/354098/ft2_4FGL_J0224.2+0700_daily_bin155.fits outfile=/scratch/kocevski/354098/cmap_279504001_279763201_4FGL_J0224.2+0700_daily_bin155.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.78
user 0.31
sys 1.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354098/ft1_filtered_4FGL_J0224.2+0700_daily_bin155.fits scfile=/scratch/kocevski/354098/ft2_4FGL_J0224.2+0700_daily_bin155.fits outfile=/scratch/kocevski/354098/cmap_HighResolution_279504001_279763201_4FGL_J0224.2+0700_daily_bin155.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.71
user 0.33
sys 1.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5681       1.0000         .10000E-03   10000.    
     2 'norm      '    24.326       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23575E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.3240       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14182       1.0000         .10000E-03   10000.    
     7 'norm      '    4.4856       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.298       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.297       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6527       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9242       1.0000         .10000E-03   10000.    
    16 'norm      '    .66574E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.553       1.0000         .10000E-03   10000.    
    19 'norm      '    .12143E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.9010       1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.004       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.002       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6739       1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .14375E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8345       1.0000         .10000E-03   10000.    
    27 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1507       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91500       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=   6627.663     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3827 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5667        7.7481       -.20878E-05   -.26373E-03
   2  norm          24.328        21.340       -.10107E-06    .61810E-05
   3  Prefactor     .10000E-03    4.3542        .12206E-06** at limit **
   4  Prefactor     .10016E-03    3.0659        .15588E-05** at limit **
   5  norm          8.3258        5.4362        .58852E-07    .25644E-03
   6  Prefactor     .14228        4.2749        .12840E-05    .13199E-02
   7  norm          4.4856        1.3431        .31491E-08    .15251E-03
   8  Prefactor     .10000E-03    21.683       -.91683E-06** at limit **
   9  Prefactor     53.292        49.886       -.27163E-06   -.33946E-06
  10  Prefactor     .10000E-03    1.9492       -.40219E-08** at limit **
  11  Prefactor     32.302        51.540        .65450E-06    .49850E-04
  12  Prefactor     .10000E-03    3.5968       -.12484E-06** at limit **
  13  Prefactor     .10000E-03    12.228        .86650E-06** at limit **
  14  Prefactor     3.6488        11.497       -.91599E-06   -.11546E-03
  15  Prefactor     8.8845        10.252        .14729E-05    .26881E-03
  16  norm          .32390E-02    3.9992        .17462E-05   -.16049E-02
  17  Prefactor     .10000E-03    33.797        .98025E-06** at limit **
  18  Prefactor     15.551        18.672       -.30237E-06   -.48404E-04
  19  norm          .10000E-03    8.0150       -.74086E-06** at limit **
  20  Prefactor     9.8482        17.175        .96197E-08    .64289E-04
  21  Prefactor     42.992        38.327       -.12574E-05   -.93082E-04
  22  Prefactor     11.986        46.405       -.29451E-05   -.23776E-04
  23  Prefactor     3.6737        5.6405       -.28308E-06   -.18484E-03
  24  norm          .10000E-03    8.8758       -.67285E-07** at limit **
  25  norm          .10002E-03    3.7062       -.60869E-06** at limit **
  26  Prefactor     1.8346        3.7487       -.31906E-06   -.21527E-03
  27  norm          .10000E-03    6.6763        .15065E-06** at limit **
  28  Normalizat    1.1509        .20760       -.38122E-07   -.80651E-04
  29  Prefactor     .91489        .11452       -.16111E-06   -.20833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56671
  norm       = 24.3275
  Prefactor  = 0.0001
  Prefactor  = 0.000100155
  norm       = 8.32576
  Prefactor  = 0.142281
  norm       = 4.48555
  Prefactor  = 0.0001
  Prefactor  = 53.2917
  Prefactor  = 0.0001
  Prefactor  = 32.3017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.64877
  Prefactor  = 8.88451
  norm       = 0.00323899
  Prefactor  = 0.0001
  Prefactor  = 15.5511
  norm       = 0.000100004
  Prefactor  = 9.8482
  Prefactor  = 42.9916
  Prefactor  = 11.9861
  Prefactor  = 3.67368
  norm       = 0.0001
  norm       = 0.000100017
  Prefactor  = 1.83465
  norm       = 0.0001
  Normalizat = 1.15095
  Prefactor  = 0.91489
 **********
 **   18 **HESSE 
 **********

 FCN=   6627.663     FROM HESSE     STATUS=OK           577 CALLS     4404 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5667        7.8280        .33956E-03   -1.5458    
   2  norm          24.328        21.334        .81217E-04   -1.4721    
   3  Prefactor     .10000E-03    4.4218        .16588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10016E-03    2.0780        .28816E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.3258        5.4075        .13895E-03   -1.5131    
   6  Prefactor     .14228        6.7329        .17359E-02   -1.5633    
   7  norm          4.4856        1.3461        .49282E-04   -1.5284    
   8  Prefactor     .10000E-03    21.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     53.292        49.828        .54940E-04   -1.4247    
  10  Prefactor     .10000E-03    1.9567        .11099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.302        51.387        .70508E-04   -1.4571    
  12  Prefactor     .10000E-03    3.6268        .15076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6488        11.392        .21136E-03   -1.5326    
  15  Prefactor     8.8845        11.144        .13417E-03   -1.5112    
  16  norm          .32390E-02    .55684        .14589E-01   -1.5697    
  17  Prefactor     .10000E-03    33.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.551        18.734        .10156E-03   -1.4919    
  19  norm          .10000E-03    58.021        .40034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.8482        17.276        .12735E-03   -1.5080    
  21  Prefactor     42.992        38.016        .61132E-04   -1.4396    
  22  Prefactor     11.986        46.157        .11563E-03   -1.5015    
  23  Prefactor     3.6737        5.6273        .21073E-03   -1.5325    
  24  norm          .10000E-03    8.9688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10002E-03    9.9948        .23691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.8346        3.7220        .21909E-03   -1.5437    
  27  norm          .10000E-03    6.8389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1509        .23307        .31176E-03   -.88132    
  29  Prefactor     .91489        .12680        .19392E-03   -.95623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05985e-09
Minuit parameter uncertainties:
  1  7.00531
  2  21.3409
  3  2.36511e-06
  4  0.00113605
  5  5.40784
  6  1.95706
  7  1.3461
  8  1.27895e-05
  9  49.8669
  10  1.09392e-06
  11  51.4576
  12  1.06673e-05
  13  5.14885e-05
  14  11.3986
  15  11.1466
  16  0.0836173
  17  5.9653e-05
  18  18.7409
  19  0.00097709
  20  17.2844
  21  38.0376
  22  46.2952
  23  5.62816
  24  7.19167e-06
  25  0.000828258
  26  3.72243
  27  2.32723e-06
  28  0.233277
  29  0.126843
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  1.279e-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.149e-01  1.268e-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.151e+00  2.333e-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: 9.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/354098/likelihoodResults_279504001_279763201_4FGL_J0224.2+0700_daily_bin155.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) = 6627.66331129
delta logL = -0.000219852697228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6627.66000341
delta logL = 0.00308802555719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25419       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8184       1.0000          .0000       10.000    
     3 'Normalizat'    1.1465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91598       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=   6627.660     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      303 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25457        3.6344        .64235E-01   -.57899E-03
   2  Index         3.8192        .85642        .50000        .55017E-04
   3  Normalizat    1.1466        .87086E-02    .70575E-01    .16229E-04
   4  Prefactor     .91597        .49151E-02    .45208E-01    .50539E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.254571
  Index      = 3.81919
  Normalizat = 1.14658
  Prefactor  = 0.915965
 **********
 **   18 **HESSE 
 **********

 FCN=   6627.660     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      338 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25457        1938.2        .19430E-02   -1.5607    
   2  Index         3.8192        5.6502        .90291E-02   -.23841    
   3  Normalizat    1.1466        .33054        .31227E-03   -.88270    
   4  Prefactor     .91597        .11134        .19382E-03   -.95585    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3082e-06
Minuit parameter uncertainties:
  1  45.9939
  2  59.7799
  3  0.331145
  4  0.111364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354098': 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) = 6627.66000332
delta logL = 0.00308811458126

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  2.546e-01  4.599e+01  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  3.819e+00  5.978e+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:  9.160e-01  1.114e-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.147e+00  3.311e-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/354098/cmap_HighResolution_279504001_279763201_4FGL_J0224.2+0700_daily_bin155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.16e-08', time_completed='2021-08-15 20:15:39.456683', job_id='354098', GAL2='0.92', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1629083739.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.09e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='155' AND source_name='4FGL J0224.2+0700' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 20:15:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 354098: <4FGL_J0224.2+0700_daily_bin155> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_daily_bin155 36.0577 7.0126 279504001 279763201 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 :                                   745.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            914 sec.

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

