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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin395
RA = 193.733, Dec = 11.6495
tmin = 341712001, tmax = 341971201
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='994693', job_status='RUN', time_executed='2021-09-06 09:26:06.247135', time_epoch_executed='1630945566.25' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994693/ft1_4FGL_J1254.9+1138_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994693/ft2_4FGL_J1254.9+1138_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994693/ft1_4FGL_J1254.9+1138_daily_bin395.fits outfile=/scratch/kocevski/994693/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin395.fits ra=193.733 dec=11.6495 rad=12.0 tmin=341712001.0 tmax=341971201.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.40
user 3.20
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/994693/ft2_4FGL_J1254.9+1138_daily_bin395.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994693/ft2_4FGL_J1254.9+1138_daily_bin395.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/994693/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin395.fits evtable="EVENTS" outfile="/scratch/kocevski/994693/ft1_filtered_4FGL_J1254.9+1138_daily_bin395.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994693/ft1_filtered_4FGL_J1254.9+1138_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/994693/ft2_4FGL_J1254.9+1138_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/994693/ltcube_341712001_341971201_4FGL_J1254.9+1138_daily_bin395.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/994693/ft2_4FGL_J1254.9+1138_daily_bin395.fits
.....................!
real 11.82
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994693/ft1_filtered_4FGL_J1254.9+1138_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/994693/ft2_4FGL_J1254.9+1138_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/994693/ltcube_341712001_341971201_4FGL_J1254.9+1138_daily_bin395.fits outfile=/scratch/kocevski/994693/expmap_341712001_341971201_4FGL_J1254.9+1138_daily_bin395.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/994693/ltcube_341712001_341971201_4FGL_J1254.9+1138_daily_bin395.fits
.....................!
real 191.20
user 185.95
sys 4.92

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

Setting source of interest to:
4FGL J1254.9+1138 @ 193.733 11.6495

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/994693/ft1_filtered_4FGL_J1254.9+1138_daily_bin395.fits scfile=/scratch/kocevski/994693/ft2_4FGL_J1254.9+1138_daily_bin395.fits outfile=/scratch/kocevski/994693/cmap_341712001_341971201_4FGL_J1254.9+1138_daily_bin395.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=193.733 yref=11.6495 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994693/ft1_filtered_4FGL_J1254.9+1138_daily_bin395.fits scfile=/scratch/kocevski/994693/ft2_4FGL_J1254.9+1138_daily_bin395.fits outfile=/scratch/kocevski/994693/cmap_HighResolution_341712001_341971201_4FGL_J1254.9+1138_daily_bin395.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=193.733 yref=11.6495 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/994693/ft1_filtered_4FGL_J1254.9+1138_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/994693/ft2_4FGL_J1254.9+1138_daily_bin395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994693/Model_4FGL_J1254.9+1138_daily_bin395.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/994693/ft1_filtered_4FGL_J1254.9+1138_daily_bin395.fits.....................!
real 52.96
user 51.71
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/994693/ft1_filtered_4FGL_J1254.9+1138_daily_bin395.fits', '/scratch/kocevski/994693/ft2_4FGL_J1254.9+1138_daily_bin395.fits', expMap='/scratch/kocevski/994693/expmap_341712001_341971201_4FGL_J1254.9+1138_daily_bin395.fits', expCube='/scratch/kocevski/994693/ltcube_341712001_341971201_4FGL_J1254.9+1138_daily_bin395.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/994693/Model_4FGL_J1254.9+1138_daily_bin395.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.9+1138'

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/994693/ft1_filtered_4FGL_J1254.9+1138_daily_bin395.fits
Spacecraft file(s): /scratch/kocevski/994693/ft2_4FGL_J1254.9+1138_daily_bin395.fits
Exposure map: /scratch/kocevski/994693/expmap_341712001_341971201_4FGL_J1254.9+1138_daily_bin395.fits
Exposure cube: /scratch/kocevski/994693/ltcube_341712001_341971201_4FGL_J1254.9+1138_daily_bin395.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/994693/Model_4FGL_J1254.9+1138_daily_bin395.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) = 6112.11781826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8905       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9851       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.749       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1870       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.335       1.0000         .10000E-03   10000.    
    10 'norm      '    7.8069       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1411       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.479       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14667E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96794       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2009       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6112.114     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2042 TOTAL
                     EDM=   .63E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8909        3.4049        .24358E-07    .16794E-05
   2  Prefactor     .10000E-03    10.258        .21403E-07** at limit **
   3  norm          3.9852        3.4174        .20452E-07   -.21188E-04
   4  Prefactor     27.751        25.773        .27703E-07   -.66088E-05
   5  norm          .10000E-03    13.279        .59287E-07** at limit **
   6  Prefactor     .10000E-03    68.745        .74749E-05** at limit **
   7  norm          1.1871        .74378        .14722E-07    .75324E-05
   8  Prefactor     .10000E-03    5.0377       -.37766E-07** at limit **
   9  Prefactor     30.342        24.347        .83875E-07    .31242E-05
  10  norm          7.8072        2.3441        .18468E-08    .58514E-05
  11  Prefactor     .10000E-03    74.351       -.93910E-06** at limit **
  12  Prefactor     .10000E-03    26.590        .34420E-07** at limit **
  13  Prefactor     .10000E-03    2.8520       -.14020E-07** at limit **
  14  Prefactor     2.1448        8.1331        .82529E-05    .18062E-04
  15  Prefactor     10.480        13.218       -.61993E-06    .26769E-04
  16  Prefactor     .10000E-03    11.120       -.11213E-06** at limit **
  17  Prefactor     .10000E-03    89.039       -.11835E-04** at limit **
  18  Prefactor     .10000E-03    182.81        .11776E-04** at limit **
  19  Normalizat    .96784        .20546       -.21740E-06    .59718E-04
  20  Prefactor     1.2009        .17756       -.34216E-06    .80563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.89094
  Prefactor  = 0.0001
  norm       = 3.98525
  Prefactor  = 27.7513
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18705
  Prefactor  = 0.0001
  Prefactor  = 30.3419
  norm       = 7.80725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.14476
  Prefactor  = 10.4804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.967836
  Prefactor  = 1.20091
 **********
 **   18 **HESSE 
 **********

 FCN=   6112.114     FROM HESSE     STATUS=OK           289 CALLS     2331 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8909        3.4086        .10590E-03   -1.5222    
   2  Prefactor     .10000E-03    10.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9852        3.4052        .12605E-03   -1.5309    
   4  Prefactor     27.751        25.771        .76052E-04   -1.4654    
   5  norm          .10000E-03    13.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    68.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1871        .72552        .49578E-04   -1.5490    
   8  Prefactor     .10000E-03    5.0574        .17131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.342        24.353        .72746E-04   -1.4606    
  10  norm          7.8072        2.3407        .61903E-04   -1.5149    
  11  Prefactor     .10000E-03    75.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8628        .12893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1448        8.1392        .14084E-02   -1.5415    
  15  Prefactor     10.480        13.261        .12378E-03   -1.5060    
  16  Prefactor     .10000E-03    11.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    89.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    183.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96784        .24603        .29567E-03   -.94116    
  20  Prefactor     1.2009        .21266        .23845E-03   -.86303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2112e-11
