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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin935
RA = 66.1945, Dec = 0.6028
tmin = 481680001, tmax = 481939201
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='415244', job_status='RUN', time_executed='2021-08-20 13:48:18.913441', time_epoch_executed='1629492498.91' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='935'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415244/ft1_4FGL_J0424.7+0036_daily_bin935.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415244/ft2_4FGL_J0424.7+0036_daily_bin935.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415244/ft1_4FGL_J0424.7+0036_daily_bin935.fits outfile=/scratch/kocevski/415244/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin935.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=481680001.0 tmax=481939201.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.07
user 3.39
sys 0.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415244/ft2_4FGL_J0424.7+0036_daily_bin935.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/415244/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin935.fits evtable="EVENTS" outfile="/scratch/kocevski/415244/ft1_filtered_4FGL_J0424.7+0036_daily_bin935.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.94
user 0.33
sys 0.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415244/ft1_filtered_4FGL_J0424.7+0036_daily_bin935.fits" evtable="EVENTS" scfile=/scratch/kocevski/415244/ft2_4FGL_J0424.7+0036_daily_bin935.fits sctable="SC_DATA" outfile=/scratch/kocevski/415244/ltcube_481680001_481939201_4FGL_J0424.7+0036_daily_bin935.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/415244/ft2_4FGL_J0424.7+0036_daily_bin935.fits
.....................!
real 12.32
user 11.45
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415244/ft1_filtered_4FGL_J0424.7+0036_daily_bin935.fits evtable="EVENTS" scfile=/scratch/kocevski/415244/ft2_4FGL_J0424.7+0036_daily_bin935.fits sctable="SC_DATA" expcube=/scratch/kocevski/415244/ltcube_481680001_481939201_4FGL_J0424.7+0036_daily_bin935.fits outfile=/scratch/kocevski/415244/expmap_481680001_481939201_4FGL_J0424.7+0036_daily_bin935.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/415244/ltcube_481680001_481939201_4FGL_J0424.7+0036_daily_bin935.fits
.....................!
real 190.69
user 185.66
sys 4.73

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/415244/ft1_filtered_4FGL_J0424.7+0036_daily_bin935.fits scfile=/scratch/kocevski/415244/ft2_4FGL_J0424.7+0036_daily_bin935.fits outfile=/scratch/kocevski/415244/cmap_481680001_481939201_4FGL_J0424.7+0036_daily_bin935.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.98
user 0.37
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415244/ft1_filtered_4FGL_J0424.7+0036_daily_bin935.fits scfile=/scratch/kocevski/415244/ft2_4FGL_J0424.7+0036_daily_bin935.fits outfile=/scratch/kocevski/415244/cmap_HighResolution_481680001_481939201_4FGL_J0424.7+0036_daily_bin935.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.00
user 0.37
sys 0.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415244/ft1_filtered_4FGL_J0424.7+0036_daily_bin935.fits evtable="EVENTS" scfile=/scratch/kocevski/415244/ft2_4FGL_J0424.7+0036_daily_bin935.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415244/Model_4FGL_J0424.7+0036_daily_bin935.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/415244/ft1_filtered_4FGL_J0424.7+0036_daily_bin935.fits.....................!
real 110.11
user 108.12
sys 1.77

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1038       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0028       1.0000         .10000E-03   10000.    
     4 'norm      '    12.866       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.898       1.0000         .10000E-03   10000.    
     9 'norm      '    .13884E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .20865E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.066       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10937E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.078       1.0000         .10000E-03   10000.    
    17 'norm      '    6.7617       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12408E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.166       1.0000         .10000E-03   10000.    
    22 'norm      '    .31532E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.581       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .70901       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0746       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8145.644     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     2453 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1043        2.6609       -.26974E-06   -.78760E-03
   2  Prefactor     .10000E-03    5.8223       -.92354E-05** at limit **
   3  Prefactor     6.9997        1.0109        .22351E-06    .12210E-03
   4  norm          12.862        1.4075       -.17580E-05    .62102E-03
   5  Prefactor     .10035E-03    9.6673       -.29343E-04** at limit **
   6  norm          .10000E-03    2.0090       -.63912E-06** at limit **
   7  Prefactor     .10001E-03    9.7097        .10762E-04** at limit **
   8  norm          15.909        1.0433        .37602E-07   -.70649E-04
   9  norm          .10045E-03    19.267       -.28978E-04** at limit **
  10  norm          .10004E-03    1.9555        .12690E-04** at limit **
  11  Prefactor     .10000E-03    1.4398        .31638E-06** at limit **
  12  Prefactor     25.068        1.5051        .14715E-05   -.15420E-02
  13  Prefactor     .10024E-03    11.231       -.56658E-05** at limit **
  14  Prefactor     .10000E-03    7.1596       -.14444E-05** at limit **
  15  norm          .10000E-03    2.1777        .11344E-05** at limit **
  16  Prefactor     38.057        7.5028       -.79374E-05    .15747E-01
  17  norm          6.7625        2.6807       -.68737E-06    .58640E-03
  18  Prefactor     .10041E-03    7.3407        .19571E-04** at limit **
  19  Prefactor     .10026E-03    10.987        .32453E-04** at limit **
  20  norm          .10000E-03    2.4151       -.54188E-06** at limit **
  21  Prefactor     45.174        4.0285        .38397E-05   -.10024E-01
  22  norm          .27162E-01    3.3717       -.48883E-06   -.10691E-03
  23  Prefactor     16.588        2.3208        .33538E-05   -.23531E-02
  24  Normalizat    .70863        .24262       -.34260E-05    .13692E-03
  25  Prefactor     1.0748        .96742E-01    .13534E-05    .90943E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.10434
  Prefactor  = 0.000100001
  Prefactor  = 6.99974
  norm       = 12.8616
  Prefactor  = 0.000100347
  norm       = 0.0001
  Prefactor  = 0.000100008
  norm       = 15.9088
  norm       = 0.000100451
  norm       = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 25.0677
  Prefactor  = 0.000100243
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 38.0573
  norm       = 6.76252
  Prefactor  = 0.000100415
  Prefactor  = 0.000100256
  norm       = 0.0001
  Prefactor  = 45.174
  norm       = 0.0271616
  Prefactor  = 16.5884
  Normalizat = 0.708631
  Prefactor  = 1.07478
 **********
 **   18 **HESSE 
 **********

 FCN=   8145.644     FROM HESSE     STATUS=OK           503 CALLS     2956 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1043        2.6731        .37627E-02   -1.5175    
   2  Prefactor     .10000E-03    16.171        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9997        10.626        .37899E-02   -1.5179    
   4  norm          12.862        17.603        .27918E-02   -1.4991    
   5  Prefactor     .10035E-03    14.716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9992        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    9.7254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.909        11.540        .25113E-02   -1.4910    
   9  norm          .10045E-03    31.079        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10004E-03    .46025        .34213E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .91279        .32340E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.068        22.353        .20003E-02   -1.4706    
  13  Prefactor     .10024E-03    28.911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.0488        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1050        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.057        30.861        .16238E-02   -1.4473    
  17  norm          6.7625        2.6861        .38576E-02   -1.5188    
  18  Prefactor     .10041E-03    3.2573        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10026E-03    22.510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2960        .34560E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.174        41.728        .14914E-02   -1.4363    
  22  norm          .27162E-01    .36757        .30518E-01   -1.5675    
  23  Prefactor     16.588        22.968        .24590E-02   -1.4893    
  24  Normalizat    .70863        .24263        .10564       -1.0355    
  25  Prefactor     1.0748        .90514E-01    .38643E-01   -.90277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11418e-06
