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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin730
RA = 186.252, Dec = 3.5098
tmin = 428544001, tmax = 428803201
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='608312', job_status='RUN', time_executed='2021-09-05 13:53:11.476392', time_epoch_executed='1630875191.48' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608312

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608312/ft1_4FGL_J1225.0+0330_daily_bin730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608312/ft2_4FGL_J1225.0+0330_daily_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608312/ft1_4FGL_J1225.0+0330_daily_bin730.fits outfile=/scratch/kocevski/608312/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin730.fits ra=186.252 dec=3.5098 rad=12.0 tmin=428544001.0 tmax=428803201.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 6.22
user 5.98
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608312/ft1_filtered_4FGL_J1225.0+0330_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/608312/ft2_4FGL_J1225.0+0330_daily_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/608312/ltcube_428544001_428803201_4FGL_J1225.0+0330_daily_bin730.fits outfile=/scratch/kocevski/608312/expmap_428544001_428803201_4FGL_J1225.0+0330_daily_bin730.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/608312/ltcube_428544001_428803201_4FGL_J1225.0+0330_daily_bin730.fits
.....................!
real 190.62
user 185.56
sys 4.67

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/608312/ft1_filtered_4FGL_J1225.0+0330_daily_bin730.fits scfile=/scratch/kocevski/608312/ft2_4FGL_J1225.0+0330_daily_bin730.fits outfile=/scratch/kocevski/608312/cmap_428544001_428803201_4FGL_J1225.0+0330_daily_bin730.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608312/ft1_filtered_4FGL_J1225.0+0330_daily_bin730.fits scfile=/scratch/kocevski/608312/ft2_4FGL_J1225.0+0330_daily_bin730.fits outfile=/scratch/kocevski/608312/cmap_HighResolution_428544001_428803201_4FGL_J1225.0+0330_daily_bin730.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/608312/ft1_filtered_4FGL_J1225.0+0330_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/608312/ft2_4FGL_J1225.0+0330_daily_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/608312/Model_4FGL_J1225.0+0330_daily_bin730.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/608312/ft1_filtered_4FGL_J1225.0+0330_daily_bin730.fits.....................!
real 48.99
user 47.37
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/608312/ft1_filtered_4FGL_J1225.0+0330_daily_bin730.fits', '/scratch/kocevski/608312/ft2_4FGL_J1225.0+0330_daily_bin730.fits', expMap='/scratch/kocevski/608312/expmap_428544001_428803201_4FGL_J1225.0+0330_daily_bin730.fits', expCube='/scratch/kocevski/608312/ltcube_428544001_428803201_4FGL_J1225.0+0330_daily_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/608312/Model_4FGL_J1225.0+0330_daily_bin730.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/608312/ft1_filtered_4FGL_J1225.0+0330_daily_bin730.fits
Spacecraft file(s): /scratch/kocevski/608312/ft2_4FGL_J1225.0+0330_daily_bin730.fits
Exposure map: /scratch/kocevski/608312/expmap_428544001_428803201_4FGL_J1225.0+0330_daily_bin730.fits
Exposure cube: /scratch/kocevski/608312/ltcube_428544001_428803201_4FGL_J1225.0+0330_daily_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/608312/Model_4FGL_J1225.0+0330_daily_bin730.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) = 5157.96169024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.285       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6396       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13515E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.095       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.826       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .17784       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.007       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6514       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .67806       1.0000         .10000E-03   10000.    
    24 'Prefactor '    39.527       1.0000         .10000E-03   10000.    
    25 'Prefactor '    216.85       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    22.866       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.9849       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3138       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0222       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=   5157.932     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3904 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.301        44.836       -.22074E-05   -.21607E-04
   2  Prefactor     .10000E-03    76.833        .24069E-05** at limit **
   3  Prefactor     .10000E-03    3.3470       -.23049E-07** at limit **
   4  Prefactor     2.6359        9.8451        .46103E-05    .41652E-05
   5  Prefactor     .10000E-03    5.9309       -.38792E-07** at limit **
   6  Prefactor     .10000E-03    13.814        .32019E-06** at limit **
   7  Prefactor     .10000E-03    25.635        .10562E-05** at limit **
   8  Prefactor     .10000E-03    51.573       -.40526E-05** at limit **
   9  Prefactor     .10000E-03    33.478        .16748E-05** at limit **
  10  Prefactor     .10000E-03    81.297        .54535E-05** at limit **
  11  Prefactor     .10000E-03    26.516        .14760E-05** at limit **
  12  Prefactor     22.092        17.400       -.20217E-06   -.51727E-04
  13  norm          .10000E-03    2.1251       -.31286E-07** at limit **
  14  norm          .10000E-03    2.8118        .20621E-07** at limit **
  15  Prefactor     22.835        29.131       -.49674E-06    .21975E-05
  16  norm          .10000E-03    21.409       -.24100E-05** at limit **
  17  Prefactor     .10000E-03    57.765       -.39665E-05** at limit **
  18  norm          .17786        .57093        .51525E-07   -.27361E-04
  19  Prefactor     14.007        12.409        .59271E-07    .47889E-05
  20  Prefactor     .10000E-03    11.095       -.19398E-06** at limit **
  21  Prefactor     .10000E-03    4.2940       -.18309E-07** at limit **
  22  norm          2.6513        2.1093        .61635E-07    .53230E-04
  23  Prefactor     .66748        14.619       -.61293E-06    .14751E-03
  24  Prefactor     39.528        34.928        .14762E-07   -.44062E-06
  25  Prefactor     216.86        109.89       -.84737E-06   -.64699E-05
  26  Prefactor     .10000E-03    70.134       -.54585E-06** at limit **
  27  norm          22.877        43.515       -.20992E-05   -.13932E-04
  28  Prefactor     6.9869        18.152        .24218E-06    .69130E-05
  29  Normalizat    1.3137        .26542       -.63074E-06   -.43484E-04
  30  Prefactor     1.0223        .21231        .97753E-07   -.57659E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.3007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0917
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.8351
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.177863
  Prefactor  = 14.0072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.6513
  Prefactor  = 0.667478
  Prefactor  = 39.5279
  Prefactor  = 216.865
  Prefactor  = 0.0001
  norm       = 22.8772
  Prefactor  = 6.98694
  Normalizat = 1.31367
  Prefactor  = 1.02231
 **********
 **   18 **HESSE 
 **********

 FCN=   5157.932     FROM HESSE     STATUS=OK           582 CALLS     4486 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.301        44.875        .60245E-04   -1.4376    
   2  Prefactor     .10000E-03    76.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3496        .12832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6359        9.8710        .12548E-02   -1.5383    
   5  Prefactor     .10000E-03    5.9349        .17083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    51.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    81.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.092        17.247        .85212E-04   -1.4768    
  13  norm          .10000E-03    2.1391        .10177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.8898        .23457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.835        29.122        .83838E-04   -1.4752    
  16  norm          .10000E-03    21.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    57.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .17786        .55954        .87538E-04   -1.5624    
  19  Prefactor     14.007        12.412        .10702E-03   -1.4959    
  20  Prefactor     .10000E-03    11.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.3011        .14533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6513        2.0895        .86963E-04   -1.5382    
  23  Prefactor     .66748        64.768        .44727E-02   -1.5545    
  24  Prefactor     39.528        34.887        .63754E-04   -1.4450    
  25  Prefactor     216.86        109.64        .13731E-03   -1.2752    
  26  Prefactor     .10000E-03    70.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          22.877        44.150        .83766E-04   -1.4751    
  28  Prefactor     6.9869        18.151        .15179E-03   -1.5179    
  29  Normalizat    1.3137        .31504        .30902E-03   -.83159    
  30  Prefactor     1.0223        .25319        .28183E-03   -.91990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09377e-09