Minuit parameter uncertainties:
  1  3.40873
  2  7.1028e-07
  3  3.40532
  4  25.7813
  5  9.84952e-08
  6  9.3641e-05
  7  0.725522
  8  4.03147e-06
  9  24.3606
  10  2.34071
  11  1.48056e-06
  12  7.68452e-06
  13  8.82953e-07
  14  8.14335
  15  13.2645
  16  5.80139e-06
  17  0.00024765
  18  0.000203407
  19  0.246319
  20  0.212807
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.145e+00  8.143e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.201e+00  2.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.678e-01  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 9.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994693/likelihoodResults_341712001_341971201_4FGL_J1254.9+1138_daily_bin395.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) = 6110.86310437
delta logL = 1.25096036478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6110.80187657
delta logL = 1.31218816394

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6110.802     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      219 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0192        4.5040        .50288E-02    .11987E-02
   2  Index         1.4232        .37504        .21603       -.71082E-04
   3  Normalizat    .98250        .19830        .66368E-01    .15723E-04
   4  Prefactor     1.1852        .17664        .54163E-01    .36668E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.0192
  Index      = 1.42317
  Normalizat = 0.982499
  Prefactor  = 1.1852
 **********
 **   18 **HESSE 
 **********

 FCN=   6110.802     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0192        6.6140        .16904E-03   -1.5307    
   2  Index         1.4232        .64886        .80966E-02   -.79715    
   3  Normalizat    .98250        .23702        .29356E-03   -.93619    
   4  Prefactor     1.1852        .21135        .23948E-03   -.86788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30103e-09
Minuit parameter uncertainties:
  1  6.61517
  2  0.652645
  3  0.23727
  4  0.211503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994693': 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) = 6110.80187656
delta logL = 1.31218816891

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  4.019e+00  6.615e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.423e+00  6.526e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.185e+00  2.115e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.825e-01  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.72
Ra Dec: 193.733 11.649
Photon Index (Free Index): 1.42 +/- 0.65
Photon Flux (Free Index): 7.87e-09 +/- 1.14e-08
Energy Flux (Free Index): 3.22e-05 +/- 5.37e-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/994693/cmap_HighResolution_341712001_341971201_4FGL_J1254.9+1138_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-03', comment='SUCCESS', energy_flux2='3.22e-05', dlogl='1.31e+00', photon_flux2='7.87e-09', job_status='DONE', time_completed='2021-09-06 09:35:58.598010', photon_index_error2='0.65', photon_index2='1.42', ts='0.08', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='9.92e-08', energy_flux_error2='5.37e-05', EG='0.97', time_epoch_completed='1630946158.6', return_code='0', job_id='994693', GAL2='1.19', EG2='0.98', return_code2='0', photon_flux_error2='1.14e-08', ts2='2.72', photon_index='2.79' WHERE bin_id='395' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:35:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 994693: <4FGL_J1254.9+1138_daily_bin395> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin395> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:25:48 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:25:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:25:50 2021
Terminated at Mon Sep  6 09:35:59 2021
Results reported at Mon Sep  6 09:35:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin395 193.733 11.6495 341712001 341971201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.9+1138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   584.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            611 sec.

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

