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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1124
RA = 214.623, Dec = 35.7192
tmin = 530668801, tmax = 530928001
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='320679', job_status='RUN', time_executed='2021-09-09 08:18:04.699558', time_epoch_executed='1631200684.7' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320679/ft1_4FGL_J1418.4+3543_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320679/ft2_4FGL_J1418.4+3543_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320679/ft1_4FGL_J1418.4+3543_daily_bin1124.fits outfile=/scratch/kocevski/320679/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1124.fits ra=214.623 dec=35.7192 rad=12.0 tmin=530668801.0 tmax=530928001.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.65
user 3.39
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/320679/ft2_4FGL_J1418.4+3543_daily_bin1124.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/320679/ft2_4FGL_J1418.4+3543_daily_bin1124.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/320679/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1124.fits evtable="EVENTS" outfile="/scratch/kocevski/320679/ft1_filtered_4FGL_J1418.4+3543_daily_bin1124.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/320679/ft1_filtered_4FGL_J1418.4+3543_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/320679/ft2_4FGL_J1418.4+3543_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/320679/ltcube_530668801_530928001_4FGL_J1418.4+3543_daily_bin1124.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/320679/ft2_4FGL_J1418.4+3543_daily_bin1124.fits
.....................!
real 11.72
user 11.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320679/ft1_filtered_4FGL_J1418.4+3543_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/320679/ft2_4FGL_J1418.4+3543_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/320679/ltcube_530668801_530928001_4FGL_J1418.4+3543_daily_bin1124.fits outfile=/scratch/kocevski/320679/expmap_530668801_530928001_4FGL_J1418.4+3543_daily_bin1124.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/320679/ltcube_530668801_530928001_4FGL_J1418.4+3543_daily_bin1124.fits
.....................!
real 190.96
user 185.74
sys 4.82

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J1418.4+3543 @ 214.623 35.7192

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/320679/ft1_filtered_4FGL_J1418.4+3543_daily_bin1124.fits scfile=/scratch/kocevski/320679/ft2_4FGL_J1418.4+3543_daily_bin1124.fits outfile=/scratch/kocevski/320679/cmap_530668801_530928001_4FGL_J1418.4+3543_daily_bin1124.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=214.623 yref=35.7192 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320679/ft1_filtered_4FGL_J1418.4+3543_daily_bin1124.fits scfile=/scratch/kocevski/320679/ft2_4FGL_J1418.4+3543_daily_bin1124.fits outfile=/scratch/kocevski/320679/cmap_HighResolution_530668801_530928001_4FGL_J1418.4+3543_daily_bin1124.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=214.623 yref=35.7192 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/320679/ft1_filtered_4FGL_J1418.4+3543_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/320679/ft2_4FGL_J1418.4+3543_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/320679/Model_4FGL_J1418.4+3543_daily_bin1124.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/320679/ft1_filtered_4FGL_J1418.4+3543_daily_bin1124.fits.....................!
real 45.61
user 44.34
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/320679/ft1_filtered_4FGL_J1418.4+3543_daily_bin1124.fits', '/scratch/kocevski/320679/ft2_4FGL_J1418.4+3543_daily_bin1124.fits', expMap='/scratch/kocevski/320679/expmap_530668801_530928001_4FGL_J1418.4+3543_daily_bin1124.fits', expCube='/scratch/kocevski/320679/ltcube_530668801_530928001_4FGL_J1418.4+3543_daily_bin1124.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/320679/Model_4FGL_J1418.4+3543_daily_bin1124.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1418.4+3543'

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  4.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.016e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/320679/ft1_filtered_4FGL_J1418.4+3543_daily_bin1124.fits
Spacecraft file(s): /scratch/kocevski/320679/ft2_4FGL_J1418.4+3543_daily_bin1124.fits
Exposure map: /scratch/kocevski/320679/expmap_530668801_530928001_4FGL_J1418.4+3543_daily_bin1124.fits
Exposure cube: /scratch/kocevski/320679/ltcube_530668801_530928001_4FGL_J1418.4+3543_daily_bin1124.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/320679/Model_4FGL_J1418.4+3543_daily_bin1124.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) = 5713.86216765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.7859       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11046E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.8954       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.638       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.025       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.501       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1060       1.0000         .10000E-03   10000.    
    15 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1021       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.899       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.731       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87126       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5713.852     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2653 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    21.940        .90712E-02** at limit **
   2  Prefactor     .10000E-03    12.016        .90712E-02** at limit **
   3  Prefactor     .10000E-03    93.956        .90712E-02** at limit **
   4  norm          6.7856        2.2369        .38507E-02   -.45128E-04
   5  Prefactor     .10000E-03    2.5071        .62335E-01** at limit **
   6  norm          4.8930        12.396        .45448E-02   -.14662E-03
   7  Prefactor     .10000E-03    8.6066        .90712E-02** at limit **
   8  Prefactor     .10001E-03    11.671        .90712E-02** at limit **
   9  norm          .10000E-03    2.2885        .90712E-02** at limit **
  10  Prefactor     19.639        19.484        .22595E-02   -.14544E-03
  11  Prefactor     23.023        22.422        .20869E-02    .38615E-03
  12  Prefactor     15.502        6.2252        .25432E-02    .19372E-02
  13  norm          .10000E-03    4.3973        .90712E-02** at limit **
  14  Prefactor     6.1079        22.844        .40619E-02    .65572E-03
  15  norm          .10000E-03    4.1120        .90712E-02** at limit **
  16  Prefactor     .10006E-03    13.889        .90712E-02** at limit **
  17  Prefactor     .10004E-03    17.088        .90712E-02** at limit **
  18  norm          4.1013        6.2075        .49761E-02    .17338E-03
  19  Prefactor     23.895        16.978        .20485E-02   -.53504E-03
  20  Prefactor     .10000E-03    2.2072        .90712E-02** at limit **
  21  norm          .10000E-03    .36889        .90712E-02** at limit **
  22  Prefactor     43.731        54.912        .15156E-02    .17844E-03
  23  Normalizat    .87135        .18882        .44533E-01   -.82086E-04
  24  Prefactor     1.2051        .20697        .58759E-01   -.71478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.78564
  Prefactor  = 0.000100001
  norm       = 4.89304
  Prefactor  = 0.000100002
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 19.6391
  Prefactor  = 23.0234
  Prefactor  = 15.5015
  norm       = 0.0001
  Prefactor  = 6.10787
  norm       = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 0.000100044
  norm       = 4.10133
  Prefactor  = 23.8953
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.7311
  Normalizat = 0.871353
  Prefactor  = 1.20511
 **********
 **   18 **HESSE 
 **********

 FCN=   5713.852     FROM HESSE     STATUS=OK           391 CALLS     3044 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    21.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    94.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.7856        2.2393        .62154E-04   -1.5187    
   5  Prefactor     .10000E-03    8.1580        .22867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.8930        12.380        .18179E-03   -1.5266    
   7  Prefactor     .10000E-03    8.6112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    11.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.3077        .11161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.639        19.479        .90382E-04   -1.4821    
  11  Prefactor     23.023        22.427        .83476E-04   -1.4748    
  12  Prefactor     15.502        6.2362        .50864E-03   -1.4920    
  13  norm          .10000E-03    4.3979        .15481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1079        22.822        .81238E-03   -1.5214    
  15  norm          .10000E-03    4.2368        .29927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    13.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10004E-03    17.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1013        6.1970        .19904E-03   -1.5303    
  19  Prefactor     23.895        16.964        .81939E-04   -1.4730    
  20  Prefactor     .10000E-03    2.2118        .10966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .37181        .44820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     43.731        54.920        .60624E-04   -1.4384    
  23  Normalizat    .87135        .22497        .26200E-03   -.97474    
  24  Prefactor     1.2051        .24798        .25985E-03   -.86174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.53141e-09
