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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin236
RA = 66.1945, Dec = 0.6028
tmin = 300499201, tmax = 300758401
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='412123', job_status='RUN', time_executed='2021-08-20 13:36:09.048932', time_epoch_executed='1629491769.05' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412123/ft1_4FGL_J0424.7+0036_daily_bin236.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412123/ft2_4FGL_J0424.7+0036_daily_bin236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412123/ft1_4FGL_J0424.7+0036_daily_bin236.fits outfile=/scratch/kocevski/412123/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin236.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=300499201.0 tmax=300758401.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.41
user 3.25
sys 1.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412123/ft1_filtered_4FGL_J0424.7+0036_daily_bin236.fits" evtable="EVENTS" scfile=/scratch/kocevski/412123/ft2_4FGL_J0424.7+0036_daily_bin236.fits sctable="SC_DATA" outfile=/scratch/kocevski/412123/ltcube_300499201_300758401_4FGL_J0424.7+0036_daily_bin236.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/412123/ft2_4FGL_J0424.7+0036_daily_bin236.fits
.....................!
real 12.78
user 11.36
sys 1.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412123/ft1_filtered_4FGL_J0424.7+0036_daily_bin236.fits evtable="EVENTS" scfile=/scratch/kocevski/412123/ft2_4FGL_J0424.7+0036_daily_bin236.fits sctable="SC_DATA" expcube=/scratch/kocevski/412123/ltcube_300499201_300758401_4FGL_J0424.7+0036_daily_bin236.fits outfile=/scratch/kocevski/412123/expmap_300499201_300758401_4FGL_J0424.7+0036_daily_bin236.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/412123/ltcube_300499201_300758401_4FGL_J0424.7+0036_daily_bin236.fits
.....................!
real 191.41
user 185.23
sys 5.84

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/412123/ft1_filtered_4FGL_J0424.7+0036_daily_bin236.fits scfile=/scratch/kocevski/412123/ft2_4FGL_J0424.7+0036_daily_bin236.fits outfile=/scratch/kocevski/412123/cmap_300499201_300758401_4FGL_J0424.7+0036_daily_bin236.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.45
user 0.38
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412123/ft1_filtered_4FGL_J0424.7+0036_daily_bin236.fits scfile=/scratch/kocevski/412123/ft2_4FGL_J0424.7+0036_daily_bin236.fits outfile=/scratch/kocevski/412123/cmap_HighResolution_300499201_300758401_4FGL_J0424.7+0036_daily_bin236.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.47
user 0.38
sys 1.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412123/ft1_filtered_4FGL_J0424.7+0036_daily_bin236.fits evtable="EVENTS" scfile=/scratch/kocevski/412123/ft2_4FGL_J0424.7+0036_daily_bin236.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412123/Model_4FGL_J0424.7+0036_daily_bin236.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/412123/ft1_filtered_4FGL_J0424.7+0036_daily_bin236.fits.....................!
real 120.30
user 117.49
sys 2.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66229       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0336       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.737       1.0000         .10000E-03   10000.    
     4 'norm      '    25.646       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0445       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .39339E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    8.8040       1.0000         .10000E-03   10000.    
     9 'norm      '    .21387E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .15142       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6582       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.780       1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.275       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10331E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.2267       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.206       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .16172       1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.964       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .46049       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2023       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.

 FCN=   8500.747     FROM MIGRAD    STATUS=CONVERGED   1076 CALLS     3478 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66201        .92985        .13040E-02    .22168E-02
   2  Prefactor     1.0080        37.859        .15731        .16514E-03
   3  Prefactor     30.731        19.590        .72270E-04    .17512E-03
   4  norm          25.641        19.064        .79102E-04   -.53752E-04
   5  Prefactor     .10000E-03    8.2261        .18142E-02** at limit **
   6  norm          2.0445        3.3541        .20843E-03    .32694E-03
   7  Prefactor     .10002E-03    24.947        .11787    ** at limit **
   8  norm          8.8019        8.5888        .13509E-03    .60930E-04
   9  norm          .10001E-03    74.418        .55466E-02** at limit **
  10  norm          .14960        1.2260        .13849E-02    .18277E-02
  11  Prefactor     3.6569        1.8908        .83112E-04    .93316E-03
  12  Prefactor     27.758        25.980        .76010E-04   -.11457E-03
  13  Prefactor     42.260        50.009        .61655E-04    .19066E-03
  14  Prefactor     .10000E-03    16.034        .36285E-03** at limit **
  15  norm          .10000E-03    1.5896        .11229E-02** at limit **
  16  Prefactor     .10000E-03    12.556        .18142E-02** at limit **
  17  norm          7.2256        3.1442        .99473E-04    .55362E-03
  18  Prefactor     10.206        7.9646        .12542E-03    .43110E-03
  19  Prefactor     .10000E-03    6.4879        .18142E-02** at limit **
  20  norm          .10000E-03    1.8964        .24234E-02** at limit **
  21  Prefactor     .10000E-03    10.909        .18142E-02** at limit **
  22  norm          .16166        .50274        .11038E-03    .69109E-03
  23  Prefactor     38.960        42.640        .64211E-04    .43909E-04
  24  Normalizat    .46056        .25615        .58611E-03    .20254E-03
  25  Prefactor     1.2022        .10011        .15593E-03    .62134E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.662013
  Prefactor  = 1.00801
  Prefactor  = 30.7307
  norm       = 25.6413
  Prefactor  = 0.0001
  norm       = 2.04451
  Prefactor  = 0.000100019
  norm       = 8.80188
  norm       = 0.000100009
  norm       = 0.149597
  Prefactor  = 3.65692
  Prefactor  = 27.7582
  Prefactor  = 42.2596
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.22555
  Prefactor  = 10.2056
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.161663
  Prefactor  = 38.9599
  Normalizat = 0.460556
  Prefactor  = 1.20219
 **********
 **   18 **HESSE 
 **********

 FCN=   8500.747     FROM HESSE     STATUS=OK           425 CALLS     3903 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66201        .92922        .52160E-04   -1.5545    
   2  Prefactor     1.0080        37.042        .15992       -1.5507    
   3  Prefactor     30.731        19.587        .14454E-04   -1.4599    
   4  norm          25.641        19.064        .15820E-04   -1.4695    
   5  Prefactor     .10000E-03    8.2262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0445        3.3494        .83373E-05   -1.5422    
   7  Prefactor     .10002E-03    24.426        .11956       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.8019        8.5883        .54035E-05   -1.5115    
   9  norm          .10001E-03    75.994        .11093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .14960        1.2105        .55398E-04   -1.5631    
  11  Prefactor     3.6569        1.8894        .33245E-05   -1.5325    
  12  Prefactor     27.758        25.983        .30404E-05   -1.4654    
  13  Prefactor     42.260        49.887        .12331E-04   -1.4407    
  14  Prefactor     .10000E-03    16.034        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5900        .22457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.2256        3.1440        .39789E-05   -1.5170    
  18  Prefactor     10.206        7.9641        .50169E-05   -1.5069    
  19  Prefactor     .10000E-03    6.4880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9014        .48468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.910        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .16166        .50267        .44153E-05   -1.5628    
  23  Prefactor     38.960        42.633        .25685E-05   -1.4459    
  24  Normalizat    .46056        .25598        .23444E-04   -1.1428    
  25  Prefactor     1.2022        .10008        .31187E-04   -.86264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31743e-09
