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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin560
RA = 66.1945, Dec = 0.6028
tmin = 384480001, tmax = 384739201
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='413649', job_status='RUN', time_executed='2021-08-20 13:43:44.976318', time_epoch_executed='1629492224.98' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413649/ft1_4FGL_J0424.7+0036_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413649/ft2_4FGL_J0424.7+0036_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413649/ft1_4FGL_J0424.7+0036_daily_bin560.fits outfile=/scratch/kocevski/413649/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin560.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=384480001.0 tmax=384739201.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.17
user 3.66
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413649/ft2_4FGL_J0424.7+0036_daily_bin560.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/413649/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin560.fits evtable="EVENTS" outfile="/scratch/kocevski/413649/ft1_filtered_4FGL_J0424.7+0036_daily_bin560.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.73
user 0.31
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413649/ft1_filtered_4FGL_J0424.7+0036_daily_bin560.fits" evtable="EVENTS" scfile=/scratch/kocevski/413649/ft2_4FGL_J0424.7+0036_daily_bin560.fits sctable="SC_DATA" outfile=/scratch/kocevski/413649/ltcube_384480001_384739201_4FGL_J0424.7+0036_daily_bin560.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/413649/ft2_4FGL_J0424.7+0036_daily_bin560.fits
.....................!
real 12.23
user 11.56
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413649/ft1_filtered_4FGL_J0424.7+0036_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/413649/ft2_4FGL_J0424.7+0036_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/413649/ltcube_384480001_384739201_4FGL_J0424.7+0036_daily_bin560.fits outfile=/scratch/kocevski/413649/expmap_384480001_384739201_4FGL_J0424.7+0036_daily_bin560.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/413649/ltcube_384480001_384739201_4FGL_J0424.7+0036_daily_bin560.fits
.....................!
real 191.57
user 185.56
sys 5.70

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/413649/ft1_filtered_4FGL_J0424.7+0036_daily_bin560.fits scfile=/scratch/kocevski/413649/ft2_4FGL_J0424.7+0036_daily_bin560.fits outfile=/scratch/kocevski/413649/cmap_384480001_384739201_4FGL_J0424.7+0036_daily_bin560.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.77
user 0.36
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413649/ft1_filtered_4FGL_J0424.7+0036_daily_bin560.fits scfile=/scratch/kocevski/413649/ft2_4FGL_J0424.7+0036_daily_bin560.fits outfile=/scratch/kocevski/413649/cmap_HighResolution_384480001_384739201_4FGL_J0424.7+0036_daily_bin560.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.78
user 0.36
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413649/ft1_filtered_4FGL_J0424.7+0036_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/413649/ft2_4FGL_J0424.7+0036_daily_bin560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413649/Model_4FGL_J0424.7+0036_daily_bin560.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/413649/ft1_filtered_4FGL_J0424.7+0036_daily_bin560.fits.....................!
real 111.95
user 110.14
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/413649/ft1_filtered_4FGL_J0424.7+0036_daily_bin560.fits', '/scratch/kocevski/413649/ft2_4FGL_J0424.7+0036_daily_bin560.fits', expMap='/scratch/kocevski/413649/expmap_384480001_384739201_4FGL_J0424.7+0036_daily_bin560.fits', expCube='/scratch/kocevski/413649/ltcube_384480001_384739201_4FGL_J0424.7+0036_daily_bin560.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/413649/Model_4FGL_J0424.7+0036_daily_bin560.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/413649/ft1_filtered_4FGL_J0424.7+0036_daily_bin560.fits
Spacecraft file(s): /scratch/kocevski/413649/ft2_4FGL_J0424.7+0036_daily_bin560.fits
Exposure map: /scratch/kocevski/413649/expmap_384480001_384739201_4FGL_J0424.7+0036_daily_bin560.fits
Exposure cube: /scratch/kocevski/413649/ltcube_384480001_384739201_4FGL_J0424.7+0036_daily_bin560.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/413649/Model_4FGL_J0424.7+0036_daily_bin560.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) = 7549.96143445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3390       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27375E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    11.862       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.003       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5127       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.888       1.0000         .10000E-03   10000.    
     8 'norm      '    10.822       1.0000         .10000E-03   10000.    
     9 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8155       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.463       1.0000         .10000E-03   10000.    
    17 'norm      '    .93516       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.4615       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.3783       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89615       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0065       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=   7549.948     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2944 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3392        1.8108       -.61713E-07   -.33879E-03
   2  Prefactor     .10000E-03    154.44        .87289E-05** at limit **
   3  Prefactor     .10005E-03    10.722        .11631E-06** at limit **
   4  norm          11.864        16.463       -.17631E-06   -.39030E-05
   5  Prefactor     42.016        34.849        .47798E-05   -.11645E-03
   6  norm          1.5112        3.4895       -.82932E-06   -.91002E-03
   7  Prefactor     18.872        29.327       -.36127E-05    .33121E-04
   8  norm          10.822        14.289       -.96664E-07   -.23405E-04
   9  norm          .10000E-03    23.673        .55002E-05** at limit **
  10  norm          .10000E-03    .31646       -.11880E-07** at limit **
  11  Prefactor     .10000E-03    .64947       -.88683E-07** at limit **
  12  Prefactor     4.8208        16.472       -.18510E-06   -.54935E-04
  13  Prefactor     .10000E-03    19.350       -.95839E-05** at limit **
  14  Prefactor     .10000E-03    7.3159        .86468E-08** at limit **
  15  norm          .10000E-03    1.3296        .69069E-08** at limit **
  16  Prefactor     31.467        32.324        .17779E-05   -.35314E-04
  17  norm          .93526        1.8737       -.48755E-06   -.12691E-02
  18  Prefactor     .10000E-03    4.7603       -.21016E-07** at limit **
  19  Prefactor     .10000E-03    18.618        .70272E-05** at limit **
  20  norm          1.4617        1.3576       -.11104E-07   -.11981E-03
  21  Prefactor     .10000E-03    30.959       -.54951E-05** at limit **
  22  norm          5.3787        1.0425        .31249E-08    .15292E-03
  23  Prefactor     .10000E-03    46.528        .34299E-05** at limit **
  24  Normalizat    .89615        .23463        .45377E-06   -.28700E-04
  25  Prefactor     1.0065        .89666E-01   -.38805E-07   -.33369E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33917
  Prefactor  = 0.000100002
  Prefactor  = 0.000100054
  norm       = 11.8643
  Prefactor  = 42.0163
  norm       = 1.51118
  Prefactor  = 18.8725
  norm       = 10.8223
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.82078
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.4665
  norm       = 0.935264
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.46175
  Prefactor  = 0.0001
  norm       = 5.37871
  Prefactor  = 0.0001
  Normalizat = 0.896153
  Prefactor  = 1.00645
 **********
 **   18 **HESSE 
 **********

 FCN=   7549.948     FROM HESSE     STATUS=OK           435 CALLS     3379 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3392        1.8057        .99260E-04   -1.5402    
   2  Prefactor     .10000E-03    157.35        .21419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    14.241        .81776E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.864        16.456        .11631E-03   -1.5019    
   5  Prefactor     42.016        34.521        .61853E-04   -1.4411    
   6  norm          1.5112        3.5408        .24366E-03   -1.5462    
   7  Prefactor     18.872        29.344        .92157E-04   -1.4839    
   8  norm          10.822        14.384        .12179E-03   -1.5050    
   9  norm          .10000E-03    23.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .40227        .94430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.0346        .13505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8208        16.376        .18333E-03   -1.5269    
  13  Prefactor     .10000E-03    18.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.4826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3592        .19474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.467        32.289        .71434E-04   -1.4585    
  17  norm          .93526        1.8768        .16261E-03   -1.5515    
  18  Prefactor     .10000E-03    4.8260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4617        1.3524        .94618E-04   -1.5466    
  21  Prefactor     .10000E-03    30.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.3787        1.0419        .17329E-04   -1.5244    
  23  Prefactor     .10000E-03    47.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89615        .25906        .40891E-03   -.96595    
  25  Prefactor     1.0065        .10090        .15859E-03   -.92515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56722e-09
