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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin909
RA = 193.733, Dec = 11.6495
tmin = 474940801, tmax = 475200001
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='997597', job_status='RUN', time_executed='2021-09-06 09:36:16.659177', time_epoch_executed='1630946176.66' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997597

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997597/ft1_4FGL_J1254.9+1138_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997597/ft2_4FGL_J1254.9+1138_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997597/ft1_4FGL_J1254.9+1138_daily_bin909.fits outfile=/scratch/kocevski/997597/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin909.fits ra=193.733 dec=11.6495 rad=12.0 tmin=474940801.0 tmax=475200001.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.55
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/997597/ft2_4FGL_J1254.9+1138_daily_bin909.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/997597/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin909.fits evtable="EVENTS" outfile="/scratch/kocevski/997597/ft1_filtered_4FGL_J1254.9+1138_daily_bin909.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/997597/ft1_filtered_4FGL_J1254.9+1138_daily_bin909.fits" evtable="EVENTS" scfile=/scratch/kocevski/997597/ft2_4FGL_J1254.9+1138_daily_bin909.fits sctable="SC_DATA" outfile=/scratch/kocevski/997597/ltcube_474940801_475200001_4FGL_J1254.9+1138_daily_bin909.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/997597/ft2_4FGL_J1254.9+1138_daily_bin909.fits
.....................!
real 14.60
user 14.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997597/ft1_filtered_4FGL_J1254.9+1138_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/997597/ft2_4FGL_J1254.9+1138_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/997597/ltcube_474940801_475200001_4FGL_J1254.9+1138_daily_bin909.fits outfile=/scratch/kocevski/997597/expmap_474940801_475200001_4FGL_J1254.9+1138_daily_bin909.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/997597/ltcube_474940801_475200001_4FGL_J1254.9+1138_daily_bin909.fits
.....................!
real 190.87
user 185.44
sys 5.04

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/997597/ft1_filtered_4FGL_J1254.9+1138_daily_bin909.fits scfile=/scratch/kocevski/997597/ft2_4FGL_J1254.9+1138_daily_bin909.fits outfile=/scratch/kocevski/997597/cmap_474940801_475200001_4FGL_J1254.9+1138_daily_bin909.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.62
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997597/ft1_filtered_4FGL_J1254.9+1138_daily_bin909.fits scfile=/scratch/kocevski/997597/ft2_4FGL_J1254.9+1138_daily_bin909.fits outfile=/scratch/kocevski/997597/cmap_HighResolution_474940801_475200001_4FGL_J1254.9+1138_daily_bin909.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1121       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.041       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18437       1.0000         .10000E-03   10000.    
     5 'norm      '    .10499E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.502       1.0000         .10000E-03   10000.    
     7 'norm      '    6.4628       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5529       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .48290E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7331       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9431       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.954       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.060       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9726       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.303       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2579       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75934       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6462.643     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     2360 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1117        2.0735        .15665E-03    .10784E-03
   2  Prefactor     .10000E-03    12.688        .18142E-02** at limit **
   3  norm          10.038        4.5220        .53323E-03   -.16289E-04
   4  Prefactor     .24569        31.247        .12455        .11286E-03
   5  norm          .10000E-03    27.673        .18142E-02** at limit **
   6  Prefactor     62.417        140.93        .50756E-04    .68092E-05
   7  norm          6.4628        1.1593        .33687E-04   -.22577E-03
   8  Prefactor     1.5263        13.494        .17086E-02    .24352E-04
   9  Prefactor     .10001E-03    165.32        .38500E-02** at limit **
  10  norm          1.7337        1.5282        .88946E-04    .45374E-04
  11  Prefactor     4.9450        50.549        .90447E-03   -.16466E-05
  12  Prefactor     29.963        35.099        .73206E-04   -.60721E-04
  13  Prefactor     .10000E-03    1.7389        .10345E-02** at limit **
  14  Prefactor     .10000E-03    13.121        .18142E-02** at limit **
  15  Prefactor     23.057        13.733        .83413E-04   -.13943E-03
  16  Prefactor     6.9768        6.9391        .15193E-03   -.29931E-06
  17  Prefactor     19.290        20.766        .91162E-04    .23196E-04
  18  Prefactor     .10000E-03    24.418        .18142E-02** at limit **
  19  Normalizat    1.2578        .22475        .25322E-03    .84316E-04
  20  Prefactor     .75924        .18884        .26985E-03   -.13477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11168
  Prefactor  = 0.0001
  norm       = 10.0383
  Prefactor  = 0.245691
  norm       = 0.0001
  Prefactor  = 62.4169
  norm       = 6.46281
  Prefactor  = 1.52635
  Prefactor  = 0.000100011
  norm       = 1.73369
  Prefactor  = 4.94502
  Prefactor  = 29.963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0573
  Prefactor  = 6.97684
  Prefactor  = 19.2903
  Prefactor  = 0.0001
  Normalizat = 1.25783
  Prefactor  = 0.759238
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.643     FROM HESSE     STATUS=OK           285 CALLS     2645 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1117        2.0734        .62662E-05   -1.5497    
   2  Prefactor     .10000E-03    12.690        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.038        4.5216        .21329E-04   -1.5074    
   4  Prefactor     .24569        30.505        .12670       -1.5609    
   5  norm          .10000E-03    27.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     62.417        140.91        .10151E-04   -1.4126    
   7  norm          6.4628        1.1592        .67374E-05   -1.5199    
   8  Prefactor     1.5263        13.449        .68346E-04   -1.5461    
   9  Prefactor     .10001E-03    166.22        .77000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7337        1.5282        .35578E-05   -1.5445    
  11  Prefactor     4.9450        50.523        .36179E-04   -1.5263    
  12  Prefactor     29.963        35.097        .14641E-04   -1.4613    
  13  Prefactor     .10000E-03    1.7390        .20690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.127        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.057        13.732        .33365E-05   -1.4747    
  16  Prefactor     6.9768        6.9389        .60772E-05   -1.5180    
  17  Prefactor     19.290        20.767        .36465E-05   -1.4829    
  18  Prefactor     .10000E-03    24.419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2578        .22493        .10129E-04   -.84834    
  20  Prefactor     .75924        .18902        .10794E-04   -1.0125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91347e-10