Minuit parameter uncertainties:
  1  2.6731
  2  0.000254048
  3  10.6291
  4  17.6103
  5  0.0045226
  6  1.64941e-05
  7  0.000568667
  8  11.5419
  9  0.00749267
  10  0.000275506
  11  2.82666e-07
  12  22.3603
  13  0.00530381
  14  0.000154827
  15  7.5496e-05
  16  30.8742
  17  2.68616
  18  0.00232422
  19  0.00480014
  20  2.50758e-05
  21  41.7548
  22  0.199472
  23  22.9807
  24  0.242999
  25  0.0905264
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  2.827e-07  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.075e+00  9.053e-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:  7.086e-01  2.430e-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.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415244/likelihoodResults_481680001_481939201_4FGL_J0424.7+0036_daily_bin935.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) = 8145.6475608
delta logL = -0.00331662760073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8145.64424289
delta logL = 1.27989551402e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2510       1.0000          .0000       10.000    
     3 'Normalizat'    .70841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0749       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=   8145.111     FROM MIGRAD    STATUS=CONVERGED    167 CALLS      334 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48824E-02    .82160E-02    .15182E-02   -.19575E-01
   2  Index         5.1413        .55203        .10836        .23421E-03
   3  Normalizat    .63573        .23645        .11105        .99111E-04
   4  Prefactor     1.0905        .92025E-01    .38629E-01    .28763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00488241
  Index      = 5.14132
  Normalizat = 0.635729
  Prefactor  = 1.09047
 **********
 **   18 **HESSE 
 **********

 FCN=   8145.111     FROM HESSE     STATUS=OK            33 CALLS      367 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48824E-02    .40812E-01    .69400E-04   -1.5722    
   2  Index         5.1413        2.2817        .61391E-02    .28267E-01
   3  Normalizat    .63573        .24509        .49246E-03   -1.0649    
   4  Prefactor     1.0905        .97680E-01    .15577E-03   -.89772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35959e-11
Minuit parameter uncertainties:
  1  0.0279413
  2  2.36948
  3  0.245512
  4  0.0976963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415244': 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) = 8145.1111537
delta logL = 0.533090474466

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  4.882e-03  2.794e-02  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  5.141e+00  2.369e+00  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.090e+00  9.770e-02  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  6.357e-01  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 66.195 0.603
Photon Index (Free Index): 5.14 +/- 2.37
Photon Flux (Free Index): 7.01e-08 +/- 7.82e-07
Energy Flux (Free Index): 9.22e-06 +/- 1.01e-04

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/415244/cmap_HighResolution_481680001_481939201_4FGL_J0424.7+0036_daily_bin935.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-03', comment='SUCCESS', energy_flux2='9.22e-06', dlogl='5.33e-01', photon_flux2='7.01e-08', job_status='DONE', time_completed='2021-08-20 14:00:31.116650', photon_index_error2='2.37', photon_index2='5.14', ts='-0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='9.37e-08', energy_flux_error2='1.01e-04', EG='0.71', time_epoch_completed='1629493231.12', return_code='0', job_id='415244', GAL2='1.09', EG2='0.64', return_code2='0', photon_flux_error2='7.82e-07', ts2='1.16', photon_index='2.21' WHERE bin_id='935' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:00:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 415244: <4FGL_J0424.7+0036_daily_bin935> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin935> 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) <bullet0236>, 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:31 2021
Results reported at Fri Aug 20 14:00:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin935 66.1945 0.6028 481680001 481939201 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 :                                   739.00 sec.
    Max Memory :                                 1182 MB
    Average Memory :                             335.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

