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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin952
RA = 186.252, Dec = 3.5098
tmin = 486086401, tmax = 486345601
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='609701', job_status='RUN', time_executed='2021-09-05 13:55:48.377219', time_epoch_executed='1630875348.38' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='952'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/609701

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/609701/ft1_4FGL_J1225.0+0330_daily_bin952.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/609701/ft2_4FGL_J1225.0+0330_daily_bin952.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/609701/ft1_4FGL_J1225.0+0330_daily_bin952.fits outfile=/scratch/kocevski/609701/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin952.fits ra=186.252 dec=3.5098 rad=12.0 tmin=486086401.0 tmax=486345601.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 3.57
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/609701/ft2_4FGL_J1225.0+0330_daily_bin952.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/609701/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin952.fits evtable="EVENTS" outfile="/scratch/kocevski/609701/ft1_filtered_4FGL_J1225.0+0330_daily_bin952.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/609701/ft1_filtered_4FGL_J1225.0+0330_daily_bin952.fits" evtable="EVENTS" scfile=/scratch/kocevski/609701/ft2_4FGL_J1225.0+0330_daily_bin952.fits sctable="SC_DATA" outfile=/scratch/kocevski/609701/ltcube_486086401_486345601_4FGL_J1225.0+0330_daily_bin952.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/609701/ft2_4FGL_J1225.0+0330_daily_bin952.fits
.....................!
real 11.98
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/609701/ft1_filtered_4FGL_J1225.0+0330_daily_bin952.fits evtable="EVENTS" scfile=/scratch/kocevski/609701/ft2_4FGL_J1225.0+0330_daily_bin952.fits sctable="SC_DATA" expcube=/scratch/kocevski/609701/ltcube_486086401_486345601_4FGL_J1225.0+0330_daily_bin952.fits outfile=/scratch/kocevski/609701/expmap_486086401_486345601_4FGL_J1225.0+0330_daily_bin952.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/609701/ltcube_486086401_486345601_4FGL_J1225.0+0330_daily_bin952.fits
.....................!
real 191.38
user 185.96
sys 5.01

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/609701/ft1_filtered_4FGL_J1225.0+0330_daily_bin952.fits scfile=/scratch/kocevski/609701/ft2_4FGL_J1225.0+0330_daily_bin952.fits outfile=/scratch/kocevski/609701/cmap_486086401_486345601_4FGL_J1225.0+0330_daily_bin952.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/609701/ft1_filtered_4FGL_J1225.0+0330_daily_bin952.fits scfile=/scratch/kocevski/609701/ft2_4FGL_J1225.0+0330_daily_bin952.fits outfile=/scratch/kocevski/609701/cmap_HighResolution_486086401_486345601_4FGL_J1225.0+0330_daily_bin952.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3818       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.338       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11445E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0224       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10887E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5641       1.0000         .10000E-03   10000.    
    13 'norm      '    4.6530       1.0000         .10000E-03   10000.    
    14 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.983       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8399       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.829       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.2789       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9129       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.115       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.5095       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.3481       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93145       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92917       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=   7358.286     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3889 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3824        10.662        .11577E-05    .31429E-05
   2  Prefactor     .10000E-03    21.916        .66666E-06** at limit **
   3  Prefactor     11.337        7.3669        .85077E-07   -.16397E-05
   4  Prefactor     .10000E-03    3.1000       -.13168E-07** at limit **
   5  Prefactor     .10000E-03    49.082        .12300E-05** at limit **
   6  Prefactor     5.0263        11.545        .15620E-05    .15124E-05
   7  Prefactor     .10000E-03    28.979       -.20590E-05** at limit **
   8  Prefactor     .10000E-03    14.806        .77921E-06** at limit **
   9  Prefactor     .10000E-03    41.695        .17735E-05** at limit **
  10  Prefactor     .10000E-03    16.816       -.58411E-06** at limit **
  11  Prefactor     .10000E-03    106.25       -.42133E-05** at limit **
  12  Prefactor     2.5675        16.046        .32053E-06    .61329E-05
  13  norm          4.6529        3.0800       -.68832E-08    .24157E-04
  14  norm          .10000E-03    2.5268        .28361E-07** at limit **
  15  Prefactor     .10000E-03    70.291       -.32888E-05** at limit **
  16  norm          19.983        30.509        .13252E-06    .10474E-04
  17  Prefactor     .10000E-03    155.76        .82981E-05** at limit **
  18  norm          1.8400        .58614        .14205E-07    .16782E-03
  19  Prefactor     29.831        12.907        .19077E-07   -.37841E-05
  20  Prefactor     .10000E-03    18.543        .76448E-06** at limit **
  21  Prefactor     .10000E-03    6.9994       -.52109E-07** at limit **
  22  norm          4.2790        1.6609        .19274E-07    .35903E-04
  23  Prefactor     6.9144        7.3075        .15792E-06    .40591E-05
  24  Prefactor     16.119        31.125        .34079E-07    .57946E-06
  25  Prefactor     .10000E-03    10.740       -.12294E-07** at limit **
  26  Prefactor     .10000E-03    15.415       -.67190E-06** at limit **
  27  norm          9.5101        14.278        .28840E-07    .11418E-06
  28  Prefactor     5.3514        12.515        .14815E-05    .69636E-05
  29  Normalizat    .93134        .18601       -.38805E-06    .37849E-04
  30  Prefactor     .92917        .14927       -.95092E-07    .28655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.38243
  Prefactor  = 0.0001
  Prefactor  = 11.3368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.02629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56747
  norm       = 4.65295
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.9826
  Prefactor  = 0.0001
  norm       = 1.84
  Prefactor  = 29.8308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.27898
  Prefactor  = 6.9144
  Prefactor  = 16.1191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.51006
  Prefactor  = 5.35139
  Normalizat = 0.931341
  Prefactor  = 0.929169
 **********
 **   18 **HESSE 
 **********

 FCN=   7358.286     FROM HESSE     STATUS=OK           586 CALLS     4475 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3824        10.655        .96203E-03   -1.5289    
   2  Prefactor     .10000E-03    21.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.337        7.3699        .11898E-03   -1.5034    
   4  Prefactor     .10000E-03    3.1204        .14747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    51.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0263        11.542        .89717E-03   -1.5260    
   7  Prefactor     .10000E-03    29.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    108.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5675        15.368        .25493E-03   -1.5387    
  13  norm          4.6529        3.0216        .95965E-04   -1.5277    
  14  norm          .10000E-03    2.5989        .26438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    71.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.983        30.502        .89600E-04   -1.4814    
  17  Prefactor     .10000E-03    156.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8400        .58475        .33058E-04   -1.5437    
  19  Prefactor     29.831        12.909        .73359E-04   -1.4615    
  20  Prefactor     .10000E-03    18.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.2790        1.6591        .65209E-04   -1.5294    
  23  Prefactor     6.9144        7.2950        .15259E-03   -1.5182    
  24  Prefactor     16.119        31.114        .99770E-04   -1.4905    
  25  Prefactor     .10000E-03    10.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.5101        14.268        .12995E-03   -1.5091    
  28  Prefactor     5.3514        12.530        .86891E-03   -1.5245    
  29  Normalizat    .93134        .21916        .28764E-03   -.95367    
  30  Prefactor     .92917        .17645        .23935E-03   -.95129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41199e-12
