/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 2 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 = 7561
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1225.0+0330_daily_bin397
RA = 186.252, Dec = 3.5098
tmin = 342230401, tmax = 342489601
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='606553', job_status='RUN', time_executed='2021-09-05 13:45:58.242795', time_epoch_executed='1630874758.24' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606553/ft1_4FGL_J1225.0+0330_daily_bin397.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606553/ft2_4FGL_J1225.0+0330_daily_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606553/ft1_4FGL_J1225.0+0330_daily_bin397.fits outfile=/scratch/kocevski/606553/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin397.fits ra=186.252 dec=3.5098 rad=12.0 tmin=342230401.0 tmax=342489601.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.53
user 3.31
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/606553/ft2_4FGL_J1225.0+0330_daily_bin397.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606553/ft2_4FGL_J1225.0+0330_daily_bin397.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/606553/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin397.fits evtable="EVENTS" outfile="/scratch/kocevski/606553/ft1_filtered_4FGL_J1225.0+0330_daily_bin397.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606553/ft1_filtered_4FGL_J1225.0+0330_daily_bin397.fits" evtable="EVENTS" scfile=/scratch/kocevski/606553/ft2_4FGL_J1225.0+0330_daily_bin397.fits sctable="SC_DATA" outfile=/scratch/kocevski/606553/ltcube_342230401_342489601_4FGL_J1225.0+0330_daily_bin397.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/606553/ft2_4FGL_J1225.0+0330_daily_bin397.fits
.....................!
real 11.79
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606553/ft1_filtered_4FGL_J1225.0+0330_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/606553/ft2_4FGL_J1225.0+0330_daily_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/606553/ltcube_342230401_342489601_4FGL_J1225.0+0330_daily_bin397.fits outfile=/scratch/kocevski/606553/expmap_342230401_342489601_4FGL_J1225.0+0330_daily_bin397.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/606553/ltcube_342230401_342489601_4FGL_J1225.0+0330_daily_bin397.fits
.....................!
real 192.25
user 187.53
sys 4.30

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

