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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin373
RA = 186.252, Dec = 3.5098
tmin = 336009601, tmax = 336268801
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='606519', job_status='RUN', time_executed='2021-09-05 13:45:54.173742', time_epoch_executed='1630874754.17' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606519/ft1_4FGL_J1225.0+0330_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606519/ft2_4FGL_J1225.0+0330_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606519/ft1_4FGL_J1225.0+0330_daily_bin373.fits outfile=/scratch/kocevski/606519/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin373.fits ra=186.252 dec=3.5098 rad=12.0 tmin=336009601.0 tmax=336268801.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.29
user 3.09
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606519/ft1_filtered_4FGL_J1225.0+0330_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/606519/ft2_4FGL_J1225.0+0330_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/606519/ltcube_336009601_336268801_4FGL_J1225.0+0330_daily_bin373.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/606519/ft2_4FGL_J1225.0+0330_daily_bin373.fits
.....................!
real 11.69
user 11.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606519/ft1_filtered_4FGL_J1225.0+0330_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/606519/ft2_4FGL_J1225.0+0330_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/606519/ltcube_336009601_336268801_4FGL_J1225.0+0330_daily_bin373.fits outfile=/scratch/kocevski/606519/expmap_336009601_336268801_4FGL_J1225.0+0330_daily_bin373.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/606519/ltcube_336009601_336268801_4FGL_J1225.0+0330_daily_bin373.fits
.....................!
real 189.25
user 184.95
sys 3.95

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/606519/ft1_filtered_4FGL_J1225.0+0330_daily_bin373.fits scfile=/scratch/kocevski/606519/ft2_4FGL_J1225.0+0330_daily_bin373.fits outfile=/scratch/kocevski/606519/cmap_336009601_336268801_4FGL_J1225.0+0330_daily_bin373.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606519/ft1_filtered_4FGL_J1225.0+0330_daily_bin373.fits scfile=/scratch/kocevski/606519/ft2_4FGL_J1225.0+0330_daily_bin373.fits outfile=/scratch/kocevski/606519/cmap_HighResolution_336009601_336268801_4FGL_J1225.0+0330_daily_bin373.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/606519/ft1_filtered_4FGL_J1225.0+0330_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/606519/ft2_4FGL_J1225.0+0330_daily_bin373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/606519/Model_4FGL_J1225.0+0330_daily_bin373.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/606519/ft1_filtered_4FGL_J1225.0+0330_daily_bin373.fits.....................!
real 52.28
user 50.91
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10248E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3636       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    147.85       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14825E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6224       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11276E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1658       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8394       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4419       1.0000         .10000E-03   10000.    
    18 'norm      '    .11188E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.4760       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4633       1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.495       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0966       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1704       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=   6070.120     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     3936 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5007        .13538E-06** at limit **
   2  Prefactor     .10000E-03    260.04       -.14599E-05** at limit **
   3  Prefactor     7.3641        11.496       -.88949E-06   -.25093E-04
   4  Prefactor     .10000E-03    17.149       -.18180E-05** at limit **
   5  Prefactor     .10000E-03    45.481       -.85396E-06** at limit **
   6  Prefactor     .10000E-03    12.594        .10869E-05** at limit **
   7  Prefactor     147.84        110.26        .64290E-06    .18093E-04
   8  Prefactor     .10000E-03    560.63       -.96231E-05** at limit **
   9  Prefactor     5.6697        93.092        .40692E-05    .12810E-04
  10  Prefactor     .10000E-03    52.997        .32854E-05** at limit **
  11  Prefactor     .10000E-03    10.576       -.65824E-06** at limit **
  12  Prefactor     .10000E-03    8.5757        .34162E-06** at limit **
  13  norm          1.1654        1.7445       -.18934E-07   -.55582E-04
  14  norm          3.8423        4.1808       -.11617E-06    .14761E-04
  15  Prefactor     .10000E-03    12.743        .85054E-06** at limit **
  16  norm          .10000E-03    31.156       -.70418E-06** at limit **
  17  Prefactor     9.4801        175.15        .91462E-05    .50755E-05
  18  norm          .10000E-03    .26903       -.13193E-07** at limit **
  19  Prefactor     .10000E-03    7.5243        .76067E-07** at limit **
  20  Prefactor     .10000E-03    14.741       -.67323E-06** at limit **
  21  Prefactor     .10000E-03    10.500       -.64541E-06** at limit **
  22  norm          8.4767        2.4148       -.74896E-08    .14589E-04
  23  Prefactor     1.4625        7.6630       -.65701E-06   -.18406E-04
  24  Prefactor     40.511        48.051        .72960E-06    .20252E-05
  25  Prefactor     .10000E-03    252.28        .13855E-05** at limit **
  26  Prefactor     .10000E-03    19.549        .31478E-06** at limit **
  27  norm          .10000E-03    21.037        .13237E-05** at limit **
  28  Prefactor     .10000E-03    4.8129        .15120E-06** at limit **
  29  Normalizat    1.0967        .24137        .18343E-05   -.83724E-04
  30  Prefactor     1.1704        .19115       -.20053E-05    .31390E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.36407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 147.836
  Prefactor  = 0.0001
  Prefactor  = 5.66968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.16544
  norm       = 3.84226
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.48013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.47665
  Prefactor  = 1.46253
  Prefactor  = 40.5112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09675
  Prefactor  = 1.17039
 **********
 **   18 **HESSE 
 **********

 FCN=   6070.120     FROM HESSE     STATUS=OK           592 CALLS     4528 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    260.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.3641        11.539        .73902E-03   -1.5165    
   4  Prefactor     .10000E-03    17.805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     147.84        110.30        .16571E-03   -1.3270    
   8  Prefactor     .10000E-03    51.053        .17865       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6697        96.732        .16942E-03   -1.5232    
  10  Prefactor     .10000E-03    53.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.6252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1654        1.7009        .12203E-03   -1.5492    
  14  norm          3.8423        4.0402        .14900E-03   -1.5316    
  15  Prefactor     .10000E-03    12.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    31.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.4801        175.21        .13042E-03   -1.5092    
  18  norm          .10000E-03    6.6802        .72932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.6477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.4767        2.4085        .60969E-04   -1.5126    
  23  Prefactor     1.4625        7.6833        .35558E-03   -1.5466    
  24  Prefactor     40.511        47.955        .62990E-04   -1.4434    
  25  Prefactor     .10000E-03    256.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    21.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.8354        .16693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0967        .27526        .30661E-03   -.89856    
  30  Prefactor     1.1704        .21699        .24744E-03   -.87248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85638e-10
