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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1478
RA = 193.637, Dec = 22.1808
tmin = 622425601, tmax = 622684801
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='992914', job_status='RUN', time_executed='2021-09-06 09:20:49.165296', time_epoch_executed='1630945249.17' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992914

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992914/ft1_4FGL_J1254.5+2210_daily_bin1478.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992914/ft2_4FGL_J1254.5+2210_daily_bin1478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992914/ft1_4FGL_J1254.5+2210_daily_bin1478.fits outfile=/scratch/kocevski/992914/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1478.fits ra=193.637 dec=22.1808 rad=12.0 tmin=622425601.0 tmax=622684801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.29
user 4.02
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/992914/ft2_4FGL_J1254.5+2210_daily_bin1478.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992914/ft2_4FGL_J1254.5+2210_daily_bin1478.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/992914/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1478.fits evtable="EVENTS" outfile="/scratch/kocevski/992914/ft1_filtered_4FGL_J1254.5+2210_daily_bin1478.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.55
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992914/ft1_filtered_4FGL_J1254.5+2210_daily_bin1478.fits" evtable="EVENTS" scfile=/scratch/kocevski/992914/ft2_4FGL_J1254.5+2210_daily_bin1478.fits sctable="SC_DATA" outfile=/scratch/kocevski/992914/ltcube_622425601_622684801_4FGL_J1254.5+2210_daily_bin1478.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/992914/ft2_4FGL_J1254.5+2210_daily_bin1478.fits
.....................!
real 12.44
user 12.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992914/ft1_filtered_4FGL_J1254.5+2210_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/992914/ft2_4FGL_J1254.5+2210_daily_bin1478.fits sctable="SC_DATA" expcube=/scratch/kocevski/992914/ltcube_622425601_622684801_4FGL_J1254.5+2210_daily_bin1478.fits outfile=/scratch/kocevski/992914/expmap_622425601_622684801_4FGL_J1254.5+2210_daily_bin1478.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/992914/ltcube_622425601_622684801_4FGL_J1254.5+2210_daily_bin1478.fits
.....................!
real 192.65
user 186.94
sys 5.05

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