Setting source of interest to:
4FGL J1225.0+0330 @ 186.252 3.5098

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/606553/ft1_filtered_4FGL_J1225.0+0330_daily_bin397.fits scfile=/scratch/kocevski/606553/ft2_4FGL_J1225.0+0330_daily_bin397.fits outfile=/scratch/kocevski/606553/cmap_342230401_342489601_4FGL_J1225.0+0330_daily_bin397.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=186.252 yref=3.5098 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606553/ft1_filtered_4FGL_J1225.0+0330_daily_bin397.fits scfile=/scratch/kocevski/606553/ft2_4FGL_J1225.0+0330_daily_bin397.fits outfile=/scratch/kocevski/606553/cmap_HighResolution_342230401_342489601_4FGL_J1225.0+0330_daily_bin397.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=186.252 yref=3.5098 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/606553/ft1_filtered_4FGL_J1225.0+0330_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/606553/ft2_4FGL_J1225.0+0330_daily_bin397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/606553/Model_4FGL_J1225.0+0330_daily_bin397.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/606553/ft1_filtered_4FGL_J1225.0+0330_daily_bin397.fits.....................!
real 52.79
user 50.51
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/606553/ft1_filtered_4FGL_J1225.0+0330_daily_bin397.fits', '/scratch/kocevski/606553/ft2_4FGL_J1225.0+0330_daily_bin397.fits', expMap='/scratch/kocevski/606553/expmap_342230401_342489601_4FGL_J1225.0+0330_daily_bin397.fits', expCube='/scratch/kocevski/606553/ltcube_342230401_342489601_4FGL_J1225.0+0330_daily_bin397.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/606553/Model_4FGL_J1225.0+0330_daily_bin397.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1225.0+0330'

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  8.374e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/606553/ft1_filtered_4FGL_J1225.0+0330_daily_bin397.fits
Spacecraft file(s): /scratch/kocevski/606553/ft2_4FGL_J1225.0+0330_daily_bin397.fits
Exposure map: /scratch/kocevski/606553/expmap_342230401_342489601_4FGL_J1225.0+0330_daily_bin397.fits
Exposure cube: /scratch/kocevski/606553/ltcube_342230401_342489601_4FGL_J1225.0+0330_daily_bin397.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/606553/Model_4FGL_J1225.0+0330_daily_bin397.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) = 6038.7242319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2293       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.923       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.715       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.0889       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .62324E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0439       1.0000         .10000E-03   10000.    
    22 'norm      '    6.5016       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.8019       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    49.782       1.0000         .10000E-03   10000.    
    28 'Prefactor '    20.581       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3766       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67349       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6038.723     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     4925 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.934        .38865E-05** at limit **
   2  Prefactor     .10001E-03    251.50       -.58881E-05** at limit **
   3  Prefactor     .10000E-03    3.3189       -.49858E-07** at limit **
   4  Prefactor     6.2296        8.9043        .14487E-06   -.90918E-04
   5  Prefactor     3.2198        17.968        .87441E-05   -.49621E-03
   6  Prefactor     .10000E-03    6.4277       -.17851E-06** at limit **
   7  Prefactor     58.928        71.991       -.22602E-05    .19231E-04
   8  Prefactor     .10000E-03    15.083        .12215E-05** at limit **
   9  Prefactor     23.717        32.875        .43952E-07   -.32684E-05
  10  Prefactor     .10000E-03    34.998        .30893E-05** at limit **
  11  Prefactor     .10000E-03    19.192       -.13566E-05** at limit **
  12  Prefactor     .10000E-03    5.3790       -.29738E-07** at limit **
  13  norm          .10000E-03    .69872        .12362E-07** at limit **
  14  norm          5.0885        3.8455       -.35780E-08   -.40003E-04
  15  Prefactor     .10000E-03    32.319        .16713E-05** at limit **
  16  norm          .10000E-03    14.277       -.42044E-05** at limit **
  17  Prefactor     .10002E-03    50.502       -.95198E-05** at limit **
  18  norm          .62500E-01    .23142        .68757E-07   -.72220E-03
  19  Prefactor     .10000E-03    8.7356        .30045E-07** at limit **
  20  Prefactor     .10002E-03    65.966        .91690E-05** at limit **
  21  Prefactor     8.0439        6.8881        .23203E-07    .57509E-05
  22  norm          6.5017        2.1650        .80517E-08   -.73836E-04
  23  Prefactor     8.8024        6.8745        .28866E-07   -.15289E-04
  24  Prefactor     .10000E-03    10.888        .16260E-06** at limit **
  25  Prefactor     .10000E-03    6.4560        .19096E-06** at limit **
  26  Prefactor     .10000E-03    30.420       -.14888E-05** at limit **
  27  norm          49.783        26.702       -.24234E-07   -.14355E-04
  28  Prefactor     20.581        16.060        .13751E-06   -.16878E-04
  29  Normalizat    1.3765        .21126       -.51814E-06   -.10276E-03
  30  Prefactor     .67353        .15982       -.12595E-06   -.11032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 6.22956
  Prefactor  = 3.21977
  Prefactor  = 0.0001
  Prefactor  = 58.928
  Prefactor  = 0.0001
  Prefactor  = 23.7166
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.08848
  Prefactor  = 0.000100001
  norm       = 0.000100004
  Prefactor  = 0.000100022
  norm       = 0.0625004
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 8.04389
  norm       = 6.50174
  Prefactor  = 8.80239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 49.7834
  Prefactor  = 20.5806
  Normalizat = 1.37648
  Prefactor  = 0.673526
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.723     FROM HESSE     STATUS=OK           578 CALLS     5503 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    253.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3247        .13825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2296        8.9025        .16084E-03   -1.5209    
   5  Prefactor     3.2198        25.034        .11288E-02   -1.5349    
   6  Prefactor     .10000E-03    6.4495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     58.928        73.562        .52266E-04   -1.4171    
   8  Prefactor     .10000E-03    15.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.717        32.974        .82255E-04   -1.4734    
  10  Prefactor     .10000E-03    35.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4033        .17596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .70182        .63420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.0885        3.7957        .11914E-03   -1.5257    
  15  Prefactor     .10000E-03    32.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    52.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .62500E-01    .37915        .65213E-03   -1.5658    
  19  Prefactor     .10000E-03    8.8073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    69.092        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.0439        6.8796        .14137E-03   -1.5141    
  22  norm          6.5017        2.1584        .62038E-04   -1.5198    
  23  Prefactor     8.8024        6.8727        .13510E-03   -1.5115    
  24  Prefactor     .10000E-03    10.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.4570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    30.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          49.783        26.699        .56837E-04   -1.4296    
  28  Prefactor     20.581        16.151        .88289E-04   -1.4800    
  29  Normalizat    1.3765        .25454        .25101E-03   -.81311    
  30  Prefactor     .67353        .19059        .27632E-03   -1.0457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60112e-08
