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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin1180
RA = 66.1945, Dec = 0.6028
tmin = 545184001, tmax = 545443201
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='416732', job_status='RUN', time_executed='2021-08-20 13:53:41.943426', time_epoch_executed='1629492821.94' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416732/ft1_4FGL_J0424.7+0036_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416732/ft2_4FGL_J0424.7+0036_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416732/ft1_4FGL_J0424.7+0036_daily_bin1180.fits outfile=/scratch/kocevski/416732/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin1180.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=545184001.0 tmax=545443201.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 15.21
user 3.83
sys 11.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/416732/ft2_4FGL_J0424.7+0036_daily_bin1180.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/416732/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin1180.fits evtable="EVENTS" outfile="/scratch/kocevski/416732/ft1_filtered_4FGL_J0424.7+0036_daily_bin1180.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 10.89
user 0.34
sys 10.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/416732/ft1_filtered_4FGL_J0424.7+0036_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/416732/ft2_4FGL_J0424.7+0036_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/416732/ltcube_545184001_545443201_4FGL_J0424.7+0036_daily_bin1180.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/416732/ft2_4FGL_J0424.7+0036_daily_bin1180.fits
.....................!
real 27.27
user 15.58
sys 11.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416732/ft1_filtered_4FGL_J0424.7+0036_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/416732/ft2_4FGL_J0424.7+0036_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/416732/ltcube_545184001_545443201_4FGL_J0424.7+0036_daily_bin1180.fits outfile=/scratch/kocevski/416732/expmap_545184001_545443201_4FGL_J0424.7+0036_daily_bin1180.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/416732/ltcube_545184001_545443201_4FGL_J0424.7+0036_daily_bin1180.fits
.....................!
real 207.13
user 187.88
sys 18.78

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/416732/ft1_filtered_4FGL_J0424.7+0036_daily_bin1180.fits scfile=/scratch/kocevski/416732/ft2_4FGL_J0424.7+0036_daily_bin1180.fits outfile=/scratch/kocevski/416732/cmap_545184001_545443201_4FGL_J0424.7+0036_daily_bin1180.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 10.31
user 0.39
sys 9.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/416732/ft1_filtered_4FGL_J0424.7+0036_daily_bin1180.fits scfile=/scratch/kocevski/416732/ft2_4FGL_J0424.7+0036_daily_bin1180.fits outfile=/scratch/kocevski/416732/cmap_HighResolution_545184001_545443201_4FGL_J0424.7+0036_daily_bin1180.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 10.91
user 0.41
sys 10.47

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/416732/ft1_filtered_4FGL_J0424.7+0036_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/416732/ft2_4FGL_J0424.7+0036_daily_bin1180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/416732/Model_4FGL_J0424.7+0036_daily_bin1180.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/416732/ft1_filtered_4FGL_J0424.7+0036_daily_bin1180.fits........................!
real 41.43
user 25.07
sys 16.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1187.3       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11332E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10835E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3455       1.0000         .10000E-03   10000.    
     9 'norm      '    104.27       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11397E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13346E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    193.76       1.0000         .10000E-03   10000.    
    20 'norm      '    9.1753       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14307E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .91192       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .66523       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88054       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=   921.7627     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     3357 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9549       -.74200E-07** at limit **
   2  Prefactor     1186.9        1668.3       -.46955E-06   -.41794E-05
   3  Prefactor     .10000E-03    355.77        .42687E-06** at limit **
   4  norm          .10000E-03    30.933        .25572E-06** at limit **
   5  Prefactor     .10000E-03    161.70        .28572E-05** at limit **
   6  norm          .10000E-03    5.3701        .10875E-06** at limit **
   7  Prefactor     .10000E-03    333.93        .67040E-06** at limit **
   8  norm          6.3554        22.018        .23970E-06   -.12587E-04
   9  norm          104.35        151.69       -.38366E-05   -.95358E-04
  10  norm          .10000E-03    1.6098        .42670E-06** at limit **
  11  Prefactor     .10000E-03    16.837        .71742E-05** at limit **
  12  Prefactor     .10000E-03    72.124        .38839E-07** at limit **
  13  Prefactor     .10000E-03    313.84        .38667E-05** at limit **
  14  Prefactor     .10000E-03    16.443        .70362E-07** at limit **
  15  norm          .10000E-03    9.5734        .11191E-06** at limit **
  16  Prefactor     .10001E-03    557.84       -.22633E-05** at limit **
  17  norm          .10000E-03    9.9660        .58971E-06** at limit **
  18  Prefactor     .10000E-03    45.553        .96673E-07** at limit **
  19  Prefactor     193.76        285.05       -.11910E-05   -.21115E-05
  20  norm          9.1760        5.8562        .23819E-08   -.52648E-04
  21  Prefactor     .10000E-03    465.66       -.11146E-05** at limit **
  22  norm          .91216        2.3147        .22969E-07   -.16042E-04
  23  Prefactor     .10000E-03    31.765       -.35636E-06** at limit **
  24  Normalizat    .66496        .53432        .32347E-05   -.46162E-04
  25  Prefactor     .88062        .28056       -.17306E-05   -.65007E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1186.87
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.35539
  norm       = 104.35
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 193.758
  norm       = 9.17596
  Prefactor  = 0.000100002
  norm       = 0.912157
  Prefactor  = 0.0001
  Normalizat = 0.664956
  Prefactor  = 0.880617
 **********
 **   18 **HESSE 
 **********

 FCN=   921.7627     FROM HESSE     STATUS=OK           411 CALLS     3768 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9758        .72362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1186.9        1669.8        .61829E-04   -.86736    
   3  Prefactor     .10000E-03    355.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    30.944        .16505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    161.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.3732        .68727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    333.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3554        21.996        .15934E-03   -1.5204    
   9  norm          104.35        158.44        .19690E-03   -1.3661    
  10  norm          .10000E-03    1.6118        .37598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.094        .24060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    72.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    313.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.458        .12026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.5750        .91775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    558.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.108        .93462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    45.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     193.76        284.07        .29019E-04   -1.2915    
  20  norm          9.1760        5.8629        .55691E-04   -1.5102    
  21  Prefactor     .10000E-03    465.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .91216        2.1936        .70109E-03   -1.5517    
  23  Prefactor     .10000E-03    31.777        .16724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .66496        .60714        .37947E-03   -1.0529    
  25  Prefactor     .88062        .32359        .17359E-03   -.96822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07684e-10
