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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1485
RA = 193.733, Dec = 11.6495
tmin = 624240001, tmax = 624499201
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='707', job_status='RUN', time_executed='2021-09-06 09:49:34.938842', time_epoch_executed='1630946974.94' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707/ft1_4FGL_J1254.9+1138_daily_bin1485.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707/ft2_4FGL_J1254.9+1138_daily_bin1485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707/ft1_4FGL_J1254.9+1138_daily_bin1485.fits outfile=/scratch/kocevski/707/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1485.fits ra=193.733 dec=11.6495 rad=12.0 tmin=624240001.0 tmax=624499201.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.47
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707/ft1_filtered_4FGL_J1254.9+1138_daily_bin1485.fits" evtable="EVENTS" scfile=/scratch/kocevski/707/ft2_4FGL_J1254.9+1138_daily_bin1485.fits sctable="SC_DATA" outfile=/scratch/kocevski/707/ltcube_624240001_624499201_4FGL_J1254.9+1138_daily_bin1485.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/707/ft2_4FGL_J1254.9+1138_daily_bin1485.fits
.....................!
real 11.87
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707/ft1_filtered_4FGL_J1254.9+1138_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/707/ft2_4FGL_J1254.9+1138_daily_bin1485.fits sctable="SC_DATA" expcube=/scratch/kocevski/707/ltcube_624240001_624499201_4FGL_J1254.9+1138_daily_bin1485.fits outfile=/scratch/kocevski/707/expmap_624240001_624499201_4FGL_J1254.9+1138_daily_bin1485.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/707/ltcube_624240001_624499201_4FGL_J1254.9+1138_daily_bin1485.fits
.....................!
real 192.01
user 186.78
sys 4.82

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/707/ft1_filtered_4FGL_J1254.9+1138_daily_bin1485.fits scfile=/scratch/kocevski/707/ft2_4FGL_J1254.9+1138_daily_bin1485.fits outfile=/scratch/kocevski/707/cmap_624240001_624499201_4FGL_J1254.9+1138_daily_bin1485.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/707/ft1_filtered_4FGL_J1254.9+1138_daily_bin1485.fits scfile=/scratch/kocevski/707/ft2_4FGL_J1254.9+1138_daily_bin1485.fits outfile=/scratch/kocevski/707/cmap_HighResolution_624240001_624499201_4FGL_J1254.9+1138_daily_bin1485.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.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.3141       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    25.149       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .41707       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64650       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4036       1.0000         .10000E-03   10000.    
    10 'norm      '    5.3503       1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.871       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9813       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6828       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.994       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29275E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7778       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .64358       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4692       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=   6301.564     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2111 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2259       -.28565E-07** at limit **
   2  Prefactor     .10000E-03    15.688       -.44966E-08** at limit **
   3  norm          6.3103        5.2794       -.42005E-06   -.64089E-03
   4  Prefactor     .10000E-03    26.726        .77061E-06** at limit **
   5  norm          25.141        39.259       -.67771E-05   -.55942E-04
   6  Prefactor     .10000E-03    43.313       -.14220E-05** at limit **
   7  norm          .41826        .88623        .14912E-05    .21765E-02
   8  Prefactor     .64733        1.2946        .33304E-06   -.14487E-02
   9  Prefactor     9.4059        20.688       -.24845E-05   -.32925E-05
  10  norm          5.3496        2.2346        .48128E-06   -.69881E-03
  11  Prefactor     60.829        57.537       -.35946E-04   -.11326E-03
  12  Prefactor     3.9746        64.338       -.90416E-05   -.44942E-05
  13  Prefactor     .10000E-03    8.5503       -.11147E-06** at limit **
  14  Prefactor     1.6861        26.078        .37610E-06    .12859E-04
  15  Prefactor     13.992        15.258       -.67584E-06   -.12396E-04
  16  Prefactor     .10004E-03    8.7358       -.66267E-06** at limit **
  17  Prefactor     5.7777        17.471       -.53907E-06    .19507E-05
  18  Prefactor     .10000E-03    20.795       -.45920E-06** at limit **
  19  Normalizat    .64357        .21633        .27517E-05   -.30025E-04
  20  Prefactor     1.4692        .18264        .10520E-05   -.70802E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.31034
  Prefactor  = 0.0001
  norm       = 25.1413
  Prefactor  = 0.0001
  norm       = 0.418261
  Prefactor  = 0.647331
  Prefactor  = 9.40586
  norm       = 5.3496
  Prefactor  = 60.8285
  Prefactor  = 3.97457
  Prefactor  = 0.0001
  Prefactor  = 1.68608
  Prefactor  = 13.9921
  Prefactor  = 0.000100037
  Prefactor  = 5.77766
  Prefactor  = 0.0001
  Normalizat = 0.643573
  Prefactor  = 1.46922
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.564     FROM HESSE     STATUS=OK           295 CALLS     2406 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2548        .85816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.3103        5.1320        .13817E-03   -1.5206    
   4  Prefactor     .10000E-03    26.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          25.141        39.331        .79879E-04   -1.4705    
   6  Prefactor     .10000E-03    43.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .41826        .83912        .88813E-04   -1.5579    
   8  Prefactor     .64733        13.547        .23710E-02   -1.5547    
   9  Prefactor     9.4059        21.446        .13069E-03   -1.5094    
  10  norm          5.3496        2.2070        .70280E-04   -1.5245    
  11  Prefactor     60.829        57.523        .51428E-04   -1.4147    
  12  Prefactor     3.9746        62.107        .20214E-03   -1.5309    
  13  Prefactor     .10000E-03    8.7319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6861        24.653        .32468E-03   -1.5448    
  15  Prefactor     13.992        15.124        .53536E-03   -1.4960    
  16  Prefactor     .10004E-03    116.49        .44749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7777        17.465        .16709E-03   -1.5227    
  18  Prefactor     .10000E-03    20.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .64357        .24740        .35669E-03   -1.0616    
  20  Prefactor     1.4692        .21259        .21903E-03   -.78405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23221e-08