Minuit parameter uncertainties:
  1  0.000468436
  2  0.00285297
  3  3.50271e-06
  4  8.90439
  5  17.9661
  6  1.42595e-05
  7  73.6762
  8  0.000147838
  9  32.9997
  10  0.000543244
  11  0.000180342
  12  2.41743e-06
  13  2.42786e-07
  14  3.79589
  15  0.000291265
  16  0.000499735
  17  0.00215437
  18  0.307632
  19  8.64272e-06
  20  0.00207701
  21  6.88032
  22  2.15843
  23  6.87327
  24  1.71657e-05
  25  1.51294e-05
  26  0.000256249
  27  26.7052
  28  16.1549
  29  0.254776
  30  0.190778
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  4.997e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  6.735e-01  1.908e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.376e+00  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.252 3.510
Photon Flux Upper Limit: 4.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606553/likelihoodResults_342230401_342489601_4FGL_J1225.0+0330_daily_bin397.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) = 6038.72373905
delta logL = -0.000321919041198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6038.54288945
delta logL = 0.180527677607

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6038.543     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      299 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87148        1.5312        .11348E-03    .47087E-05
   2  alpha         5.0000        3.3214        .44628    ** at limit **
   3  Normalizat    1.3259        .25114        .25464E-03    .19287E-04
   4  Prefactor     .69845        .19353        .27165E-03    .22934E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.871482
  alpha      = 5
  Normalizat = 1.32591
  Prefactor  = 0.698455
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.543     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .82E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87148        1.5295        .45390E-05   -1.5521    
   2  alpha         5.0000        3.3201        .44563        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3259        .25141        .10186E-04   -.82796    
   4  Prefactor     .69845        .19374        .10866E-04   -1.0359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19534e-13
Minuit parameter uncertainties:
  1  1.52957
  2  1.15351e-06
  3  0.251646
  4  0.193927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606553': 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) = 6038.54288943
delta logL = 0.180527699392

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  8.715e-01  1.530e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  5.000e+00  1.154e-06  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  6.985e-01  1.939e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.326e+00  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.252 3.510

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/606553/cmap_HighResolution_342230401_342489601_4FGL_J1225.0+0330_daily_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2021-09-05 14:01:35.305765', job_id='606553', GAL2='0.70', fit_tolerance='1e-08', EG2='1.33', EG='1.38', time_epoch_completed='1630875695.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.81e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='397' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:01:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 606553: <4FGL_J1225.0+0330_daily_bin397> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin397> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:45:37 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:45:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:45:39 2021
Terminated at Sun Sep  5 14:01:36 2021
Results reported at Sun Sep  5 14:01:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin397 186.252 3.5098 342230401 342489601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1225.0+0330 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   921.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