Minuit parameter uncertainties:
  1  10.6595
  2  2.70121e-06
  3  7.37046
  4  6.22633e-07
  5  7.65348e-05
  6  11.5472
  7  1.60279e-05
  8  2.42184e-06
  9  4.95009e-06
  10  3.39224e-06
  11  0.000185027
  12  12.5675
  13  3.02172
  14  1.12924e-06
  15  1.79852e-05
  16  30.526
  17  0.000103158
  18  0.584751
  19  12.9104
  20  1.21515e-06
  21  3.29852e-06
  22  1.65907
  23  7.29595
  24  31.1451
  25  5.12361e-07
  26  3.99811e-06
  27  14.2734
  28  12.536
  29  0.219372
  30  0.17656
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.998e+01  3.053e+01  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:  9.292e-01  1.766e-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:  9.313e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/609701/likelihoodResults_486086401_486345601_4FGL_J1225.0+0330_daily_bin952.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) = 7357.76674767
delta logL = 0.519113135165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7357.75110657
delta logL = 0.534754230876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6636       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9691       1.0000          .0000       5.0000    
     3 'Normalizat'    .88001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95524       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=   7357.751     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      291 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6557        49.101        .14486E-03    .31157E-04
   2  alpha         3.9698        4.3308        .21315E-01    .12132E-04
   3  Normalizat    .87999        .23652        .29458E-03    .36143E-03
   4  Prefactor     .95524        .18774        .23620E-03   -.13366E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.65567
  alpha      = 3.96977
  Normalizat = 0.879992
  Prefactor  = 0.955237
 **********
 **   18 **HESSE 
 **********

 FCN=   7357.751     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6557        15.882        .57943E-05   -1.5155    
   2  alpha         3.9698        1.2919        .85260E-03    .62847    
   3  Normalizat    .87999        .21812        .11783E-04   -.97167    
   4  Prefactor     .95524        .17770        .94482E-05   -.94237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23855e-09
Minuit parameter uncertainties:
  1  15.8911
  2  1.40143
  3  0.218339
  4  0.177804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/609701': 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) = 7357.75110642
delta logL = 0.534754383595

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  7.656e+00  1.589e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  3.970e+00  1.401e+00  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:  9.552e-01  1.778e-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:  8.800e-01  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 186.252 3.510
Photon Index (Free Index): 3.97 +/- 1.40
Photon Flux (Free Index): 5.98e-08 +/- 6.50e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/609701/cmap_HighResolution_486086401_486345601_4FGL_J1225.0+0330_daily_bin952.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='5.35e-01', photon_flux2='5.98e-08', job_status='DONE', time_completed='2021-09-05 14:12:09.052526', photon_index_error2='1.40', photon_index2='3.97', ts='0.64', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='6.81e-08', energy_flux_error2='1.03e-05', EG='0.93', time_epoch_completed='1630876329.05', return_code='0', job_id='609701', GAL2='0.96', EG2='0.88', return_code2='0', photon_flux_error2='6.50e-08', ts2='1.83', photon_index='2.40' WHERE bin_id='952' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:12:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 609701: <4FGL_J1225.0+0330_daily_bin952> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin952> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:55:35 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:55:38 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:55:38 2021
Terminated at Sun Sep  5 14:12:09 2021
Results reported at Sun Sep  5 14:12:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin952 186.252 3.5098 486086401 486345601 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 :                                   969.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

