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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin985
RA = 187.56, Dec = 25.2983
tmin = 494640001, tmax = 494899201
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='741891', job_status='RUN', time_executed='2021-09-05 20:54:32.732855', time_epoch_executed='1630900472.73' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='985'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741891

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741891/ft1_4FGL_J1230.2+2517_daily_bin985.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741891/ft2_4FGL_J1230.2+2517_daily_bin985.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741891/ft1_4FGL_J1230.2+2517_daily_bin985.fits outfile=/scratch/kocevski/741891/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin985.fits ra=187.56 dec=25.2983 rad=12.0 tmin=494640001.0 tmax=494899201.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.23
user 3.98
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/741891/ft2_4FGL_J1230.2+2517_daily_bin985.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/741891/ft2_4FGL_J1230.2+2517_daily_bin985.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/741891/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin985.fits evtable="EVENTS" outfile="/scratch/kocevski/741891/ft1_filtered_4FGL_J1230.2+2517_daily_bin985.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741891/ft1_filtered_4FGL_J1230.2+2517_daily_bin985.fits" evtable="EVENTS" scfile=/scratch/kocevski/741891/ft2_4FGL_J1230.2+2517_daily_bin985.fits sctable="SC_DATA" outfile=/scratch/kocevski/741891/ltcube_494640001_494899201_4FGL_J1230.2+2517_daily_bin985.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/741891/ft2_4FGL_J1230.2+2517_daily_bin985.fits
.....................!
real 17.51
user 17.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741891/ft1_filtered_4FGL_J1230.2+2517_daily_bin985.fits evtable="EVENTS" scfile=/scratch/kocevski/741891/ft2_4FGL_J1230.2+2517_daily_bin985.fits sctable="SC_DATA" expcube=/scratch/kocevski/741891/ltcube_494640001_494899201_4FGL_J1230.2+2517_daily_bin985.fits outfile=/scratch/kocevski/741891/expmap_494640001_494899201_4FGL_J1230.2+2517_daily_bin985.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/741891/ltcube_494640001_494899201_4FGL_J1230.2+2517_daily_bin985.fits
.....................!
real 193.79
user 187.96
sys 5.22

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