Minuit parameter uncertainties:
  1  4.00119e-06
  2  1.30901e-05
  3  5.13238
  4  4.56783e-05
  5  39.3713
  6  1.12114e-05
  7  0.839144
  8  5.92366
  9  21.4631
  10  2.20706
  11  57.5752
  12  31.4614
  13  4.59517e-05
  14  12.9005
  15  15.1277
  16  0.00418462
  17  17.48
  18  1.59633e-05
  19  0.247824
  20  0.212716
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.686e+00  1.290e+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:  1.469e+00  2.127e-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:  6.436e-01  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/707/likelihoodResults_624240001_624499201_4FGL_J1254.9+1138_daily_bin1485.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) = 6301.23320386
delta logL = 0.330780958147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6301.22407547
delta logL = 0.339909343643

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016       1.0000         .10000E-03   10000.    
     2 'Index     '    6.6045       1.0000          .0000       10.000    
     3 'Normalizat'    .59492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4989       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=   6301.224     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      317 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99592E-01    2.5579        .73305E-02    .48814E-02
   2  Index         6.6097        7.6610        .21335        .13418E-03
   3  Normalizat    .59506        .37733E-01    .83578E-01   -.13638E-03
   4  Prefactor     1.4988        .33653E-01    .49137E-01   -.51808E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0995924
  Index      = 6.6097
  Normalizat = 0.595064
  Prefactor  = 1.49877
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.224     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      350 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99592E-01    8.9795        .34960E-03   -1.5645    
   2  Index         6.6097        7.2564        .12728E-01    .32778    
   3  Normalizat    .59506        .15756        .37018E-03   -1.0819    
   4  Prefactor     1.4988        .13815        .21721E-03   -.77574    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.18054e-10
Minuit parameter uncertainties:
  1  1.89068
  2  13.4907
  3  0.157677
  4  0.138187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707': 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) = 6301.22407397
delta logL = 0.339910847557

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  9.959e-02  1.891e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  6.610e+00  1.349e+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.499e+00  1.382e-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:  5.951e-01  1.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 193.733 11.649

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/707/cmap_HighResolution_624240001_624499201_4FGL_J1254.9+1138_daily_bin1485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.50e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-06 09:59:41.916589', job_id='707', GAL2='1.50', fit_tolerance='1e-08', EG2='0.60', EG='0.64', time_epoch_completed='1630947581.92', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='3.40e-01', ts2='0.77', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1485' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:59:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 707: <4FGL_J1254.9+1138_daily_bin1485> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1485 193.733 11.6495 624240001 624499201 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 :                                   595.39 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             224.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

