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


Performing analysis on: 4FGL_J1410.1+0202_daily_bin51
RA = 212.529, Dec = 2.0354
tmin = 252547201, tmax = 252806401
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='231066', job_status='RUN', time_executed='2021-09-09 03:30:59.365527', time_epoch_executed='1631183459.37' WHERE source_name='4FGL J1410.1+0202' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231066

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231066/ft1_4FGL_J1410.1+0202_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231066/ft2_4FGL_J1410.1+0202_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231066/ft1_4FGL_J1410.1+0202_daily_bin51.fits outfile=/scratch/kocevski/231066/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin51.fits ra=212.529 dec=2.0354 rad=12.0 tmin=252547201.0 tmax=252806401.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 1.40
user 1.21
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/231066/ft2_4FGL_J1410.1+0202_daily_bin51.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231066/ft2_4FGL_J1410.1+0202_daily_bin51.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/231066/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin51.fits evtable="EVENTS" outfile="/scratch/kocevski/231066/ft1_filtered_4FGL_J1410.1+0202_daily_bin51.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.63
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231066/ft1_filtered_4FGL_J1410.1+0202_daily_bin51.fits" evtable="EVENTS" scfile=/scratch/kocevski/231066/ft2_4FGL_J1410.1+0202_daily_bin51.fits sctable="SC_DATA" outfile=/scratch/kocevski/231066/ltcube_252547201_252806401_4FGL_J1410.1+0202_daily_bin51.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/231066/ft2_4FGL_J1410.1+0202_daily_bin51.fits
.....................!
real 12.40
user 12.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231066/ft1_filtered_4FGL_J1410.1+0202_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/231066/ft2_4FGL_J1410.1+0202_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/231066/ltcube_252547201_252806401_4FGL_J1410.1+0202_daily_bin51.fits outfile=/scratch/kocevski/231066/expmap_252547201_252806401_4FGL_J1410.1+0202_daily_bin51.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/231066/ltcube_252547201_252806401_4FGL_J1410.1+0202_daily_bin51.fits
.....................!
real 190.54
user 185.97
sys 4.22

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

Setting source of interest to:
4FGL J1410.1+0202 @ 212.529 2.0354

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/231066/ft1_filtered_4FGL_J1410.1+0202_daily_bin51.fits scfile=/scratch/kocevski/231066/ft2_4FGL_J1410.1+0202_daily_bin51.fits outfile=/scratch/kocevski/231066/cmap_252547201_252806401_4FGL_J1410.1+0202_daily_bin51.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=212.529 yref=2.0354 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231066/ft1_filtered_4FGL_J1410.1+0202_daily_bin51.fits scfile=/scratch/kocevski/231066/ft2_4FGL_J1410.1+0202_daily_bin51.fits outfile=/scratch/kocevski/231066/cmap_HighResolution_252547201_252806401_4FGL_J1410.1+0202_daily_bin51.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=212.529 yref=2.0354 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/231066/ft1_filtered_4FGL_J1410.1+0202_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/231066/ft2_4FGL_J1410.1+0202_daily_bin51.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/231066/Model_4FGL_J1410.1+0202_daily_bin51.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/231066/ft1_filtered_4FGL_J1410.1+0202_daily_bin51.fits.....................!
real 61.68
user 60.37
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231066/ft1_filtered_4FGL_J1410.1+0202_daily_bin51.fits', '/scratch/kocevski/231066/ft2_4FGL_J1410.1+0202_daily_bin51.fits', expMap='/scratch/kocevski/231066/expmap_252547201_252806401_4FGL_J1410.1+0202_daily_bin51.fits', expCube='/scratch/kocevski/231066/ltcube_252547201_252806401_4FGL_J1410.1+0202_daily_bin51.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231066/Model_4FGL_J1410.1+0202_daily_bin51.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1410.1+0202'

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  5.797e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/231066/ft1_filtered_4FGL_J1410.1+0202_daily_bin51.fits
Spacecraft file(s): /scratch/kocevski/231066/ft2_4FGL_J1410.1+0202_daily_bin51.fits
Exposure map: /scratch/kocevski/231066/expmap_252547201_252806401_4FGL_J1410.1+0202_daily_bin51.fits
Exposure cube: /scratch/kocevski/231066/ltcube_252547201_252806401_4FGL_J1410.1+0202_daily_bin51.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231066/Model_4FGL_J1410.1+0202_daily_bin51.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) = 8581.58920312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0835       1.0000         .10000E-03   10000.    
     2 'norm      '    39.624       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30789E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.8419       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.409       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3587       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2245       1.0000         .10000E-03   10000.    
    11 'norm      '    .10375E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.097       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.580       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.976       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .92926       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1228       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8581.580     FROM MIGRAD    STATUS=CONVERGED    350 CALLS     1748 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0833        2.3037       -.26508E-06   -.44507E-03
   2  norm          39.621        28.296       -.33266E-05    .63147E-05
   3  Prefactor     .10012E-03    1.4424       -.71593E-06** at limit **
   4  Prefactor     .10000E-03    19.068       -.54431E-05** at limit **
   5  Prefactor     .10000E-03    3.0050        .47604E-07** at limit **
   6  Prefactor     .10000E-03    3.3674       -.53602E-06** at limit **
   7  norm          3.8420        2.2992       -.45451E-07   -.39162E-03
   8  Prefactor     14.408        17.030       -.55538E-06   -.45513E-06
   9  Prefactor     8.3575        20.184       -.21448E-05   -.19720E-04
  10  norm          4.2238        6.6727        .21466E-06   -.10024E-03
  11  norm          .10000E-03    3.0477       -.13552E-06** at limit **
  12  Prefactor     18.099        18.305        .17259E-05   -.61479E-04
  13  norm          .10000E-03    22.962        .15119E-04** at limit **
  14  Prefactor     51.573        64.056       -.96919E-05   -.78271E-06
  15  Prefactor     .10000E-03    27.753       -.83360E-05** at limit **
  16  norm          15.983        13.102        .19367E-05    .15614E-03
  17  Normalizat    .92919        .18461        .26331E-05    .15355E-03
  18  Prefactor     1.1229        .12300       -.68041E-06    .41505E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.08335
  norm       = 39.621
  Prefactor  = 0.000100116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.84204
  Prefactor  = 14.4083
  Prefactor  = 8.35752
  norm       = 4.22383
  norm       = 0.0001
  Prefactor  = 18.0993
  norm       = 0.0001
  Prefactor  = 51.573
  Prefactor  = 0.0001
  norm       = 15.9833
  Normalizat = 0.929193
  Prefactor  = 1.12291
 **********
 **   18 **HESSE 
 **********

 FCN=   8581.580     FROM HESSE     STATUS=OK           246 CALLS     1994 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0833        2.3106        .10021E-03   -1.5304    
   2  norm          39.621        28.312        .63676E-04   -1.4448    
   3  Prefactor     .10012E-03    21.499        .20963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0772        .15676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3758        .16600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.8420        2.2866        .10391E-03   -1.5316    
   8  Prefactor     14.408        17.030        .10552E-03   -1.4949    
   9  Prefactor     8.3575        20.199        .13866E-03   -1.5130    
  10  norm          4.2238        6.6643        .19605E-03   -1.5297    
  11  norm          .10000E-03    11.432        .31291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.099        18.267        .94150E-04   -1.4857    
  13  norm          .10000E-03    22.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.573        64.178        .55842E-04   -1.4270    
  15  Prefactor     .10000E-03    28.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.983        13.129        .10021E-03   -1.4908    
  17  Normalizat    .92919        .21427        .30794E-03   -.95442    
  18  Prefactor     1.1229        .14499        .19405E-03   -.88738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45348e-09
