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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin135
RA = 66.1945, Dec = 0.6028
tmin = 274320001, tmax = 274579201
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='410879', job_status='RUN', time_executed='2021-08-20 13:32:52.021545', time_epoch_executed='1629491572.02' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410879

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410879/ft1_4FGL_J0424.7+0036_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410879/ft2_4FGL_J0424.7+0036_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410879/ft1_4FGL_J0424.7+0036_daily_bin135.fits outfile=/scratch/kocevski/410879/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin135.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=274320001.0 tmax=274579201.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 3.87
user 3.34
sys 0.49

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/410879/ft2_4FGL_J0424.7+0036_daily_bin135.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410879/ft2_4FGL_J0424.7+0036_daily_bin135.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/410879/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin135.fits evtable="EVENTS" outfile="/scratch/kocevski/410879/ft1_filtered_4FGL_J0424.7+0036_daily_bin135.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.80
user 0.33
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410879/ft1_filtered_4FGL_J0424.7+0036_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/410879/ft2_4FGL_J0424.7+0036_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/410879/ltcube_274320001_274579201_4FGL_J0424.7+0036_daily_bin135.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/410879/ft2_4FGL_J0424.7+0036_daily_bin135.fits
.....................!
real 11.92
user 11.28
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410879/ft1_filtered_4FGL_J0424.7+0036_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/410879/ft2_4FGL_J0424.7+0036_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/410879/ltcube_274320001_274579201_4FGL_J0424.7+0036_daily_bin135.fits outfile=/scratch/kocevski/410879/expmap_274320001_274579201_4FGL_J0424.7+0036_daily_bin135.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/410879/ltcube_274320001_274579201_4FGL_J0424.7+0036_daily_bin135.fits
.....................!
real 190.08
user 185.12
sys 4.54

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 142 point sources and 0 extended sources

