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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin652
RA = 66.1945, Dec = 0.6028
tmin = 408326401, tmax = 408585601
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='413782', job_status='RUN', time_executed='2021-08-20 13:45:03.157959', time_epoch_executed='1629492303.16' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413782/ft1_4FGL_J0424.7+0036_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413782/ft2_4FGL_J0424.7+0036_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413782/ft1_4FGL_J0424.7+0036_daily_bin652.fits outfile=/scratch/kocevski/413782/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin652.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=408326401.0 tmax=408585601.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 5.79
user 4.62
sys 1.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413782/ft2_4FGL_J0424.7+0036_daily_bin652.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/413782/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin652.fits evtable="EVENTS" outfile="/scratch/kocevski/413782/ft1_filtered_4FGL_J0424.7+0036_daily_bin652.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.42
user 0.32
sys 1.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413782/ft1_filtered_4FGL_J0424.7+0036_daily_bin652.fits" evtable="EVENTS" scfile=/scratch/kocevski/413782/ft2_4FGL_J0424.7+0036_daily_bin652.fits sctable="SC_DATA" outfile=/scratch/kocevski/413782/ltcube_408326401_408585601_4FGL_J0424.7+0036_daily_bin652.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/413782/ft2_4FGL_J0424.7+0036_daily_bin652.fits
.....................!
real 13.00
user 11.58
sys 1.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413782/ft1_filtered_4FGL_J0424.7+0036_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/413782/ft2_4FGL_J0424.7+0036_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/413782/ltcube_408326401_408585601_4FGL_J0424.7+0036_daily_bin652.fits outfile=/scratch/kocevski/413782/expmap_408326401_408585601_4FGL_J0424.7+0036_daily_bin652.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/413782/ltcube_408326401_408585601_4FGL_J0424.7+0036_daily_bin652.fits
.....................!
real 190.84
user 185.02
sys 5.41

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/413782/ft1_filtered_4FGL_J0424.7+0036_daily_bin652.fits scfile=/scratch/kocevski/413782/ft2_4FGL_J0424.7+0036_daily_bin652.fits outfile=/scratch/kocevski/413782/cmap_408326401_408585601_4FGL_J0424.7+0036_daily_bin652.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 1.47
user 0.38
sys 1.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413782/ft1_filtered_4FGL_J0424.7+0036_daily_bin652.fits scfile=/scratch/kocevski/413782/ft2_4FGL_J0424.7+0036_daily_bin652.fits outfile=/scratch/kocevski/413782/cmap_HighResolution_408326401_408585601_4FGL_J0424.7+0036_daily_bin652.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 1.48
user 0.37
sys 1.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413782/ft1_filtered_4FGL_J0424.7+0036_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/413782/ft2_4FGL_J0424.7+0036_daily_bin652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413782/Model_4FGL_J0424.7+0036_daily_bin652.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/413782/ft1_filtered_4FGL_J0424.7+0036_daily_bin652.fits.....................!
real 94.91
user 92.22
sys 2.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.166       1.0000         .10000E-03   10000.    
     2 'Prefactor '    80.617       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .14822       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.753       1.0000         .10000E-03   10000.    
     6 'norm      '    .51811       1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.361       1.0000         .10000E-03   10000.    
     8 'norm      '    .10763E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0507       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4763       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7260       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .80169E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8879       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.7774       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16192E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.586       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2823       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .93999       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0549       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92511       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=   6313.006     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3442 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.167        4.1451        .30696E-07   -.56813E-05
   2  Prefactor     80.627        56.759        .21446E-05    .10791E-03
   3  Prefactor     .10000E-03    19.630        .39043E-07** at limit **
   4  norm          .22551        18.384        .15879E-06   -.45884E-04
   5  Prefactor     36.750        35.802        .72594E-06    .47666E-04
   6  norm          .51567        3.6274        .13846E-05   -.41004E-03
   7  Prefactor     45.365        32.703        .23104E-06    .11034E-04
   8  norm          .10000E-03    36.517        .15390E-07** at limit **
   9  norm          .10000E-03    9.6848        .21506E-08** at limit **
  10  norm          1.0510        1.2727       -.11526E-06    .22930E-04
  11  Prefactor     2.4763        3.0338       -.44171E-06   -.22306E-03
  12  Prefactor     .10000E-03    15.753        .20293E-07** at limit **
  13  Prefactor     2.7376        540.84        .19589E-04    .40143E-04
  14  Prefactor     .10136E-03    9.9743       -.13263E-05** at limit **
  15  norm          1.8882        2.6764        .64873E-07   -.24277E-03
  16  Prefactor     .10000E-03    53.420        .14062E-06** at limit **
  17  norm          7.7774        3.7982       -.51126E-07    .12403E-03
  18  Prefactor     .10090E-03    6.7590        .44625E-06** at limit **
  19  Prefactor     20.580        34.599        .20422E-05    .51305E-04
  20  norm          2.2825        1.8552        .40545E-07    .14147E-04
  21  Prefactor     .10000E-03    17.982       -.94789E-07** at limit **
  22  norm          .94022        .78860       -.38011E-08   -.33822E-03
  23  Prefactor     .10000E-03    14.015       -.10047E-07** at limit **
  24  Normalizat    1.0547        .27737       -.98632E-06    .89011E-04
  25  Prefactor     .92508        .10322       -.10734E-06    .49924E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.1667
  Prefactor  = 80.6269
  Prefactor  = 0.0001
  norm       = 0.225509
  Prefactor  = 36.7498
  norm       = 0.515665
  Prefactor  = 45.3646
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.05099
  Prefactor  = 2.47634
  Prefactor  = 0.0001
  Prefactor  = 2.73761
  Prefactor  = 0.000101361
  norm       = 1.8882
  Prefactor  = 0.0001
  norm       = 7.77744
  Prefactor  = 0.000100896
  Prefactor  = 20.58
  norm       = 2.28247
  Prefactor  = 0.0001
  norm       = 0.940221
  Prefactor  = 0.0001
  Normalizat = 1.05472
  Prefactor  = 0.925083
 **********
 **   18 **HESSE 
 **********

 FCN=   6313.006     FROM HESSE     STATUS=OK           457 CALLS     3899 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.167        4.1473        .86929E-04   -1.4982    
   2  Prefactor     80.627        56.433        .44732E-04   -1.3910    
   3  Prefactor     .10000E-03    19.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .22551        20.871        .11333       -1.5613    
   5  Prefactor     36.750        35.815        .66108E-04   -1.4495    
   6  norm          .51567        6.6250        .38631E-03   -1.5564    
   7  Prefactor     45.365        32.703        .59530E-04   -1.4360    
   8  norm          .10000E-03    37.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.6892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0510        1.2220        .87568E-04   -1.5503    
  11  Prefactor     2.4763        3.0105        .11137E-03   -1.5393    
  12  Prefactor     .10000E-03    15.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7376        562.23        .24664E-03   -1.5377    
  14  Prefactor     .10136E-03    19.129        .65049E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8882        2.6735        .14832E-03   -1.5433    
  16  Prefactor     .10000E-03    53.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.7774        3.8051        .98187E-04   -1.5150    
  18  Prefactor     .10090E-03    8.0736        .58958E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.580        34.450        .88277E-04   -1.4800    
  20  norm          2.2825        1.8539        .93611E-04   -1.5406    
  21  Prefactor     .10000E-03    18.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .94022        .75766        .61342E-03   -1.5514    
  23  Prefactor     .10000E-03    14.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0547        .31139        .40369E-03   -.91219    
  25  Prefactor     .92508        .11698        .17348E-03   -.95270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83776e-09
