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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin574
RA = 193.733, Dec = 11.6495
tmin = 388108801, tmax = 388368001
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='995941', job_status='RUN', time_executed='2021-09-06 09:31:16.623071', time_epoch_executed='1630945876.62' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995941/ft1_4FGL_J1254.9+1138_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995941/ft2_4FGL_J1254.9+1138_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995941/ft1_4FGL_J1254.9+1138_daily_bin574.fits outfile=/scratch/kocevski/995941/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin574.fits ra=193.733 dec=11.6495 rad=12.0 tmin=388108801.0 tmax=388368001.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.39
user 3.14
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/995941/ft2_4FGL_J1254.9+1138_daily_bin574.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/995941/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin574.fits evtable="EVENTS" outfile="/scratch/kocevski/995941/ft1_filtered_4FGL_J1254.9+1138_daily_bin574.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.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995941/ft1_filtered_4FGL_J1254.9+1138_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/995941/ft2_4FGL_J1254.9+1138_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/995941/ltcube_388108801_388368001_4FGL_J1254.9+1138_daily_bin574.fits outfile=/scratch/kocevski/995941/expmap_388108801_388368001_4FGL_J1254.9+1138_daily_bin574.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/995941/ltcube_388108801_388368001_4FGL_J1254.9+1138_daily_bin574.fits
.....................!
real 190.14
user 184.77
sys 5.01

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/995941/ft1_filtered_4FGL_J1254.9+1138_daily_bin574.fits scfile=/scratch/kocevski/995941/ft2_4FGL_J1254.9+1138_daily_bin574.fits outfile=/scratch/kocevski/995941/cmap_388108801_388368001_4FGL_J1254.9+1138_daily_bin574.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995941/ft1_filtered_4FGL_J1254.9+1138_daily_bin574.fits scfile=/scratch/kocevski/995941/ft2_4FGL_J1254.9+1138_daily_bin574.fits outfile=/scratch/kocevski/995941/cmap_HighResolution_388108801_388368001_4FGL_J1254.9+1138_daily_bin574.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.54
user 0.40
sys 0.12

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/995941/ft1_filtered_4FGL_J1254.9+1138_daily_bin574.fits', '/scratch/kocevski/995941/ft2_4FGL_J1254.9+1138_daily_bin574.fits', expMap='/scratch/kocevski/995941/expmap_388108801_388368001_4FGL_J1254.9+1138_daily_bin574.fits', expCube='/scratch/kocevski/995941/ltcube_388108801_388368001_4FGL_J1254.9+1138_daily_bin574.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/995941/Model_4FGL_J1254.9+1138_daily_bin574.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/995941/ft1_filtered_4FGL_J1254.9+1138_daily_bin574.fits
Spacecraft file(s): /scratch/kocevski/995941/ft2_4FGL_J1254.9+1138_daily_bin574.fits
Exposure map: /scratch/kocevski/995941/expmap_388108801_388368001_4FGL_J1254.9+1138_daily_bin574.fits
Exposure cube: /scratch/kocevski/995941/ltcube_388108801_388368001_4FGL_J1254.9+1138_daily_bin574.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/995941/Model_4FGL_J1254.9+1138_daily_bin574.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) = 6062.09403748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8018       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4172       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.8019       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10936E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10219E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12171E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.196       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9662       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8207       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.271       1.0000         .10000E-03   10000.    
    18 'Prefactor '    77.382       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3740       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86985       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=   6062.086     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2083 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4509        .86989E-07** at limit **
   2  Prefactor     2.7994        23.080       -.75984E-07   -.16686E-04
   3  norm          4.4206        4.1507        .73865E-06   -.12595E-03
   4  Prefactor     .10000E-03    30.339       -.10010E-06** at limit **
   5  norm          4.7015        53.980       -.13090E-04   -.34669E-04
   6  Prefactor     .10000E-03    189.93        .12901E-04** at limit **
   7  norm          .10000E-03    .26036        .92462E-07** at limit **
   8  Prefactor     .10000E-03    5.7880        .21662E-06** at limit **
   9  Prefactor     .10000E-03    7.9245       -.42572E-07** at limit **
  10  norm          4.1959        2.1387        .33745E-07   -.20800E-03
  11  Prefactor     .10000E-03    11.551        .10523E-06** at limit **
  12  Prefactor     .10000E-03    52.241       -.40795E-06** at limit **
  13  Prefactor     12.194        7.5056       -.16218E-05   -.11825E-03
  14  Prefactor     1.9658        5.8973        .13089E-05   -.95740E-03
  15  Prefactor     4.8220        12.226        .22268E-07   -.45748E-03
  16  Prefactor     .10000E-03    3.2120       -.28407E-07** at limit **
  17  Prefactor     37.322        31.747        .15815E-05    .17573E-04
  18  Prefactor     77.398        72.895        .11060E-04    .47485E-04
  19  Normalizat    1.3741        .20357       -.39668E-06   -.62456E-04
  20  Prefactor     .86975        .17219       -.59366E-06   -.45654E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.79938
  norm       = 4.42056
  Prefactor  = 0.0001
  norm       = 4.70153
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.19591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.194
  Prefactor  = 1.96583
  Prefactor  = 4.82204
  Prefactor  = 0.0001
  Prefactor  = 37.3222
  Prefactor  = 77.3984
  Normalizat = 1.37412
  Prefactor  = 0.869752
 **********
 **   18 **HESSE 
 **********

 FCN=   6062.086     FROM HESSE     STATUS=OK           295 CALLS     2378 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4078        .18230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7994        23.036        .24304E-03   -1.5373    
   3  norm          4.4206        4.1189        .13227E-03   -1.5287    
   4  Prefactor     .10000E-03    30.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7015        53.794        .18359E-03   -1.5274    
   6  Prefactor     .10000E-03    190.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .37545        .75532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.092        .36339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1959        2.1246        .76209E-04   -1.5298    
  11  Prefactor     .10000E-03    11.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    52.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.194        7.5168        .11470E-03   -1.5009    
  14  Prefactor     1.9658        18.983        .14788E-02   -1.5428    
  15  Prefactor     4.8220        12.218        .91613E-03   -1.5269    
  16  Prefactor     .10000E-03    3.2159        .13628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.322        31.749        .65649E-04   -1.4485    
  18  Prefactor     77.398        72.819        .45650E-04   -1.3946    
  19  Normalizat    1.3741        .24483        .25368E-03   -.81380    
  20  Prefactor     .86975        .20181        .26576E-03   -.97206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81198e-09