Setting source of interest to:
4FGL J0424.7+0036 @ 66.1945 0.6028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/410879/ft1_filtered_4FGL_J0424.7+0036_daily_bin135.fits scfile=/scratch/kocevski/410879/ft2_4FGL_J0424.7+0036_daily_bin135.fits outfile=/scratch/kocevski/410879/cmap_274320001_274579201_4FGL_J0424.7+0036_daily_bin135.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=66.1945 yref=0.6028 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.80
user 0.36
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410879/ft1_filtered_4FGL_J0424.7+0036_daily_bin135.fits scfile=/scratch/kocevski/410879/ft2_4FGL_J0424.7+0036_daily_bin135.fits outfile=/scratch/kocevski/410879/cmap_HighResolution_274320001_274579201_4FGL_J0424.7+0036_daily_bin135.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=66.1945 yref=0.6028 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.81
user 0.39
sys 0.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410879/ft1_filtered_4FGL_J0424.7+0036_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/410879/ft2_4FGL_J0424.7+0036_daily_bin135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410879/Model_4FGL_J0424.7+0036_daily_bin135.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/410879/ft1_filtered_4FGL_J0424.7+0036_daily_bin135.fits.....................!
real 105.66
user 103.82
sys 1.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/410879/ft1_filtered_4FGL_J0424.7+0036_daily_bin135.fits', '/scratch/kocevski/410879/ft2_4FGL_J0424.7+0036_daily_bin135.fits', expMap='/scratch/kocevski/410879/expmap_274320001_274579201_4FGL_J0424.7+0036_daily_bin135.fits', expCube='/scratch/kocevski/410879/ltcube_274320001_274579201_4FGL_J0424.7+0036_daily_bin135.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/410879/Model_4FGL_J0424.7+0036_daily_bin135.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0424.7+0036'

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.213e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/410879/ft1_filtered_4FGL_J0424.7+0036_daily_bin135.fits
Spacecraft file(s): /scratch/kocevski/410879/ft2_4FGL_J0424.7+0036_daily_bin135.fits
Exposure map: /scratch/kocevski/410879/expmap_274320001_274579201_4FGL_J0424.7+0036_daily_bin135.fits
Exposure cube: /scratch/kocevski/410879/ltcube_274320001_274579201_4FGL_J0424.7+0036_daily_bin135.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/410879/Model_4FGL_J0424.7+0036_daily_bin135.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) = 7527.23777123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5059       1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.189       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .93069       1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.844       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    42.287       1.0000         .10000E-03   10000.    
    10 'norm      '    5.0125       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.956       1.0000         .10000E-03   10000.    
    13 'Prefactor '    92.592       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10244E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.351       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7247       1.0000         .10000E-03   10000.    
    20 'norm      '    .96179       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.510       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78665       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0014       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7527.222     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2937 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5059        1.6952       -.88193E-07   -.70606E-04
   2  Prefactor     67.184        54.510       -.48491E-05    .48361E-05
   3  Prefactor     .10000E-03    7.4157        .23854E-06** at limit **
   4  norm          .10000E-03    23.645        .13150E-04** at limit **
   5  Prefactor     .10000E-03    20.806       -.14731E-04** at limit **
   6  norm          .93022        4.0925       -.84067E-06   -.28355E-03
   7  Prefactor     49.839        36.874       -.23932E-05   -.81617E-05
   8  norm          .10000E-03    4.7653        .38443E-07** at limit **
   9  norm          42.288        33.168        .25147E-05    .51779E-04
  10  norm          5.0126        2.0380       -.14974E-06    .37036E-03
  11  Prefactor     .10000E-03    1.3703       -.17555E-06** at limit **
  12  Prefactor     42.943        24.351       -.35660E-05   -.47427E-04
  13  Prefactor     92.596        62.463        .31638E-05    .30145E-04
  14  Prefactor     .10000E-03    14.194        .34824E-05** at limit **
  15  norm          .10000E-03    1.0798        .31488E-06** at limit **
  16  Prefactor     .10000E-03    68.606       -.35146E-05** at limit **
  17  norm          10.351        3.2755       -.11395E-06   -.45626E-04
  18  Prefactor     .10000E-03    4.4731       -.83164E-07** at limit **
  19  Prefactor     8.7256        16.082       -.54197E-06   -.12589E-04
  20  norm          .96179        1.2728       -.70140E-07   -.70835E-04
  21  Prefactor     .10000E-03    9.6947       -.92937E-06** at limit **
  22  norm          .10000E-03    .26123       -.55751E-07** at limit **
  23  Prefactor     40.509        31.745       -.50820E-06   -.34153E-06
  24  Normalizat    .78672        .24310        .11707E-05    .39044E-05
  25  Prefactor     1.0014        .92128E-01    .51672E-06   -.16602E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.50592
  Prefactor  = 67.1842
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.93022
  Prefactor  = 49.839
  norm       = 0.0001
  norm       = 42.2885
  norm       = 5.01263
  Prefactor  = 0.0001
  Prefactor  = 42.9433
  Prefactor  = 92.5958
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3508
  Prefactor  = 0.0001
  Prefactor  = 8.72562
  norm       = 0.961793
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.5095
  Normalizat = 0.786723
  Prefactor  = 1.00139
 **********
 **   18 **HESSE 
 **********

 FCN=   7527.222     FROM HESSE     STATUS=OK           431 CALLS     3368 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5059        1.6939        .89961E-04   -1.5391    
   2  Prefactor     67.184        54.496        .48965E-04   -1.4067    
   3  Prefactor     .10000E-03    7.4329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    23.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .93022        13.214        .30446E-02   -1.5515    
   7  Prefactor     49.839        36.867        .56802E-04   -1.4295    
   8  norm          .10000E-03    4.7801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          42.288        33.149        .61646E-04   -1.4406    
  10  norm          5.0126        2.0333        .65597E-04   -1.5260    
  11  Prefactor     .10000E-03    1.3916        .19690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.943        24.185        .61167E-04   -1.4396    
  13  Prefactor     92.596        62.426        .41764E-04   -1.3780    
  14  Prefactor     .10000E-03    14.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7795        .17310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    68.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.351        3.2773        .83304E-04   -1.5064    
  18  Prefactor     .10000E-03    4.5568        .17912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.7256        16.061        .13570E-03   -1.5117    
  20  norm          .96179        1.2719        .52120E-04   -1.5512    
  21  Prefactor     .10000E-03    9.7039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .45909        .86082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     40.509        31.743        .62979E-04   -1.4434    
  24  Normalizat    .78672        .26052        .45569E-03   -1.0056    
  25  Prefactor     1.0014        .10082        .16378E-03   -.92683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16587e-10
