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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin166
RA = 186.252, Dec = 3.5098
tmin = 282355201, tmax = 282614401
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='605338', job_status='RUN', time_executed='2021-09-05 13:42:28.163016', time_epoch_executed='1630874548.16' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605338

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605338/ft1_4FGL_J1225.0+0330_daily_bin166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605338/ft2_4FGL_J1225.0+0330_daily_bin166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605338/ft1_4FGL_J1225.0+0330_daily_bin166.fits outfile=/scratch/kocevski/605338/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin166.fits ra=186.252 dec=3.5098 rad=12.0 tmin=282355201.0 tmax=282614401.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.17
user 3.46
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605338/ft1_filtered_4FGL_J1225.0+0330_daily_bin166.fits" evtable="EVENTS" scfile=/scratch/kocevski/605338/ft2_4FGL_J1225.0+0330_daily_bin166.fits sctable="SC_DATA" outfile=/scratch/kocevski/605338/ltcube_282355201_282614401_4FGL_J1225.0+0330_daily_bin166.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/605338/ft2_4FGL_J1225.0+0330_daily_bin166.fits
.....................!
real 12.08
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605338/ft1_filtered_4FGL_J1225.0+0330_daily_bin166.fits evtable="EVENTS" scfile=/scratch/kocevski/605338/ft2_4FGL_J1225.0+0330_daily_bin166.fits sctable="SC_DATA" expcube=/scratch/kocevski/605338/ltcube_282355201_282614401_4FGL_J1225.0+0330_daily_bin166.fits outfile=/scratch/kocevski/605338/expmap_282355201_282614401_4FGL_J1225.0+0330_daily_bin166.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/605338/ltcube_282355201_282614401_4FGL_J1225.0+0330_daily_bin166.fits
.....................!
real 191.02
user 185.02
sys 5.20

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/605338/ft1_filtered_4FGL_J1225.0+0330_daily_bin166.fits scfile=/scratch/kocevski/605338/ft2_4FGL_J1225.0+0330_daily_bin166.fits outfile=/scratch/kocevski/605338/cmap_282355201_282614401_4FGL_J1225.0+0330_daily_bin166.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/605338/ft1_filtered_4FGL_J1225.0+0330_daily_bin166.fits scfile=/scratch/kocevski/605338/ft2_4FGL_J1225.0+0330_daily_bin166.fits outfile=/scratch/kocevski/605338/cmap_HighResolution_282355201_282614401_4FGL_J1225.0+0330_daily_bin166.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3524       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1428       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.319       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7817       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.2221       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.0606       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8319       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.341       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4575       1.0000         .10000E-03   10000.    
    22 'norm      '    10.560       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5511       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    11.597       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.6990       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .72051       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=   7098.874     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3277 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9534        .27948E-06** at limit **
   2  Prefactor     .10000E-03    27.005        .50258E-06** at limit **
   3  Prefactor     .10000E-03    14.612        .41802E-06** at limit **
   4  Prefactor     4.3513        8.6804        .70082E-07   -.47011E-05
   5  Prefactor     1.1039        32.283        .61860E-05    .57760E-04
   6  Prefactor     .10000E-03    4.3159       -.18224E-07** at limit **
   7  Prefactor     10.390        80.006       -.16010E-04    .91176E-05
   8  Prefactor     .10000E-03    21.154       -.12403E-06** at limit **
   9  Prefactor     .10000E-03    11.518        .49858E-06** at limit **
  10  Prefactor     .10000E-03    5.9174       -.11902E-07** at limit **
  11  Prefactor     .10000E-03    64.490        .35738E-06** at limit **
  12  Prefactor     2.7802        9.0322        .83485E-07   -.36957E-05
  13  norm          .10000E-03    .63263        .69777E-08** at limit **
  14  norm          5.2237        5.3686        .17588E-06   -.15101E-04
  15  Prefactor     .10000E-03    9.5229       -.56425E-06** at limit **
  16  norm          .10000E-03    33.520       -.85253E-06** at limit **
  17  Prefactor     .10000E-03    61.211       -.83591E-06** at limit **
  18  norm          9.0607        1.2689       -.22506E-07    .25811E-04
  19  Prefactor     7.8323        8.6902        .11733E-07   -.92733E-07
  20  Prefactor     19.341        27.482        .10747E-06   -.66823E-06
  21  Prefactor     2.4565        7.6271        .32763E-05   -.63115E-04
  22  norm          10.560        2.8059        .62099E-08    .24347E-05
  23  Prefactor     .10000E-03    2.7420        .34400E-07** at limit **
  24  Prefactor     .10000E-03    13.472        .15018E-06** at limit **
  25  Prefactor     3.5467        74.340        .87579E-06   -.25717E-05
  26  Prefactor     .10000E-03    25.226        .48912E-06** at limit **
  27  norm          11.595        24.416        .10296E-06   -.19019E-05
  28  Prefactor     .10000E-03    13.922       -.22601E-06** at limit **
  29  Normalizat    1.6988        .24537       -.10829E-06   -.30594E-04
  30  Prefactor     .72073        .18823       -.42133E-07   -.19097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.35134
  Prefactor  = 1.10389
  Prefactor  = 0.0001
  Prefactor  = 10.3897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.78021
  norm       = 0.0001
  norm       = 5.22368
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.06067
  Prefactor  = 7.83231
  Prefactor  = 19.3409
  Prefactor  = 2.45655
  norm       = 10.5598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.54673
  Prefactor  = 0.0001
  norm       = 11.5945
  Prefactor  = 0.0001
  Normalizat = 1.69878
  Prefactor  = 0.720732
 **********
 **   18 **HESSE 
 **********

 FCN=   7098.874     FROM HESSE     STATUS=OK           584 CALLS     3861 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3513        8.6725        .19307E-03   -1.5291    
   5  Prefactor     1.1039        33.261        .43444E-03   -1.5498    
   6  Prefactor     .10000E-03    4.3181        .17095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.390        80.189        .12473E-03   -1.5063    
   8  Prefactor     .10000E-03    21.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    65.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7802        9.0015        .24398E-03   -1.5374    
  13  norm          .10000E-03    .63313        .65407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2237        5.3632        .17590E-03   -1.5251    
  15  Prefactor     .10000E-03    9.5194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    33.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    61.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.0607        1.2745        .31213E-04   -1.5106    
  19  Prefactor     7.8323        8.6840        .14328E-03   -1.5148    
  20  Prefactor     19.341        27.509        .91073E-04   -1.4828    
  21  Prefactor     2.4565        7.6472        .13045E-02   -1.5394    
  22  norm          10.560        2.8068        .68956E-04   -1.5058    
  23  Prefactor     .10000E-03    2.7450        .13625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.5467        74.578        .21449E-03   -1.5331    
  26  Prefactor     .10000E-03    25.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          11.595        24.418        .11764E-03   -1.5027    
  28  Prefactor     .10000E-03    14.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.6988        .29448        .30017E-03   -.72336    
  30  Prefactor     .72073        .22415        .33968E-03   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04292e-11
