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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin909
RA = 66.1945, Dec = 0.6028
tmin = 474940801, tmax = 475200001
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='415207', job_status='RUN', time_executed='2021-08-20 13:48:42.118265', time_epoch_executed='1629492522.12' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415207

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415207/ft1_4FGL_J0424.7+0036_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415207/ft2_4FGL_J0424.7+0036_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415207/ft1_4FGL_J0424.7+0036_daily_bin909.fits outfile=/scratch/kocevski/415207/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin909.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=474940801.0 tmax=475200001.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.96
user 3.32
sys 0.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415207/ft1_filtered_4FGL_J0424.7+0036_daily_bin909.fits" evtable="EVENTS" scfile=/scratch/kocevski/415207/ft2_4FGL_J0424.7+0036_daily_bin909.fits sctable="SC_DATA" outfile=/scratch/kocevski/415207/ltcube_474940801_475200001_4FGL_J0424.7+0036_daily_bin909.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/415207/ft2_4FGL_J0424.7+0036_daily_bin909.fits
.....................!
real 12.75
user 11.94
sys 0.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415207/ft1_filtered_4FGL_J0424.7+0036_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/415207/ft2_4FGL_J0424.7+0036_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/415207/ltcube_474940801_475200001_4FGL_J0424.7+0036_daily_bin909.fits outfile=/scratch/kocevski/415207/expmap_474940801_475200001_4FGL_J0424.7+0036_daily_bin909.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/415207/ltcube_474940801_475200001_4FGL_J0424.7+0036_daily_bin909.fits
.....................!
real 190.13
user 185.12
sys 4.61

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/415207/ft1_filtered_4FGL_J0424.7+0036_daily_bin909.fits scfile=/scratch/kocevski/415207/ft2_4FGL_J0424.7+0036_daily_bin909.fits outfile=/scratch/kocevski/415207/cmap_474940801_475200001_4FGL_J0424.7+0036_daily_bin909.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.93
user 0.38
sys 0.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415207/ft1_filtered_4FGL_J0424.7+0036_daily_bin909.fits scfile=/scratch/kocevski/415207/ft2_4FGL_J0424.7+0036_daily_bin909.fits outfile=/scratch/kocevski/415207/cmap_HighResolution_474940801_475200001_4FGL_J0424.7+0036_daily_bin909.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.94
user 0.37
sys 0.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415207/ft1_filtered_4FGL_J0424.7+0036_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/415207/ft2_4FGL_J0424.7+0036_daily_bin909.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415207/Model_4FGL_J0424.7+0036_daily_bin909.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/415207/ft1_filtered_4FGL_J0424.7+0036_daily_bin909.fits.....................!
real 119.01
user 116.96
sys 1.72

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6248       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5349       1.0000         .10000E-03   10000.    
     6 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.4083       1.0000         .10000E-03   10000.    
     9 'norm      '    26.259       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .32822E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.910       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.464       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6731       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5371       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1047       1.0000         .10000E-03   10000.    
    22 'norm      '    .23357       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1185       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94394       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=   8561.999     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2989 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6246        2.4636       -.47161E-07    .12474E-03
   2  Prefactor     .10000E-03    118.50        .22823E-05** at limit **
   3  Prefactor     .10000E-03    15.833        .11735E-05** at limit **
   4  norm          .10000E-03    5.8399       -.23023E-07** at limit **
   5  Prefactor     7.5343        31.861       -.11815E-05    .36734E-04
   6  norm          .10000E-03    2.4921       -.85390E-07** at limit **
   7  Prefactor     .10000E-03    20.108        .17463E-05** at limit **
   8  norm          4.4083        6.7780       -.61347E-06    .49894E-04
   9  norm          26.251        31.093       -.26501E-06    .14814E-03
  10  norm          .10000E-03    .40447       -.24681E-06** at limit **
  11  Prefactor     .10013E-03    10.225       -.38068E-05** at limit **
  12  Prefactor     28.893        31.041        .20634E-05    .20010E-03
  13  Prefactor     .10000E-03    16.438       -.46566E-06** at limit **
  14  Prefactor     10.464        11.350       -.21992E-06    .26816E-03
  15  norm          3.6745        3.8562       -.99924E-06   -.26270E-04
  16  Prefactor     .10000E-03    50.956       -.68789E-06** at limit **
  17  norm          2.5374        2.5376       -.92974E-06   -.17406E-05
  18  Prefactor     .10000E-03    4.3372       -.57538E-07** at limit **
  19  Prefactor     .10000E-03    16.847       -.13717E-05** at limit **
  20  norm          .10000E-03    .58306       -.47242E-07** at limit **
  21  Prefactor     1.0709        69.208        .56833E-05    .39426E-03
  22  norm          .23382        .37626        .36048E-06    .21156E-02
  23  Prefactor     .10000E-03    9.9930       -.11671E-06** at limit **
  24  Normalizat    1.1185        .22956        .98190E-06    .39880E-03
  25  Prefactor     .94394        .84871E-01    .44365E-06    .74227E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.62455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.53431
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.4083
  norm       = 26.2509
  norm       = 0.0001
  Prefactor  = 0.000100126
  Prefactor  = 28.8928
  Prefactor  = 0.0001
  Prefactor  = 10.464
  norm       = 3.67453
  Prefactor  = 0.0001
  norm       = 2.53736
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.07087
  norm       = 0.233823
  Prefactor  = 0.0001
  Normalizat = 1.11852
  Prefactor  = 0.943943
 **********
 **   18 **HESSE 
 **********

 FCN=   8561.999     FROM HESSE     STATUS=OK           431 CALLS     3420 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6246        2.4672        .79273E-04   -1.5156    
   2  Prefactor     .10000E-03    119.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.8421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.5343        31.493        .14610E-03   -1.5159    
   6  norm          .10000E-03    6.0803        .27859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.4083        6.7753        .19181E-03   -1.5288    
   9  norm          26.251        30.106        .78176E-04   -1.4683    
  10  norm          .10000E-03    .63184        .10853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10013E-03    16.835        .14334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.893        30.918        .74513E-04   -1.4632    
  13  Prefactor     .10000E-03    16.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.464        11.300        .12386E-03   -1.5061    
  15  norm          3.6745        3.8441        .14780E-03   -1.5325    
  16  Prefactor     .10000E-03    51.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5374        2.5425        .13857E-03   -1.5389    
  18  Prefactor     .10000E-03    4.3708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .58972        .68980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0709        131.82        .74360E-02   -1.5501    
  22  norm          .23382        .38027        .82438E-03   -1.5611    
  23  Prefactor     .10000E-03    10.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1185        .26112        .38888E-03   -.89159    
  25  Prefactor     .94394        .97269E-01    .16509E-03   -.94622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72575e-08