Minuit parameter uncertainties:
  1  1.69393
  2  54.5367
  3  2.96589e-05
  4  0.000105774
  5  8.01104e-06
  6  7.01339
  7  36.8843
  8  5.78481e-06
  9  33.1636
  10  2.03336
  11  2.00942e-05
  12  24.19
  13  62.4698
  14  4.76423e-05
  15  3.2066e-05
  16  5.47269e-05
  17  3.27738
  18  2.40346e-06
  19  16.0685
  20  1.27195
  21  6.19438e-07
  22  1.28558e-07
  23  31.7565
  24  0.260938
  25  0.10084
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  2.009e-05  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.213e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.001e+00  1.008e-01  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  7.867e-01  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410879/likelihoodResults_274320001_274579201_4FGL_J0424.7+0036_daily_bin135.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) = 7527.22573266
delta logL = -0.00342542213912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7527.22230677
delta logL = 4.74790795124e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2313       1.0000          .0000       10.000    
     3 'Normalizat'    .78672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0014       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7527.222     FROM MIGRAD    STATUS=FAILED        86 CALLS      246 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1.7486        .19913E-03** at limit **
   2  Index         2.2499        6.1077        .50000       -.11055E-03
   3  Normalizat    .78672        .24292        .45569E-03   -.13327E-03
   4  Prefactor     1.0014        .98545E-01    .16378E-03   -.18150E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7527.222     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      371 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    1.7486        .10400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2499        6.1077        .38649E-02   -.58239    
   3  Normalizat    .78672        .24292        .28708E-03   -1.0056    
   4  Prefactor     1.0014        .98545E-01    .55805E-04   -.92683    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7527.115     FROM MIGRAD    STATUS=CONVERGED    163 CALLS      534 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .51077E-02    .39826E-03** at limit **
   2  Index         6.5146        2.4183        .20000        .10813E-03
   3  Normalizat    .75851        .37222E-01    .18228E-04   -.26495E-03
   4  Prefactor     1.0076        .15019E-01    .32757E-04   -.89862E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.51458
  Normalizat = 0.758512
  Prefactor  = 1.00762
 **********
 **   18 **HESSE 
 **********

 FCN=   7527.115     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      571 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .30210E-01    .30745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.5146        8.2078        .80573E-02    .30775    
   3  Normalizat    .75851        .85539E-01    .36455E-05   -1.0163    
   4  Prefactor     1.0076        .34563E-01    .65513E-05   -.92476    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.57329e-09
Minuit parameter uncertainties:
  1  5.77009e-07
  2  9.90111
  3  0.0855544
  4  0.0345634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410879': 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) = 7527.11487794
delta logL = 0.107429296912

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  5.770e-07  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  6.515e+00  9.901e+00  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.008e+00  3.456e-02  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  7.585e-01  8.555e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.195 0.603

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/410879/cmap_HighResolution_274320001_274579201_4FGL_J0424.7+0036_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.68e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-08-20 13:45:17.136355', job_id='410879', GAL2='1.01', fit_tolerance='1e-08', EG2='0.76', EG='0.79', time_epoch_completed='1629492317.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.07e-01', ts2='0.23', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='135' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:45:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 410879: <4FGL_J0424.7+0036_daily_bin135> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin135> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 13:30:53 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:30:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 13:30:54 2021
Terminated at Fri Aug 20 13:45:18 2021
Results reported at Fri Aug 20 13:45:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin135 66.1945 0.6028 274320001 274579201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0424.7+0036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   747.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

