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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin932
RA = 66.1945, Dec = 0.6028
tmin = 480902401, tmax = 481161601
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='415240', job_status='RUN', time_executed='2021-08-20 13:48:39.263860', time_epoch_executed='1629492519.26' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415240

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415240/ft1_4FGL_J0424.7+0036_daily_bin932.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415240/ft2_4FGL_J0424.7+0036_daily_bin932.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415240/ft1_4FGL_J0424.7+0036_daily_bin932.fits outfile=/scratch/kocevski/415240/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin932.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=480902401.0 tmax=481161601.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.72
user 3.41
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415240/ft1_filtered_4FGL_J0424.7+0036_daily_bin932.fits" evtable="EVENTS" scfile=/scratch/kocevski/415240/ft2_4FGL_J0424.7+0036_daily_bin932.fits sctable="SC_DATA" outfile=/scratch/kocevski/415240/ltcube_480902401_481161601_4FGL_J0424.7+0036_daily_bin932.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/415240/ft2_4FGL_J0424.7+0036_daily_bin932.fits
.....................!
real 11.75
user 11.32
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415240/ft1_filtered_4FGL_J0424.7+0036_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/415240/ft2_4FGL_J0424.7+0036_daily_bin932.fits sctable="SC_DATA" expcube=/scratch/kocevski/415240/ltcube_480902401_481161601_4FGL_J0424.7+0036_daily_bin932.fits outfile=/scratch/kocevski/415240/expmap_480902401_481161601_4FGL_J0424.7+0036_daily_bin932.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/415240/ltcube_480902401_481161601_4FGL_J0424.7+0036_daily_bin932.fits
.....................!
real 189.98
user 185.11
sys 4.55

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/415240/ft1_filtered_4FGL_J0424.7+0036_daily_bin932.fits scfile=/scratch/kocevski/415240/ft2_4FGL_J0424.7+0036_daily_bin932.fits outfile=/scratch/kocevski/415240/cmap_480902401_481161601_4FGL_J0424.7+0036_daily_bin932.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.59
user 0.37
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415240/ft1_filtered_4FGL_J0424.7+0036_daily_bin932.fits scfile=/scratch/kocevski/415240/ft2_4FGL_J0424.7+0036_daily_bin932.fits outfile=/scratch/kocevski/415240/cmap_HighResolution_480902401_481161601_4FGL_J0424.7+0036_daily_bin932.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.61
user 0.38
sys 0.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415240/ft1_filtered_4FGL_J0424.7+0036_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/415240/ft2_4FGL_J0424.7+0036_daily_bin932.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415240/Model_4FGL_J0424.7+0036_daily_bin932.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/415240/ft1_filtered_4FGL_J0424.7+0036_daily_bin932.fits.....................!
real 109.22
user 107.74
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58518       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48138E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.400       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11587E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.7016       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9941       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6052       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.787       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.428       1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    47.939       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0557       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0503       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=   7645.567     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2944 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58521        1.3081       -.29972E-06   -.16553E-02
   2  Prefactor     .10012E-03    255.62       -.12014E-03** at limit **
   3  Prefactor     .10000E-03    12.310        .50387E-05** at limit **
   4  norm          .10000E-03    6.4663       -.55192E-08** at limit **
   5  Prefactor     14.398        15.414        .27226E-06    .18970E-04
   6  norm          .10000E-03    1.3467       -.15493E-07** at limit **
   7  Prefactor     .10000E-03    49.815       -.48687E-05** at limit **
   8  norm          8.7024        9.5118       -.53495E-06   -.75978E-04
   9  norm          3.0001        36.610       -.33369E-05   -.42671E-04
  10  norm          .10000E-03    .30543       -.15527E-08** at limit **
  11  Prefactor     1.6047        1.6174        .85403E-07   -.68497E-03
  12  Prefactor     27.772        23.055        .18006E-05    .31362E-03
  13  Prefactor     .10000E-03    80.210        .16381E-04** at limit **
  14  Prefactor     .10000E-03    4.5623        .25647E-07** at limit **
  15  norm          .10000E-03    1.5886       -.86579E-06** at limit **
  16  Prefactor     28.830        45.052        .49345E-04    .34045E-04
  17  norm          .10000E-03    .63200        .19305E-07** at limit **
  18  Prefactor     .10000E-03    10.130       -.13053E-05** at limit **
  19  Prefactor     25.433        23.764        .11093E-05    .49580E-04
  20  norm          .10000E-03    .99840        .48878E-07** at limit **
  21  Prefactor     .10000E-03    12.575       -.45399E-05** at limit **
  22  norm          .10000E-03    .18821       -.20404E-07** at limit **
  23  Prefactor     47.940        31.432        .16392E-05   -.13241E-04
  24  Normalizat    1.0557        .23140        .35056E-06    .33698E-03
  25  Prefactor     1.0503        .91966E-01   -.17829E-05    .14466E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.58521
  Prefactor  = 0.000100122
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3983
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.70242
  norm       = 3.00014
  norm       = 0.0001
  Prefactor  = 1.60468
  Prefactor  = 27.7717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 28.8299
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 25.4332
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.9404
  Normalizat = 1.05569
  Prefactor  = 1.05034
 **********
 **   18 **HESSE 
 **********

 FCN=   7645.567     FROM HESSE     STATUS=OK           427 CALLS     3371 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58521        1.2261        .14452E-02   -1.5555    
   2  Prefactor     .10012E-03    258.95        .42352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.4677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.398        15.408        .10555E-03   -1.4949    
   6  norm          .10000E-03    1.3516        .99089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.7024        9.5260        .13588E-03   -1.5118    
   9  norm          3.0001        36.115        .23460E-03   -1.5362    
  10  norm          .10000E-03    .31149        .47120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6047        1.5896        .10416E-03   -1.5455    
  12  Prefactor     27.772        22.164        .76056E-04   -1.4653    
  13  Prefactor     .10000E-03    80.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7356        .20402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.830        45.059        .74671E-04   -1.4634    
  17  norm          .10000E-03    .63631        .67848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.560        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.433        23.716        .79440E-04   -1.4699    
  20  norm          .10000E-03    3.8231        .16660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .22914        .73785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     47.940        31.135        .57914E-04   -1.4322    
  24  Normalizat    1.0557        .25602        .39162E-03   -.91187    
  25  Prefactor     1.0503        .10311        .15968E-03   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03802e-09
