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


Performing analysis on: 4FGL_J1410.1+0202_daily_bin158
RA = 212.529, Dec = 2.0354
tmin = 280281601, tmax = 280540801
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='232275', job_status='RUN', time_executed='2021-09-09 03:37:12.587790', time_epoch_executed='1631183832.59' WHERE source_name='4FGL J1410.1+0202' and cadence='daily' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232275/ft1_4FGL_J1410.1+0202_daily_bin158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232275/ft2_4FGL_J1410.1+0202_daily_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232275/ft1_4FGL_J1410.1+0202_daily_bin158.fits outfile=/scratch/kocevski/232275/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin158.fits ra=212.529 dec=2.0354 rad=12.0 tmin=280281601.0 tmax=280540801.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.32
user 4.04
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232275/ft2_4FGL_J1410.1+0202_daily_bin158.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/232275/ft1_filteredMKT_4FGL_J1410.1+0202_daily_bin158.fits evtable="EVENTS" outfile="/scratch/kocevski/232275/ft1_filtered_4FGL_J1410.1+0202_daily_bin158.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232275/ft1_filtered_4FGL_J1410.1+0202_daily_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/232275/ft2_4FGL_J1410.1+0202_daily_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/232275/ltcube_280281601_280540801_4FGL_J1410.1+0202_daily_bin158.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/232275/ft2_4FGL_J1410.1+0202_daily_bin158.fits
.....................!
real 12.10
user 11.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232275/ft1_filtered_4FGL_J1410.1+0202_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/232275/ft2_4FGL_J1410.1+0202_daily_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/232275/ltcube_280281601_280540801_4FGL_J1410.1+0202_daily_bin158.fits outfile=/scratch/kocevski/232275/expmap_280281601_280540801_4FGL_J1410.1+0202_daily_bin158.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/232275/ltcube_280281601_280540801_4FGL_J1410.1+0202_daily_bin158.fits
.....................!
real 190.63
user 185.30
sys 4.96

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/232275/ft1_filtered_4FGL_J1410.1+0202_daily_bin158.fits scfile=/scratch/kocevski/232275/ft2_4FGL_J1410.1+0202_daily_bin158.fits outfile=/scratch/kocevski/232275/cmap_280281601_280540801_4FGL_J1410.1+0202_daily_bin158.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232275/ft1_filtered_4FGL_J1410.1+0202_daily_bin158.fits scfile=/scratch/kocevski/232275/ft2_4FGL_J1410.1+0202_daily_bin158.fits outfile=/scratch/kocevski/232275/cmap_HighResolution_280281601_280540801_4FGL_J1410.1+0202_daily_bin158.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.74
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/232275/ft1_filtered_4FGL_J1410.1+0202_daily_bin158.fits', '/scratch/kocevski/232275/ft2_4FGL_J1410.1+0202_daily_bin158.fits', expMap='/scratch/kocevski/232275/expmap_280281601_280540801_4FGL_J1410.1+0202_daily_bin158.fits', expCube='/scratch/kocevski/232275/ltcube_280281601_280540801_4FGL_J1410.1+0202_daily_bin158.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/232275/Model_4FGL_J1410.1+0202_daily_bin158.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/232275/ft1_filtered_4FGL_J1410.1+0202_daily_bin158.fits
Spacecraft file(s): /scratch/kocevski/232275/ft2_4FGL_J1410.1+0202_daily_bin158.fits
Exposure map: /scratch/kocevski/232275/expmap_280281601_280540801_4FGL_J1410.1+0202_daily_bin158.fits
Exposure cube: /scratch/kocevski/232275/ltcube_280281601_280540801_4FGL_J1410.1+0202_daily_bin158.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/232275/Model_4FGL_J1410.1+0202_daily_bin158.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) = 6634.21515124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8015       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2126       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.047       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9643       1.0000         .10000E-03   10000.    
     7 'norm      '    .41060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.558       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25222E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10329E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.997       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.850       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4022       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3184       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .85817       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6634.126     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     2415 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8028        3.0633        .38168E-03    .12710E-03
   2  norm          .10000E-03    10.596        .18142E-02** at limit **
   3  Prefactor     8.2156        5.5544        .69949E-03    .44101E-03
   4  Prefactor     12.044        18.049        .11541E-03   -.55261E-04
   5  Prefactor     3.6227        5.9794        .10617E-02    .80448E-03
   6  Prefactor     2.9728        17.951        .11792E-02    .20590E-03
   7  norm          .41072        1.4878        .18525E-03    .84813E-04
   8  Prefactor     19.571        21.091        .90566E-04   -.16808E-03
   9  Prefactor     .13726E-03    32.002        .12843    ** at limit **
  10  norm          .10000E-03    3.2501        .14339E-02** at limit **
  11  norm          .10000E-03    5.0171        .17697E-02** at limit **
  12  Prefactor     .10156E-03    24.380        .10195    ** at limit **
  13  norm          .10000E-03    47.477        .18142E-02** at limit **
  14  Prefactor     18.007        68.155        .94410E-04   -.30104E-05
  15  Prefactor     21.733        59.365        .85688E-04   -.10123E-03
  16  norm          3.4593        68.502        .21934E-03   -.12849E-03
  17  Normalizat    1.3179        .25568        .27546E-03    .61825E-04
  18  Prefactor     .85837        .15605        .21709E-03    .10018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.80284
  norm       = 0.0001
  Prefactor  = 8.2156
  Prefactor  = 12.0442
  Prefactor  = 3.62274
  Prefactor  = 2.97282
  norm       = 0.410725
  Prefactor  = 19.5712
  Prefactor  = 0.000137258
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101564
  norm       = 0.0001
  Prefactor  = 18.0075
  Prefactor  = 21.7329
  norm       = 3.45931
  Normalizat = 1.31786
  Prefactor  = 0.858375
 **********
 **   18 **HESSE 
 **********

 FCN=   6634.126     FROM HESSE     STATUS=OK           246 CALLS     2661 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8028        3.0633        .15267E-04   -1.5082    
   2  norm          .10000E-03    10.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2156        5.5533        .27979E-04   -1.5135    
   4  Prefactor     12.044        18.039        .46165E-05   -1.5014    
   5  Prefactor     3.6227        5.9770        .42470E-04   -1.5327    
   6  Prefactor     2.9728        17.877        .47170E-04   -1.5363    
   7  norm          .41072        1.4877        .74100E-05   -1.5580    
   8  Prefactor     19.571        21.084        .36226E-05   -1.4823    
   9  Prefactor     .13726E-03    31.754        .12914       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.2501        .28677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.0196        .35394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10156E-03    22.668        .10725       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    47.492        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.007        68.271        .37764E-05   -1.4859    
  15  Prefactor     21.733        59.073        .34275E-05   -1.4775    
  16  norm          3.4593        67.827        .87734E-05   -1.5336    
  17  Normalizat    1.3179        .25582        .11018E-04   -.83035    
  18  Prefactor     .85837        .15621        .86836E-05   -.97611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45374e-09