Minuit parameter uncertainties:
  1  4.80787e-06
  2  16.069
  3  4.11915
  4  6.03511e-07
  5  31.8424
  6  0.000520634
  7  6.52546e-06
  8  0.000239449
  9  1.22246e-06
  10  2.12459
  11  2.01179e-06
  12  1.33508e-05
  13  7.51736
  14  12.2224
  15  12.2238
  16  2.20726e-06
  17  31.7635
  18  72.9033
  19  0.245043
  20  0.201981
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.966e+00  1.222e+01  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:  8.698e-01  2.020e-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:  1.374e+00  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995941/likelihoodResults_388108801_388368001_4FGL_J1254.9+1138_daily_bin574.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) = 6059.74736472
delta logL = 2.33911282519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6059.31736481
delta logL = 2.7691127345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23946E-02   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.2356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95033       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=   6059.317     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      357 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23951E-02    .41555E-01    .52715E-03** at limit **
   2  Index        10.0000        5.3276        .50000    ** at limit **
   3  Normalizat    1.2358        .14357        .59858E-01   -.10011E-03
   4  Prefactor     .95018        .12220        .45643E-01   -.43119E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00239511
  Index      = 10
  Normalizat = 1.2358
  Prefactor  = 0.950179
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.317     FROM HESSE     STATUS=OK            39 CALLS      396 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23951E-02    .16002E-02    .21350E-04   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .57855        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2358        .24187        .26474E-03   -.85504    
   4  Prefactor     .95018        .20465        .25555E-03   -.94409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51956e-11
Minuit parameter uncertainties:
  1  0.00160017
  2  4.99796e-06
  3  0.242091
  4  0.204813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995941': 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) = 6059.31736405
delta logL = 2.76911349253

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.395e-03  1.600e-03  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.000e+01  4.998e-06  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:  9.502e-01  2.048e-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:  1.236e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.99
Ra Dec: 193.733 11.649
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.15e-07 +/- 7.46e-08
Energy Flux (Free Index): 1.29e-05 +/- 8.39e-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/995941/cmap_HighResolution_388108801_388368001_4FGL_J1254.9+1138_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.30e-03', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='2.77e+00', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-06 09:41:20.794510', photon_index_error2='0.00', photon_index2='10.00', ts='0.03', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='8.39e-06', EG='1.37', time_epoch_completed='1630946480.79', return_code='0', job_id='995941', GAL2='0.95', EG2='1.24', return_code2='0', photon_flux_error2='7.46e-08', ts2='5.99', photon_index='2.79' WHERE bin_id='574' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:41:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 995941: <4FGL_J1254.9+1138_daily_bin574> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin574> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:30:57 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:30:58 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:30:58 2021
Terminated at Mon Sep  6 09:41:22 2021
Results reported at Mon Sep  6 09:41:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin574 193.733 11.6495 388108801 388368001 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 :                                   596.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            625 sec.

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