Minuit parameter uncertainties:
  1  2.4672
  2  0.000308377
  3  8.22142e-05
  4  2.5409e-06
  5  30.8352
  6  0.000189136
  7  0.000194831
  8  6.77653
  9  30.1234
  10  2.95032e-05
  11  0.00291751
  12  30.9354
  13  5.03384e-05
  14  11.3024
  15  3.84437
  16  0.000247235
  17  2.54261
  18  1.21493e-06
  19  0.000230566
  20  8.55575e-07
  21  23.8152
  22  0.380275
  23  1.5357e-05
  24  0.261423
  25  0.0972867
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.001e-04  2.918e-03  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.439e-01  9.729e-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:  1.119e+00  2.614e-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: 9.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415207/likelihoodResults_474940801_475200001_4FGL_J0424.7+0036_daily_bin909.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8561.99946943
delta logL = -0.000294104956993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8561.99917882
delta logL = -3.50029768015e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13857E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1024       1.0000          .0000       10.000    
     3 'Normalizat'    1.1191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94382       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=   8561.999     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      250 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .51034E-01    .52591E-01** at limit **
   2  Index         2.1231        5.4051        .50000        .44305E-05
   3  Normalizat    1.1185        .16162E-02    .87813E-01    .57068E-04
   4  Prefactor     .94394        .63934E-03    .45561E-01    .93857E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12308
  Normalizat = 1.11852
  Prefactor  = 0.943943
 **********
 **   18 **HESSE 
 **********

 FCN=   8561.999     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      291 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .17224        .28234E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1231        6.6686        .50000       -.61307    
   3  Normalizat    1.1185        .20097E-02    .38888E-03   -.89159    
   4  Prefactor     .94394        .79664E-03    .16509E-03   -.94622    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31858e-10
Minuit parameter uncertainties:
  1  6.00845e-06
  2  10.7171
  3  0.00200967
  4  0.000796644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415207': 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) = 8561.99917458
delta logL = 7.40743416827e-07

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  6.008e-06  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.123e+00  1.072e+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.439e-01  7.966e-04  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.119e+00  2.010e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.195 0.603

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/415207/cmap_HighResolution_474940801_475200001_4FGL_J0424.7+0036_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.38e-03', job_status='DONE', photon_flux_upper_limit='9.67e-08', time_completed='2021-08-20 14:01:57.410883', job_id='415207', GAL2='0.94', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1629493317.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='7.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='909' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:01:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 415207: <4FGL_J0424.7+0036_daily_bin909> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin909 66.1945 0.6028 474940801 475200001 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 :                                   800.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