Minuit parameter uncertainties:
  1  3.06339
  2  1.30799e-06
  3  5.55367
  4  18.0468
  5  5.97796
  6  14.5866
  7  1.48779
  8  21.0917
  9  0.0688288
  10  6.36397e-07
  11  7.7576e-06
  12  0.0119119
  13  7.622e-05
  14  68.5693
  15  59.2327
  16  30.6751
  17  0.256064
  18  0.156293
Done.

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

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  1.957e+01  2.109e+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:  8.584e-01  1.563e-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:  1.318e+00  2.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 212.529 2.035
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.38e-05

TS (Fixed Index): 1.31
Ra Dec: 212.529 2.035
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232275/likelihoodResults_280281601_280540801_4FGL_J1410.1+0202_daily_bin158.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) = 6634.11862322
delta logL = 0.00739460249315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6634.11701889
delta logL = 0.00899893153201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.724       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1761       1.0000          .0000       10.000    
     3 'Normalizat'    1.3244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85584       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6634.117     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      230 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.728        23.352        .87982E-04   -.54885E-03
   2  Index         2.1759        1.0245        .10232E-01   -.21037E-03
   3  Normalizat    1.3243        .24109        .27490E-03    .46513E-03
   4  Prefactor     .85591        .15531        .21736E-03    .69884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7281
  Index      = 2.17587
  Normalizat = 1.32432
  Prefactor  = 0.855907
 **********
 **   18 **HESSE 
 **********

 FCN=   6634.117     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.728        22.973        .17596E-04   -1.4797    
   2  Index         2.1759        1.0069        .40929E-03   -.60022    
   3  Normalizat    1.3243        .24100        .54979E-04   -.82843    
   4  Prefactor     .85591        .15533        .43472E-04   -.97699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70316e-09
Minuit parameter uncertainties:
  1  22.9826
  2  1.01721
  3  0.241205
  4  0.155411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232275': 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) = 6634.11701875
delta logL = 0.0089990738652

Extracting fit parameters...

4FGL J1410.1+0202
   Spectrum: PowerLaw
290    Prefactor:  2.073e+01  2.298e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.176e+00  1.017e+00  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:  8.559e-01  1.554e-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:  1.324e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 212.529 2.035
Photon Index (Free Index): 2.18 +/- 1.02
Photon Flux (Free Index): 2.96e-08 +/- 5.00e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.76e-05

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/232275/cmap_HighResolution_280281601_280540801_4FGL_J1410.1+0202_daily_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='1.39e-05', photon_flux_error='3.73e-08', dlogl='9.00e-03', energy_flux='1.28e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2021-09-09 03:47:15.219285', photon_index_error2='1.02', photon_index2='2.18', ts='1.31', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.76e-05', EG='1.32', time_epoch_completed='1631184435.22', return_code='0', job_id='232275', GAL2='0.86', EG2='1.32', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.00e-08', ts2='1.32', photon_index='2.31' WHERE bin_id='158' AND source_name='4FGL J1410.1+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:47:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 232275: <4FGL_J1410.1+0202_daily_bin158> in cluster <slac> Done

Job <4FGL_J1410.1+0202_daily_bin158> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 03:35:17 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:35:20 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:35:20 2021
Terminated at Thu Sep  9 03:47:15 2021
Results reported at Thu Sep  9 03:47:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1410.1+0202_daily_bin158 212.529 2.0354 280281601 280540801 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 :                                   585.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            718 sec.

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