Minuit parameter uncertainties:
  1  8.40318e-06
  2  1.98877e-05
  3  0.000121058
  4  8.67501
  5  12.1257
  6  7.88155e-07
  7  57.8356
  8  2.12451e-06
  9  1.49222e-05
  10  7.80571e-07
  11  0.000104816
  12  9.00593
  13  1.728e-07
  14  5.3637
  15  1.31737e-05
  16  2.66761e-05
  17  4.70975e-05
  18  1.27448
  19  8.68543
  20  27.5273
  21  7.65027
  22  2.80688
  23  7.90935e-07
  24  6.43578e-06
  25  32.5733
  26  2.60027e-05
  27  24.4391
  28  4.18462e-06
  29  0.294783
  30  0.22443
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  2.668e-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:  7.207e-01  2.244e-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.699e+00  2.948e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/605338/likelihoodResults_282355201_282614401_4FGL_J1225.0+0330_daily_bin166.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) = 7098.87430424
delta logL = -0.00014172552801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7098.87416277
delta logL = -2.52545760304e-07

Fit tolerance = 1e-08

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

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

 FCN=   7098.874     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      198 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    34.242        .90712E-02** at limit **
   2  alpha         2.4052        3.5386        .41205       -.27505E-05
   3  Normalizat    1.6988        .23628        .67865E-01   -.18895E-03
   4  Prefactor     .72074        .18461        .76726E-01    .12637E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010002
  alpha      = 2.40521
  Normalizat = 1.69877
  Prefactor  = 0.720737
 **********
 **   18 **HESSE 
 **********

 FCN=   7098.874     FROM HESSE     STATUS=OK            29 CALLS      227 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    33.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4052        3.5294        .16482       -.37924E-01
   3  Normalizat    1.6988        .28008        .30017E-03   -.72336    
   4  Prefactor     .72074        .21848        .33968E-03   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0777e-09
Minuit parameter uncertainties:
  1  0.00163017
  2  2.49866
  3  0.28034
  4  0.218737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605338': 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) = 7098.87416251
delta logL = 8.22183210403e-09

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.630e-03  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.405e+00  2.499e+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:  7.207e-01  2.187e-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.699e+00  2.803e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/605338/cmap_HighResolution_282355201_282614401_4FGL_J1225.0+0330_daily_bin166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-05', job_status='DONE', photon_flux_upper_limit='7.58e-08', time_completed='2021-09-05 13:57:34.444451', job_id='605338', GAL2='0.72', fit_tolerance='1e-08', EG2='1.70', EG='1.70', time_epoch_completed='1630875454.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='8.22e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='166' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:57:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 605338: <4FGL_J1225.0+0330_daily_bin166> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin166 186.252 3.5098 282355201 282614401 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 :                                   897.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