Minuit parameter uncertainties:
  1  1.77531e-06
  2  0.000283259
  3  11.5421
  4  5.99343e-05
  5  9.41621e-05
  6  1.74855e-05
  7  110.453
  8  7.84949e-05
  9  46.9264
  10  6.14923e-05
  11  1.21862e-05
  12  4.56452e-07
  13  1.70099
  14  4.04051
  15  9.68233e-06
  16  1.42364e-05
  17  81.7897
  18  0.000107565
  19  1.11677e-05
  20  1.6812e-06
  21  5.05634e-06
  22  2.4085
  23  6.70548
  24  48.0003
  25  0.000304128
  26  1.13304e-05
  27  2.11329e-05
  28  2.65401e-06
  29  0.27562
  30  0.217156
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.424e-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.170e+00  2.172e-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.097e+00  2.756e-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: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606519/likelihoodResults_336009601_336268801_4FGL_J1225.0+0330_daily_bin373.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) = 6070.12056428
delta logL = -0.000152744562911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6070.12041162
delta logL = -8.34361344459e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11794E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1386       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1704       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=   6070.120     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      246 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7614.4        .18142E-02** at limit **
   2  alpha         2.9589        3.3952        .17197       -.12561E-08
   3  Normalizat    1.0967        .10895        .30661E-03    .14535E-04
   4  Prefactor     1.1704        .90946E-01    .24744E-03    .19205E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.9589
  Normalizat = 1.09675
  Prefactor  = 1.17038
 **********
 **   18 **HESSE 
 **********

 FCN=   6070.120     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    35.871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9589        3.8770        .68786E-02    .18461    
   3  Normalizat    1.0967        .25529        .12265E-04   -.89856    
   4  Prefactor     1.1704        .21317        .98977E-05   -.87248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85554e-11
Minuit parameter uncertainties:
  1  0.00037955
  2  777.369
  3  0.255576
  4  0.213326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606519': 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) = 6070.12041133
delta logL = 2.098031473e-07

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  3.796e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.959e+00  7.774e+02  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.170e+00  2.133e-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.097e+00  2.556e-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/606519/cmap_HighResolution_336009601_336268801_4FGL_J1225.0+0330_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-05', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-09-05 13:59:57.452247', job_id='606519', GAL2='1.17', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630875597.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='373' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:59:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 606519: <4FGL_J1225.0+0330_daily_bin373> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin373> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:45:35 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:45:37 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:37 2021
Terminated at Sun Sep  5 13:59:58 2021
Results reported at Sun Sep  5 13:59:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin373 186.252 3.5098 336009601 336268801 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 :                                   835.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