Minuit parameter uncertainties:
  1  2.3107
  2  28.3215
  3  0.00316412
  4  7.18265e-07
  5  5.12654e-06
  6  1.96949e-06
  7  2.28669
  8  17.0362
  9  20.2159
  10  6.66549
  11  9.64401e-06
  12  18.2724
  13  0.000103318
  14  64.2643
  15  0.000197706
  16  13.1311
  17  0.214465
  18  0.145038
Done.

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

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.441e+01  1.704e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.123e+00  1.450e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.292e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 212.529 2.035
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.55e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 9.44e-06 +/- 1.12e-05

TS (Fixed Index): 1.02
Ra Dec: 212.529 2.035
Photon Flux Upper Limit: 9.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231066/likelihoodResults_252547201_252806401_4FGL_J1410.1+0202_daily_bin51.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8581.57825376
delta logL = 0.00187142867071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8581.57774573
delta logL = 0.00237946539346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.978       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2659       1.0000          .0000       10.000    
     3 'Normalizat'    .93060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8581.578     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      228 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.978        511.84        .25873E-02   -.97460E-04
   2  Index         2.2659        6.1288        .24455        .38540E-04
   3  Normalizat    .93053        .58382E-01    .69557E-01    .25323E-04
   4  Prefactor     1.1223        .35672E-01    .36796E-01    .59510E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9779
  Index      = 2.26585
  Normalizat = 0.930535
  Prefactor  = 1.12232
 **********
 **   18 **HESSE 
 **********

 FCN=   8581.578     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.978        19.798        .10349E-03   -1.4934    
   2  Index         2.2659        .72050        .93376E-02   -.57857    
   3  Normalizat    .93053        .20895        .30773E-03   -.95395    
   4  Prefactor     1.1223        .14368        .19410E-03   -.88756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86175e-11
Minuit parameter uncertainties:
  1  19.8066
  2  0.724107
  3  0.209132
  4  0.143729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231066': 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) = 8581.57774567
delta logL = 0.00237952236239

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.498e+01  1.981e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.266e+00  7.241e-01  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.122e+00  1.437e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.305e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 212.529 2.035
Photon Index (Free Index): 2.27 +/- 0.72
Photon Flux (Free Index): 2.45e-08 +/- 3.19e-08
Energy Flux (Free Index): 9.82e-06 +/- 1.33e-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/231066/cmap_HighResolution_252547201_252806401_4FGL_J1410.1+0202_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', comment='SUCCESS', photon_flux='2.55e-08', energy_flux2='9.82e-06', photon_flux_error='3.01e-08', dlogl='2.38e-03', energy_flux='9.44e-06', photon_flux2='2.45e-08', job_status='DONE', time_completed='2021-09-09 03:40:55.671140', photon_index_error2='0.72', photon_index2='2.27', ts='1.02', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='9.45e-08', energy_flux_error2='1.33e-05', EG='0.93', time_epoch_completed='1631184055.67', return_code='0', job_id='231066', GAL2='1.12', EG2='0.93', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.19e-08', ts2='1.02', photon_index='2.31' WHERE bin_id='51' AND source_name='4FGL J1410.1+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:40:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 231066: <4FGL_J1410.1+0202_daily_bin51> in cluster <slac> Done

Job <4FGL_J1410.1+0202_daily_bin51> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 03:30:40 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:30:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 03:30:42 2021
Terminated at Thu Sep  9 03:40:56 2021
Results reported at Thu Sep  9 03:40:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1410.1+0202_daily_bin51 212.529 2.0354 252547201 252806401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1410.1+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   592.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            616 sec.

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