Setting source of interest to:
4FGL J1254.5+2210 @ 193.637 22.1808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/992914/ft1_filtered_4FGL_J1254.5+2210_daily_bin1478.fits scfile=/scratch/kocevski/992914/ft2_4FGL_J1254.5+2210_daily_bin1478.fits outfile=/scratch/kocevski/992914/cmap_622425601_622684801_4FGL_J1254.5+2210_daily_bin1478.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.637 yref=22.1808 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992914/ft1_filtered_4FGL_J1254.5+2210_daily_bin1478.fits scfile=/scratch/kocevski/992914/ft2_4FGL_J1254.5+2210_daily_bin1478.fits outfile=/scratch/kocevski/992914/cmap_HighResolution_622425601_622684801_4FGL_J1254.5+2210_daily_bin1478.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.637 yref=22.1808 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992914/ft1_filtered_4FGL_J1254.5+2210_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/992914/ft2_4FGL_J1254.5+2210_daily_bin1478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992914/Model_4FGL_J1254.5+2210_daily_bin1478.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/992914/ft1_filtered_4FGL_J1254.5+2210_daily_bin1478.fits.....................!
real 51.94
user 50.52
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/992914/ft1_filtered_4FGL_J1254.5+2210_daily_bin1478.fits', '/scratch/kocevski/992914/ft2_4FGL_J1254.5+2210_daily_bin1478.fits', expMap='/scratch/kocevski/992914/expmap_622425601_622684801_4FGL_J1254.5+2210_daily_bin1478.fits', expCube='/scratch/kocevski/992914/ltcube_622425601_622684801_4FGL_J1254.5+2210_daily_bin1478.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/992914/Model_4FGL_J1254.5+2210_daily_bin1478.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.5+2210'

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/992914/ft1_filtered_4FGL_J1254.5+2210_daily_bin1478.fits
Spacecraft file(s): /scratch/kocevski/992914/ft2_4FGL_J1254.5+2210_daily_bin1478.fits
Exposure map: /scratch/kocevski/992914/expmap_622425601_622684801_4FGL_J1254.5+2210_daily_bin1478.fits
Exposure cube: /scratch/kocevski/992914/ltcube_622425601_622684801_4FGL_J1254.5+2210_daily_bin1478.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/992914/Model_4FGL_J1254.5+2210_daily_bin1478.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) = 5811.04025257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18625E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5825       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8557       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1630       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5229       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.5317       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9654       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3169       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.166       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0149       1.0000         .10000E-03   10000.    
    16 'norm      '    9.0326       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.299       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1512       1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .17582E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.827       1.0000         .10000E-03   10000.    
    23 'norm      '    4.3180       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10226E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.521       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.850       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2316       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89537       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5811.023     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3736 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    2.0018       -.87716E-06** at limit **
   2  Prefactor     5.5816        4.1503       -.32565E-06   -.10377E-02
   3  norm          6.8555        3.9244        .57560E-09   -.18358E-03
   4  Prefactor     2.1629        2.2439        .57041E-08   -.13389E-03
   5  Prefactor     3.8838        3.2311       -.18806E-06   -.50817E-03
   6  Prefactor     1.5236        5.5961        .10773E-04   -.32181E-03
   7  norm          .10000E-03    .10699        .12026E-06** at limit **
   8  norm          6.5297        5.8304       -.19743E-05   -.41555E-03
   9  Prefactor     7.9657        8.2966       -.44922E-06   -.21795E-03
  10  Prefactor     1.3165        27.598        .25679E-05    .16400E-04
  11  Prefactor     28.038        35.924        .28661E-05   -.17899E-03
  12  Prefactor     .10000E-03    63.681        .50332E-07** at limit **
  13  Prefactor     11.163        70.939        .19022E-05   -.20616E-04
  14  Prefactor     .10000E-03    3.3585        .26870E-06** at limit **
  15  Prefactor     9.0131        13.836       -.23981E-06   -.14089E-03
  16  norm          9.0294        5.4765       -.31930E-08   -.41088E-03
  17  Prefactor     21.296        20.105        .42456E-06   -.17896E-03
  18  Prefactor     .10000E-03    21.187        .31522E-06** at limit **
  19  norm          3.1506        3.3407        .70286E-07   -.20698E-03
  20  norm          .10000E-03    2.5440        .29659E-06** at limit **
  21  norm          .10000E-03    4.9921        .39286E-05** at limit **
  22  norm          15.828        15.835       -.62274E-07   -.14433E-03
  23  norm          4.3212        5.6291       -.27611E-06   -.69951E-03
  24  Prefactor     .10000E-03    10.648        .14022E-06** at limit **
  25  norm          .10000E-03    6.4890        .20897E-05** at limit **
  26  Prefactor     19.510        25.033       -.15996E-06   -.17204E-03
  27  Prefactor     15.826        30.221        .10155E-05   -.15304E-03
  28  Normalizat    1.2318        .20385        .15818E-05   -.88293E-03
  29  Prefactor     .89531        .19326       -.47299E-05   -.10120E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100033
  Prefactor  = 5.58164
  norm       = 6.8555
  Prefactor  = 2.16286
  Prefactor  = 3.88382
  Prefactor  = 1.52361
  norm       = 0.0001
  norm       = 6.52966
  Prefactor  = 7.96574
  Prefactor  = 1.31652
  Prefactor  = 28.0384
  Prefactor  = 0.000100001
  Prefactor  = 11.1628
  Prefactor  = 0.0001
  Prefactor  = 9.01311
  norm       = 9.02945
  Prefactor  = 21.2961
  Prefactor  = 0.0001
  norm       = 3.15061
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 15.8281
  norm       = 4.32124
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 19.5095
  Prefactor  = 15.826
  Normalizat = 1.23175
  Prefactor  = 0.895307
 **********
 **   18 **HESSE 
 **********

 FCN=   5811.023     FROM HESSE     STATUS=OK           561 CALLS     4297 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    22.304        .19512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5816        3.9685        .12237E-03   -1.5235    
   3  norm          6.8555        3.9221        .10543E-03   -1.5184    
   4  Prefactor     2.1629        2.2397        .10838E-03   -1.5414    
   5  Prefactor     3.8838        3.1821        .11095E-03   -1.5314    
   6  Prefactor     1.5236        5.6938        .15826E-02   -1.5461    
   7  norm          .10000E-03    .15681        .48270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.5297        5.8343        .15402E-03   -1.5197    
   9  Prefactor     7.9657        8.2970        .14207E-03   -1.5143    
  10  Prefactor     1.3165        27.149        .38373E-03   -1.5478    
  11  Prefactor     28.038        35.935        .75605E-04   -1.4648    
  12  Prefactor     .10000E-03    63.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.163        70.657        .11989E-03   -1.5040    
  14  Prefactor     .10000E-03    3.3718        .13646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.0131        13.765        .13349E-03   -1.5107    
  16  norm          9.0294        5.4591        .13336E-03   -1.5107    
  17  Prefactor     21.296        20.072        .86789E-04   -1.4785    
  18  Prefactor     .10000E-03    21.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1506        3.3329        .13840E-03   -1.5353    
  20  norm          .10000E-03    2.5891        .23649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    19.769        .31192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.828        15.828        .10067E-03   -1.4912    
  23  norm          4.3212        5.4798        .19291E-03   -1.5292    
  24  Prefactor     .10000E-03    10.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    33.958        .35282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.510        24.990        .90651E-04   -1.4824    
  27  Prefactor     15.826        30.203        .10060E-03   -1.4912    
  28  Normalizat    1.2318        .23933        .25149E-03   -.85627    
  29  Prefactor     .89531        .22910        .28733E-03   -.96305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94825e-09