Minuit parameter uncertainties:
  1  0.000810673
  2  0.000106485
  3  0.000554121
  4  2.23936
  5  0.000162907
  6  12.3866
  7  0.000267945
  8  0.00070417
  9  1.90415e-06
  10  19.4848
  11  22.4355
  12  6.23645
  13  3.38962e-06
  14  22.8543
  15  3.79589e-06
  16  0.0017762
  17  0.00173342
  18  6.198
  19  16.9674
  20  3.84295e-06
  21  8.9049e-07
  22  54.9837
  23  0.225212
  24  0.248225
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  1.904e-06  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.016e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.205e+00  2.482e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  8.714e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.623 35.719
Photon Flux Upper Limit: 5.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/320679/likelihoodResults_530668801_530928001_4FGL_J1418.4+3543_daily_bin1124.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) = 5713.85406818
delta logL = -0.00205458890196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5713.85201423
delta logL = -6.38512574369e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10324E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0370       1.0000          .0000       5.0000    
     3 'Normalizat'    .87122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5713.345     FROM MIGRAD    STATUS=FAILED       209 CALLS      349 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70212E-01    3.3753        .47000E-02    .42577E-02
   2  alpha         5.0000        2.6003        .50000    ** at limit **
   3  Normalizat    .80552        .94257E-01    .26200E-02    .55958E-04
   4  Prefactor     1.2541        .90833E-01    .25985E-03    .42439E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5713.345     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      509 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70212E-01    3.3753        .32760E-06    .42577E-02
   2  alpha         5.0000        2.6003        .72742E-02** at limit **
   3  Normalizat    .80552        .94257E-01    .12621E-06    .55958E-04
   4  Prefactor     1.2541        .90833E-01    .12308E-07    .42439E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5713.345     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      552 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70211E-01    .80354E-01    .21541E-03    .13569E-01
   2  alpha         5.0000        3.6739        .71766E-01** at limit **
   3  Normalizat    .80552        .22371        .10480E-03    .37968E-04
   4  Prefactor     1.2541        .25196        .10394E-04    .34564E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0702113
  alpha      = 5
  Normalizat = 0.805519
  Prefactor  = 1.25414
 **********
 **   18 **HESSE 
 **********

 FCN=   5713.345     FROM HESSE     STATUS=OK            27 CALLS      579 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70211E-01    .78591E-01    .43081E-04   -1.5655    
   2  alpha         5.0000        3.6686        .28707E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .80552        .22320        .41920E-05   -.99864    
   4  Prefactor     1.2541        .25147        .20788E-05   -.84681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17613e-11