Minuit parameter uncertainties:
  1  44.9089
  2  4.2135e-05
  3  5.65572e-07
  4  9.87709
  5  7.99427e-07
  6  4.01481e-06
  7  8.23233e-06
  8  3.2137e-05
  9  2.24799e-05
  10  2.74315e-05
  11  2.15611e-05
  12  17.2505
  13  5.97093e-07
  14  7.94503e-07
  15  29.1399
  16  1.6122e-05
  17  3.76722e-05
  18  0.559555
  19  12.4141
  20  2.19933e-07
  21  1.43528e-07
  22  2.08951
  23  13.1638
  24  34.9049
  25  109.749
  26  8.33478e-06
  27  44.2131
  28  18.1656
  29  0.315498
  30  0.253487
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.612e-05  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:  1.022e+00  2.535e-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.314e+00  3.155e-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: 6.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608312/likelihoodResults_428544001_428803201_4FGL_J1225.0+0330_daily_bin730.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) = 5157.9318649
delta logL = -0.000222218316594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5157.93164574
delta logL = -3.06151923724e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8584       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0223       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5157.932     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      285 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    211.53        .18142E-01** at limit **
   2  alpha         2.4406        2.5766        .50000        .61095E-07
   3  Normalizat    1.3137        .21120E-01    .30902E-03    .10766E-02
   4  Prefactor     1.0223        .17342E-01    .28183E-03    .12196E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.44057
  Normalizat = 1.31368
  Prefactor  = 1.02231
 **********
 **   18 **HESSE 
 **********

 FCN=   5157.932     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1117.6        .32399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4406        3.0287        .50000       -.23773E-01
   3  Normalizat    1.3137        .51941E-01    .61804E-04   -.83159    
   4  Prefactor     1.0223        .42650E-01    .56367E-04   -.91989    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49029e-08
Minuit parameter uncertainties:
  1  0.000925556
  2  5787.72
  3  0.0519434
  4  0.0426519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608312': 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) = 5157.93164268
delta logL = -1.26783561427e-09

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  9.256e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.441e+00  5.788e+03  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:  1.022e+00  4.265e-02  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.314e+00  5.194e-02  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/608312/cmap_HighResolution_428544001_428803201_4FGL_J1225.0+0330_daily_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-05 14:06:26.770817', job_id='608312', GAL2='1.02', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630875986.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-1.27e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='730' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:06:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 608312: <4FGL_J1225.0+0330_daily_bin730> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin730> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:50:44 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13: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 13:50:45 2021
Terminated at Sun Sep  5 14:06:27 2021
Results reported at Sun Sep  5 14:06:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin730 186.252 3.5098 428544001 428803201 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 :                                   791.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