Minuit parameter uncertainties:
  1  0.00171111
  2  3.96867
  3  3.92227
  4  2.23979
  5  3.18226
  6  5.69581
  7  2.35158e-06
  8  5.83483
  9  8.29821
  10  11.9628
  11  35.9626
  12  0.000393659
  13  56.2663
  14  3.45308e-05
  15  13.7695
  16  5.45939
  17  20.0782
  18  3.32156e-05
  19  3.33305
  20  2.08401e-05
  21  0.000441846
  22  15.8321
  23  5.48041
  24  3.20823e-05
  25  0.000274801
  26  25.0035
  27  30.2318
  28  0.239545
  29  0.229351
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.453e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  8.953e-01  2.294e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.232e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 5.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992914/likelihoodResults_622425601_622684801_4FGL_J1254.5+2210_daily_bin1478.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) = 5811.0240219
delta logL = -0.0014029630056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5811.02261962
delta logL = -6.81870915287e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5811.023     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.191        .90712E-02** at limit **
   2  Index         2.0725        8.6824        .50000        .19723E-04
   3  Normalizat    1.2318        .23048E-01    .56871E-01    .11102E-04
   4  Prefactor     .89531        .22966E-01    .64961E-01    .17014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07249
  Normalizat = 1.23175
  Prefactor  = 0.895313
 **********
 **   18 **HESSE 
 **********

 FCN=   5811.023     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2438        .13685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0725        5.8264        .50000       -.62550    
   3  Normalizat    1.2318        .22574        .25149E-03   -.85627    
   4  Prefactor     .89531        .22475        .28733E-03   -.96305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90974e-10
Minuit parameter uncertainties:
  1  5.04097e-06
  2  5.50428
  3  0.225923
  4  0.22498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992914': 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) = 5811.02261885
delta logL = 8.38763298816e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.041e-06  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.072e+00  5.504e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  8.953e-01  2.250e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.232e+00  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

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/992914/cmap_HighResolution_622425601_622684801_4FGL_J1254.5+2210_daily_bin1478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-09-06 09:34:13.777614', job_id='992914', GAL2='0.90', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630946053.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='8.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1478' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:34:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 992914: <4FGL_J1254.5+2210_daily_bin1478> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1478> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:39 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:40 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:20:40 2021
Terminated at Mon Sep  6 09:34:15 2021
Results reported at Mon Sep  6 09:34:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1478 193.637 22.1808 622425601 622684801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.5+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   799.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