Minuit parameter uncertainties:
  1  4.14743
  2  56.4707
  3  1.37903e-05
  4  4.33956
  5  35.8361
  6  3.69677
  7  32.7162
  8  0.000136605
  9  3.75027e-06
  10  1.22203
  11  3.01073
  12  3.19213e-06
  13  79.2291
  14  0.0102071
  15  2.67366
  16  2.38832e-05
  17  3.8052
  18  0.00538057
  19  34.4835
  20  1.8539
  21  3.36886e-05
  22  0.757668
  23  3.11277e-06
  24  0.311935
  25  0.117011
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.476e+00  3.011e+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

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  9.251e-01  1.170e-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:  1.055e+00  3.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.68
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 6.23e-08 +/- 7.57e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 3.32e-05

TS (Fixed Index): 1.68
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 1.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413782/likelihoodResults_408326401_408585601_4FGL_J0424.7+0036_daily_bin652.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) = 6312.89024028
delta logL = 0.11582583382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6312.87368262
delta logL = 0.132383498811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9333       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8927       1.0000          .0000       10.000    
     3 'Normalizat'    1.0707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92211       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=   6312.874     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9323        114.47        .59292E-02    .47621E-03
   2  Index         1.8924        5.1295        .17305        .29676E-04
   3  Normalizat    1.0709        .21017        .90568E-01    .23793E-03
   4  Prefactor     .92202        .62278E-01    .45286E-01    .53893E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93231
  Index      = 1.89238
  Normalizat = 1.07088
  Prefactor  = 0.922024
 **********
 **   18 **HESSE 
 **********

 FCN=   6312.874     FROM HESSE     STATUS=OK            31 CALLS      265 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9323        2.7273        .12241E-03   -1.5365    
   2  Index         1.8924        .60749        .98219E-02   -.67069    
   3  Normalizat    1.0709        .27852        .40113E-03   -.90692    
   4  Prefactor     .92202        .11311        .17373E-03   -.95376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52847e-10
Minuit parameter uncertainties:
  1  2.72743
  2  0.609952
  3  0.2789
  4  0.113142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413782': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6312.87368215
delta logL = 0.132383965681

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.932e+00  2.727e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.892e+00  6.100e-01  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:  9.220e-01  1.131e-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:  1.071e+00  2.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.89 +/- 0.61
Photon Flux (Free Index): 4.37e-08 +/- 5.55e-08
Energy Flux (Free Index): 4.00e-05 +/- 4.97e-05

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/413782/cmap_HighResolution_408326401_408585601_4FGL_J0424.7+0036_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', photon_flux='6.23e-08', energy_flux2='4.00e-05', photon_flux_error='7.57e-08', dlogl='1.32e-01', energy_flux='2.73e-05', photon_flux2='4.37e-08', job_status='DONE', time_completed='2021-08-20 13:56:49.632776', photon_index_error2='0.61', photon_index2='1.89', ts='1.68', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.89e-07', energy_flux_error2='4.97e-05', EG='1.05', time_epoch_completed='1629493009.63', return_code='0', job_id='413782', GAL2='0.92', EG2='1.07', return_code2='0', energy_flux_error='3.32e-05', photon_flux_error2='5.55e-08', ts2='1.95', photon_index='2.21' WHERE bin_id='652' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:56:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 413782: <4FGL_J0424.7+0036_daily_bin652> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin652 66.1945 0.6028 408326401 408585601 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 :                                   721.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             264.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            967 sec.

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