Setting source of interest to:
4FGL J1230.2+2517 @ 187.56 25.2983

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/741891/ft1_filtered_4FGL_J1230.2+2517_daily_bin985.fits scfile=/scratch/kocevski/741891/ft2_4FGL_J1230.2+2517_daily_bin985.fits outfile=/scratch/kocevski/741891/cmap_494640001_494899201_4FGL_J1230.2+2517_daily_bin985.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=187.56 yref=25.2983 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741891/ft1_filtered_4FGL_J1230.2+2517_daily_bin985.fits scfile=/scratch/kocevski/741891/ft2_4FGL_J1230.2+2517_daily_bin985.fits outfile=/scratch/kocevski/741891/cmap_HighResolution_494640001_494899201_4FGL_J1230.2+2517_daily_bin985.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=187.56 yref=25.2983 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/741891/ft1_filtered_4FGL_J1230.2+2517_daily_bin985.fits evtable="EVENTS" scfile=/scratch/kocevski/741891/ft2_4FGL_J1230.2+2517_daily_bin985.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/741891/Model_4FGL_J1230.2+2517_daily_bin985.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/741891/ft1_filtered_4FGL_J1230.2+2517_daily_bin985.fits.....................!
real 56.04
user 54.63
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/741891/ft1_filtered_4FGL_J1230.2+2517_daily_bin985.fits', '/scratch/kocevski/741891/ft2_4FGL_J1230.2+2517_daily_bin985.fits', expMap='/scratch/kocevski/741891/expmap_494640001_494899201_4FGL_J1230.2+2517_daily_bin985.fits', expCube='/scratch/kocevski/741891/ltcube_494640001_494899201_4FGL_J1230.2+2517_daily_bin985.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/741891/Model_4FGL_J1230.2+2517_daily_bin985.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.2+2517'

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.557e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/741891/ft1_filtered_4FGL_J1230.2+2517_daily_bin985.fits
Spacecraft file(s): /scratch/kocevski/741891/ft2_4FGL_J1230.2+2517_daily_bin985.fits
Exposure map: /scratch/kocevski/741891/expmap_494640001_494899201_4FGL_J1230.2+2517_daily_bin985.fits
Exposure cube: /scratch/kocevski/741891/ltcube_494640001_494899201_4FGL_J1230.2+2517_daily_bin985.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/741891/Model_4FGL_J1230.2+2517_daily_bin985.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) = 6180.21193738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.893       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.626       1.0000         .10000E-03   10000.    
     5 'norm      '    .64531       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13356       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8502       1.0000         .10000E-03   10000.    
    10 'norm      '    5.0124       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2049       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3704       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.447       1.0000         .10000E-03   10000.    
    15 'norm      '    .49346       1.0000         .10000E-03   10000.    
    16 'norm      '    15.344       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.044       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.7890       1.0000         .10000E-03   10000.    
    21 'norm      '    10.549       1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.831       1.0000         .10000E-03   10000.    
    23 'norm      '    2.5507       1.0000         .10000E-03   10000.    
    24 'norm      '    1.9207       1.0000         .10000E-03   10000.    
    25 'norm      '    .43685E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0414       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0488       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6180.208     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3595 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.395        .29906E-06** at limit **
   2  Prefactor     10.892        10.251        .22947E-06    .39719E-03
   3  Prefactor     .10000E-03    .50821        .80588E-08** at limit **
   4  Prefactor     12.616        38.586       -.10080E-04   -.45611E-06
   5  norm          .64527        .95960       -.20366E-08   -.19368E-03
   6  Prefactor     .10000E-03    2.1648        .28337E-08** at limit **
   7  Prefactor     .10000E-03    23.169        .18934E-06** at limit **
   8  Prefactor     .13261        1.5356       -.28666E-06   -.10487E-03
   9  Prefactor     1.8501        2.8277       -.25831E-06   -.34582E-03
  10  norm          5.0144        4.6464       -.31151E-07   -.19365E-03
  11  Prefactor     3.2046        10.394       -.10933E-05   -.18450E-03
  12  Prefactor     5.3687        4.2105       -.17311E-07   -.17663E-03
  13  Prefactor     4.6000        2.6521       -.39596E-07    .33029E-04
  14  Prefactor     16.447        9.7685        .87483E-07    .86659E-05
  15  norm          .49348        .25936       -.42923E-07   -.17485E-03
  16  norm          15.344        7.7446        .26870E-06   -.39790E-05
  17  Prefactor     .10000E-03    14.295       -.58885E-06** at limit **
  18  Prefactor     .10000E-03    16.131        .44280E-06** at limit **
  19  Prefactor     12.035        45.234       -.16053E-04   -.39653E-05
  20  Prefactor     8.7891        8.9859       -.45088E-06   -.62026E-04
  21  norm          10.548        5.6022        .17768E-05   -.12012E-05
  22  Prefactor     32.818        26.117       -.50905E-05    .16275E-05
  23  norm          2.5505        2.6181       -.55545E-07   -.20899E-04
  24  norm          1.9436        3.1514       -.12221E-06   -.29929E-03
  25  norm          .10000E-03    5.8113        .20245E-06** at limit **
  26  norm          .10000E-03    31.345        .23605E-07** at limit **
  27  Normalizat    1.0415        .20179        .19294E-05    .14804E-04
  28  Prefactor     1.0486        .20198        .14680E-07    .11571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.8923
  Prefactor  = 0.0001
  Prefactor  = 12.6158
  norm       = 0.645271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.13261
  Prefactor  = 1.8501
  norm       = 5.01437
  Prefactor  = 3.20459
  Prefactor  = 5.36868
  Prefactor  = 4.60005
  Prefactor  = 16.447
  norm       = 0.493475
  norm       = 15.3439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0347
  Prefactor  = 8.78913
  norm       = 10.548
  Prefactor  = 32.8178
  norm       = 2.55047
  norm       = 1.94363
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.04154
  Prefactor  = 1.0486
 **********
 **   18 **HESSE 
 **********

 FCN=   6180.208     FROM HESSE     STATUS=OK           543 CALLS     4138 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.892        10.296        .60696E-03   -1.5048    
   3  Prefactor     .10000E-03    .51118        .54714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.616        38.841        .11273E-03   -1.4997    
   5  norm          .64527        .95940        .47401E-04   -1.5547    
   6  Prefactor     .10000E-03    2.1874        .11283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13261        15.169        .17460E-02   -1.5635    
   9  Prefactor     1.8501        2.8296        .14861E-03   -1.5436    
  10  norm          5.0144        4.7341        .12208E-03   -1.5260    
  11  Prefactor     3.2046        10.468        .22632E-03   -1.5350    
  12  Prefactor     5.3687        4.2897        .10677E-03   -1.5245    
  13  Prefactor     4.6000        2.6510        .91042E-04   -1.5279    
  14  Prefactor     16.447        9.7602        .98759E-04   -1.4897    
  15  norm          .49348        .25670        .27336E-04   -1.5567    
  16  norm          15.344        7.7444        .10225E-03   -1.4924    
  17  Prefactor     .10000E-03    14.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.035        45.170        .11543E-03   -1.5014    
  20  Prefactor     8.7891        9.0011        .13520E-03   -1.5115    
  21  norm          10.548        5.5827        .12336E-03   -1.5058    
  22  Prefactor     32.818        26.009        .69934E-04   -1.4562    
  23  norm          2.5505        2.6156        .12493E-03   -1.5389    
  24  norm          1.9436        3.2520        .15093E-03   -1.5429    
  25  norm          .10000E-03    6.6310        .57916E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    31.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0415        .24466        .26897E-03   -.91652    
  28  Prefactor     1.0486        .24518        .28661E-03   -.91127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42964e-08