Minuit parameter uncertainties:
  1  2.07354
  2  5.04183e-06
  3  4.52178
  4  5.47703
  5  3.107e-05
  6  141.67
  7  1.1592
  8  9.06388
  9  0.00270876
  10  1.52819
  11  31.6467
  12  35.121
  13  2.639e-06
  14  0.000107701
  15  13.734
  16  6.93969
  17  20.7749
  18  7.18145e-05
  19  0.225108
  20  0.189182
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.077e-04  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:  7.592e-01  1.892e-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.258e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/997597/likelihoodResults_474940801_475200001_4FGL_J1254.9+1138_daily_bin909.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) = 6462.64341458
delta logL = -0.000363274210031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6462.64305132
delta logL = -1.05783328763e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6462.643     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    499.49        .18142E-02** at limit **
   2  Index         2.8323        5.6151        .50000       -.30518E-05
   3  Normalizat    1.2578        .30735E-01    .25322E-03    .16118E-04
   4  Prefactor     .75924        .26271E-01    .26985E-03    .89735E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100253
  Index      = 2.83227
  Normalizat = 1.25783
  Prefactor  = 0.759241
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.643     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10025E-03    1895.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8323        7.4742        .50000       -.44842    
   3  Normalizat    1.2578        .76497E-01    .10129E-04   -.84834    
   4  Prefactor     .75924        .65381E-01    .10794E-04   -1.0125    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.22786e-09
Minuit parameter uncertainties:
  1  0.045314
  2  2562.68
  3  0.0765035
  4  0.0653877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997597': 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): 102
logL (Free Index) = 6462.64305128
delta logL = 2.50365701504e-08

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.003e-04  4.531e-02  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.832e+00  2.563e+03  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:  7.592e-01  6.539e-02  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.258e+00  7.650e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.733 11.649

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/997597/cmap_HighResolution_474940801_475200001_4FGL_J1254.9+1138_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='9.61e-08', time_completed='2021-09-06 09:47:19.231187', job_id='997597', GAL2='0.76', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630946839.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='909' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:47:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 997597: <4FGL_J1254.9+1138_daily_bin909> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin909> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 09:35:59 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:36:00 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:36:00 2021
Terminated at Mon Sep  6 09:47:19 2021
Results reported at Mon Sep  6 09:47:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin909 193.733 11.6495 474940801 475200001 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 :                                   643.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            680 sec.

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