Minuit parameter uncertainties:
  1  0.0785915
  2  1.73252e-05
  3  0.22345
  4  0.25171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320679': 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) = 5713.34471164
delta logL = 0.507301947741

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  7.021e-02  7.859e-02  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  5.000e+00  1.733e-05  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.254e+00  2.517e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  8.055e-01  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 214.623 35.719
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.48e-08 +/- 6.10e-08
Energy Flux (Free Index): 7.42e-06 +/- 8.28e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/320679/cmap_HighResolution_530668801_530928001_4FGL_J1418.4+3543_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-05', comment='SUCCESS', energy_flux2='7.42e-06', dlogl='5.07e-01', photon_flux2='5.48e-08', job_status='DONE', time_completed='2021-09-09 08:29:37.723473', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='5.59e-08', energy_flux_error2='8.28e-06', EG='0.87', time_epoch_completed='1631201377.72', return_code='0', job_id='320679', GAL2='1.25', EG2='0.81', return_code2='0', photon_flux_error2='6.10e-08', ts2='1.09', photon_index='2.02' WHERE bin_id='1124' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:29:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 320679: <4FGL_J1418.4+3543_daily_bin1124> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1124> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 08:15:50 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:15:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 08:15:52 2021
Terminated at Thu Sep  9 08:29:38 2021
Results reported at Thu Sep  9 08:29:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1124 214.623 35.7192 530668801 530928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1418.4+3543 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   653.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            828 sec.

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