Minuit parameter uncertainties:
  1  1.80574
  2  0.000990724
  3  0.0017462
  4  16.4621
  5  34.5372
  6  3.54133
  7  29.3664
  8  14.3888
  9  0.000285918
  10  2.94171e-07
  11  9.93212e-06
  12  16.391
  13  0.00029607
  14  4.90445e-06
  15  2.33301e-06
  16  32.3066
  17  1.87695
  18  2.11574e-06
  19  0.000216033
  20  1.3524
  21  0.000213408
  22  1.04191
  23  0.000199611
  24  0.259424
  25  0.100914
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  9.932e-06  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.006e+00  1.009e-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:  8.962e-01  2.594e-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: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413649/likelihoodResults_384480001_384739201_4FGL_J0424.7+0036_daily_bin560.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) = 7549.95269254
delta logL = -0.00461142862878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7549.94808212
delta logL = -1.00207853393e-06

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.1960       1.0000          .0000       10.000    
     3 'Normalizat'    .89614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0064       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=   7549.948     FROM MIGRAD    STATUS=FAILED        93 CALLS      258 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10081E-03    10.056        .13733E-02** at limit **
   2  Index         2.1493        5.2059        .50000        .10498E-03
   3  Normalizat    .89615        .18816E-01    .40891E-03   -.15361E-03
   4  Prefactor     1.0065        .77511E-02    .15859E-03   -.25745E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7549.948     FROM SIMPLEX   STATUS=UNCHANGED    115 CALLS      373 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10081E-03    10.056        .17154E-03** at limit **
   2  Index         2.1493        5.2059        .14329E-02    .10498E-03
   3  Normalizat    .89615        .18816E-01    .14767E-04   -.15361E-03
   4  Prefactor     1.0065        .77511E-02    .74236E-05   -.25745E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7549.948     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      421 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2084        .27466E-02** at limit **
   2  Index         1.9345        8.6450        .50000        .29117E-06
   3  Normalizat    .89616        .15450E-01    .16356E-04    .24291E-02
   4  Prefactor     1.0065        .63648E-02    .31719E-04    .61233E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.93453
  Normalizat = 0.896164
  Prefactor  = 1.00646
 **********
 **   18 **HESSE 
 **********

 FCN=   7549.948     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      450 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.871        .54931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9345        5.5209        .50000       -.65997    
   3  Normalizat    .89616        .36931E-01    .32712E-05   -.96595    
   4  Prefactor     1.0065        .15213E-01    .63438E-05   -.92515    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.9057e-09
Minuit parameter uncertainties:
  1  5.15001e-05
  2  204.546
  3  0.0369324
  4  0.0152133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413649': 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) = 7549.94807664
delta logL = 4.47541697213e-06

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  5.150e-05  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.935e+00  2.045e+02  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.006e+00  1.521e-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:  8.962e-01  3.693e-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/413649/cmap_HighResolution_384480001_384739201_4FGL_J0424.7+0036_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-08-20 13:56:17.174795', job_id='413649', GAL2='1.01', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1629492977.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='560' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:56:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 413649: <4FGL_J0424.7+0036_daily_bin560> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin560> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 13:40:32 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:40:33 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:40:33 2021
Terminated at Fri Aug 20 13:56:17 2021
Results reported at Fri Aug 20 13:56:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin560 66.1945 0.6028 384480001 384739201 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 :                                   756.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            945 sec.

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