Minuit parameter uncertainties:
  1  1.22614
  2  0.011303
  3  5.14168e-05
  4  2.85015e-06
  5  15.4125
  6  1.84956e-06
  7  0.000364584
  8  9.52768
  9  20.8337
  10  6.92209e-07
  11  1.5896
  12  22.1702
  13  5.64728e-06
  14  7.38454e-06
  15  0.000137949
  16  45.1121
  17  5.45832e-07
  18  0.000264651
  19  23.7252
  20  1.08199e-05
  21  4.8749e-06
  22  9.4755e-07
  23  31.1459
  24  0.256318
  25  0.103129
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.605e+00  1.590e+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:  1.050e+00  1.031e-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.056e+00  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.75e-05

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

Saving results to:
/scratch/kocevski/415240/likelihoodResults_480902401_481161601_4FGL_J0424.7+0036_daily_bin932.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) = 7645.48043487
delta logL = 0.0867223244231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7645.47876449
delta logL = 0.0883927090017

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2117       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5260       1.0000          .0000       10.000    
     3 'Normalizat'    1.0404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0535       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=   7645.479     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      244 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2101        18.172        .10272E-01    .40769E-03
   2  Index         2.5266        2.7459        .18300        .67956E-04
   3  Normalizat    1.0404        .63682E-01    .88990E-01   -.33851E-03
   4  Prefactor     1.0535        .24688E-01    .39711E-01   -.10629E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21013
  Index      = 2.52663
  Normalizat = 1.04039
  Prefactor  = 1.05349
 **********
 **   18 **HESSE 
 **********

 FCN=   7645.479     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2101        1.7792        .83457E-04   -1.5488    
   2  Index         2.5266        .86059        .66868E-02   -.51746    
   3  Normalizat    1.0404        .25273        .39410E-03   -.91689    
   4  Prefactor     1.0535        .10204        .15946E-03   -.90967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93767e-10
Minuit parameter uncertainties:
  1  1.77932
  2  0.866315
  3  0.253021
  4  0.102057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415240': 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) = 7645.47876396
delta logL = 0.0883932326906

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.210e+00  1.779e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.527e+00  8.663e-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:  1.053e+00  1.021e-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.040e+00  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 66.195 0.603
Photon Index (Free Index): 2.53 +/- 0.87
Photon Flux (Free Index): 5.44e-08 +/- 5.57e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.51e-05

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/415240/cmap_HighResolution_480902401_481161601_4FGL_J0424.7+0036_daily_bin932.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='1.53e-05', photon_flux_error='4.00e-08', dlogl='8.84e-02', energy_flux='1.77e-05', photon_flux2='5.44e-08', job_status='DONE', time_completed='2021-08-20 14:00:57.781254', photon_index_error2='0.87', photon_index2='2.53', ts='1.74', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.51e-05', EG='1.06', time_epoch_completed='1629493257.78', return_code='0', job_id='415240', GAL2='1.05', EG2='1.04', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='5.57e-08', ts2='1.93', photon_index='2.21' WHERE bin_id='932' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:00:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0146>
Subject: Job 415240: <4FGL_J0424.7+0036_daily_bin932> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin932> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 13:45:38 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:45:39 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:45:39 2021
Terminated at Fri Aug 20 14:00:58 2021
Results reported at Fri Aug 20 14:00:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin932 66.1945 0.6028 480902401 481161601 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 :                                   738.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            920 sec.

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