Minuit parameter uncertainties:
  1  3.93876e-06
  2  1754.65
  3  0.000811221
  4  0.000141791
  5  0.000127307
  6  5.94253e-07
  7  0.00123224
  8  22.024
  9  159.091
  10  7.11715e-07
  11  6.39402e-06
  12  5.53965e-05
  13  0.0014341
  14  4.18942e-06
  15  1.04586e-06
  16  0.0054037
  17  1.0595e-05
  18  5.28499e-05
  19  286.121
  20  5.86331
  21  0.00203214
  22  2.1938
  23  0.0001624
  24  0.613411
  25  0.324299
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  6.394e-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:  8.806e-01  3.243e-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:  6.650e-01  6.134e-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: 5.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/416732/likelihoodResults_545184001_545443201_4FGL_J0424.7+0036_daily_bin1180.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): 0
logL (Free Index) = 921.762941934
delta logL = -0.000279111030181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 921.762662827
delta logL = -3.42731709679e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2022       1.0000          .0000       10.000    
     3 'Normalizat'    .66493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88065       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.

 FCN=   921.7627     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      212 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    14.316        .90712E-02** at limit **
   2  Index         2.1930        5.5427        .50000        .38744E-05
   3  Normalizat    .66496        .13152E-01    .85651E-01    .18867E-05
   4  Prefactor     .88061        .68953E-02    .44758E-01   -.38241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19303
  Normalizat = 0.66496
  Prefactor  = 0.880615
 **********
 **   18 **HESSE 
 **********

 FCN=   921.7627     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      243 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    528.65        .24152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1930        6.0511        .50000       -.59607    
   3  Normalizat    .66496        .81444E-01    .37947E-03   -1.0529    
   4  Prefactor     .88061        .42825E-01    .17359E-03   -.96822    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20903e-07
Minuit parameter uncertainties:
  1  0.000133158
  2  367.218
  3  0.081459
  4  0.0428269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416732': 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) = 921.762662801
delta logL = 2.23636789087e-08

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  1.332e-04  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.193e+00  3.672e+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:  8.806e-01  4.283e-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:  6.650e-01  8.146e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/416732/cmap_HighResolution_545184001_545443201_4FGL_J0424.7+0036_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-02', job_status='DONE', photon_flux_upper_limit='5.75e-07', time_completed='2021-08-20 14:02:33.148934', job_id='416732', GAL2='0.88', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1629493353.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1180' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:02:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 416732: <4FGL_J0424.7+0036_daily_bin1180> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin1180> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 20 13:50:45 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:50:46 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:50:46 2021
Terminated at Fri Aug 20 14:02:35 2021
Results reported at Fri Aug 20 14:02:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin1180 66.1945 0.6028 545184001 545443201 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 :                                   691.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             220.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            710 sec.

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