Minuit parameter uncertainties:
  1  8.97307e-06
  2  10.298
  3  8.63669e-07
  4  38.9189
  5  0.959418
  6  4.59343e-06
  7  7.73827e-05
  8  2.83628
  9  2.82981
  10  4.73446
  11  10.4735
  12  4.28997
  13  2.65105
  14  9.76112
  15  0.256697
  16  7.74488
  17  1.95781e-05
  18  1.02148e-05
  19  45.2992
  20  9.00245
  21  5.58296
  22  26.0179
  23  2.61572
  24  3.25227
  25  2.94014e-05
  26  4.57773e-05
  27  0.244928
  28  0.245442
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.534e+01  7.745e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.049e+00  2.454e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.042e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.99
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 9.02e-08 +/- 4.55e-08
Energy Flux (Fixed Index): 5.36e-05 +/- 2.71e-05

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) = 6179.24864047
delta logL = 0.959610513641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6179.226319
delta logL = 0.981931984172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.548       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5253       1.0000          .0000       5.0000    
     3 'Normalizat'    .97915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6179.226     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      244 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.548        90.031        .27205E-02    .32951E-03
   2  alpha         2.5253        3.7560        .20346        .21371E-04
   3  Normalizat    .97915        .13069        .45905E-01    .31851E-04
   4  Prefactor     1.0860        .12178        .63715E-01    .48036E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5479
  alpha      = 2.52526
  Normalizat = 0.979149
  Prefactor  = 1.08598
 **********
 **   18 **HESSE 
 **********

 FCN=   6179.226     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.548        6.7738        .10867E-03   -1.4972    
   2  alpha         2.5253        .38415        .83903E-02    .10104E-01
   3  Normalizat    .97915        .23140        .27548E-03   -.93732    
   4  Prefactor     1.0860        .24402        .28181E-03   -.89916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12585e-11
Minuit parameter uncertainties:
  1  6.77419
  2  0.385676
  3  0.231636
  4  0.244273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741891': 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) = 6179.226319
delta logL = 0.981931984174

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.355e+01  6.774e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.525e+00  3.857e-01  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.086e+00  2.443e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.791e-01  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.12
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.53 +/- 0.39
Photon Flux (Free Index): 1.54e-07 +/- 7.12e-08
Energy Flux (Free Index): 4.40e-05 +/- 1.83e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/741891/cmap_HighResolution_494640001_494899201_4FGL_J1230.2+2517_daily_bin985.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.02e-08', energy_flux2='4.40e-05', photon_flux_error='4.55e-08', dlogl='9.82e-01', energy_flux='5.36e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-05 21:06:46.029854', photon_index_error2='0.39', photon_index2='2.53', ts='9.99', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.04', time_epoch_completed='1630901206.03', return_code='0', job_id='741891', GAL2='1.09', EG2='0.98', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='7.12e-08', ts2='12.12', photon_index='2.00' WHERE bin_id='985' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:06:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 741891: <4FGL_J1230.2+2517_daily_bin985> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin985> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:35 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:50:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 20:50:45 2021
Terminated at Sun Sep  5 21:06:46 2021
Results reported at Sun Sep  5 21:06:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin985 187.56 25.2983 494640001 494899201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.2+2517 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   727.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            971 sec.

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