Minuit parameter uncertainties:
  1  0.929243
  2  12.2287
  3  19.5915
  4  19.0683
  5  3.92722e-06
  6  3.34974
  7  0.0013606
  8  8.58947
  9  0.00163086
  10  0.850823
  11  1.88941
  12  25.9935
  13  49.936
  14  2.87075e-06
  15  1.98056e-05
  16  6.52758e-06
  17  3.14404
  18  7.96492
  19  6.73593e-06
  20  1.31335e-05
  21  4.56048e-05
  22  0.502683
  23  42.666
  24  0.256633
  25  0.100097
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  3.657e+00  1.889e+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.202e+00  1.001e-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:  4.606e-01  2.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.37
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 9.20e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 4.03e-05 +/- 2.08e-05

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) = 8499.81256487
delta logL = 0.934801254358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8499.80323529
delta logL = 0.944130829319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3520       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6989       1.0000          .0000       10.000    
     3 'Normalizat'    .48944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1987       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=   8499.803     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      235 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3521        4.1583        .48270E-02   -.44738E-02
   2  Index         1.6989        .56656        .19409       -.14053E-05
   3  Normalizat    .48940        .23668        .12851        .22318E-03
   4  Prefactor     1.1987        .97151E-01    .34661E-01    .67088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.35207
  Index      = 1.69888
  Normalizat = 0.489397
  Prefactor  = 1.19869
 **********
 **   18 **HESSE 
 **********

 FCN=   8499.803     FROM HESSE     STATUS=OK            29 CALLS      264 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3521        2.3201        .98133E-04   -1.5291    
   2  Index         1.6989        .36596        .73390E-02   -.72112    
   3  Normalizat    .48940        .23216        .57012E-03   -1.1291    
   4  Prefactor     1.1987        .97071E-01    .15622E-03   -.86372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67231e-09
Minuit parameter uncertainties:
  1  2.32016
  2  0.366544
  3  0.232621
  4  0.0970859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412123': 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) = 8499.80323477
delta logL = 0.944131354652

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  4.352e+00  2.320e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.699e+00  3.665e-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.199e+00  9.709e-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:  4.894e-01  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.28
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.70 +/- 0.37
Photon Flux (Free Index): 4.99e-08 +/- 3.75e-08
Energy Flux (Free Index): 8.17e-05 +/- 6.72e-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/412123/cmap_HighResolution_300499201_300758401_4FGL_J0424.7+0036_daily_bin236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.20e-08', energy_flux2='8.17e-05', photon_flux_error='4.75e-08', dlogl='9.44e-01', energy_flux='4.03e-05', photon_flux2='4.99e-08', job_status='DONE', time_completed='2021-08-20 13:48:46.811775', photon_index_error2='0.37', photon_index2='1.70', ts='12.37', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='6.72e-05', EG='0.46', time_epoch_completed='1629492526.81', return_code='0', job_id='412123', GAL2='1.20', EG2='0.49', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='3.75e-08', ts2='14.28', photon_index='2.21' WHERE bin_id='236' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:48:46 PDT 2021


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

Job <4FGL_J0424.7+0036_daily_bin236> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 13:35:36 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:35:38 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:35:38 2021
Terminated at Fri Aug 20 13:48:47 2021
Results reported at Fri Aug 20 13:48:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin236 66.1945 0.6028 300499201 300758401 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 :                                   772.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             392.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

