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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin215
RA = 186.252, Dec = 3.5098
tmin = 295056001, tmax = 295315201
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='605448', job_status='RUN', time_executed='2021-09-05 13:44:40.545456', time_epoch_executed='1630874680.55' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605448/ft1_4FGL_J1225.0+0330_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605448/ft2_4FGL_J1225.0+0330_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605448/ft1_4FGL_J1225.0+0330_daily_bin215.fits outfile=/scratch/kocevski/605448/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin215.fits ra=186.252 dec=3.5098 rad=12.0 tmin=295056001.0 tmax=295315201.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 2.60
user 2.38
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/605448/ft2_4FGL_J1225.0+0330_daily_bin215.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/605448/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin215.fits evtable="EVENTS" outfile="/scratch/kocevski/605448/ft1_filtered_4FGL_J1225.0+0330_daily_bin215.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605448/ft1_filtered_4FGL_J1225.0+0330_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/605448/ft2_4FGL_J1225.0+0330_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/605448/ltcube_295056001_295315201_4FGL_J1225.0+0330_daily_bin215.fits outfile=/scratch/kocevski/605448/expmap_295056001_295315201_4FGL_J1225.0+0330_daily_bin215.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/605448/ltcube_295056001_295315201_4FGL_J1225.0+0330_daily_bin215.fits
.....................!
real 190.34
user 184.55
sys 5.48

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/605448/ft1_filtered_4FGL_J1225.0+0330_daily_bin215.fits scfile=/scratch/kocevski/605448/ft2_4FGL_J1225.0+0330_daily_bin215.fits outfile=/scratch/kocevski/605448/cmap_295056001_295315201_4FGL_J1225.0+0330_daily_bin215.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605448/ft1_filtered_4FGL_J1225.0+0330_daily_bin215.fits scfile=/scratch/kocevski/605448/ft2_4FGL_J1225.0+0330_daily_bin215.fits outfile=/scratch/kocevski/605448/cmap_HighResolution_295056001_295315201_4FGL_J1225.0+0330_daily_bin215.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.927       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.952       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.805       1.0000         .10000E-03   10000.    
     8 'Prefactor '    86.723       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.066       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10731E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    21.610       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.588       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9184       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.931       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3563       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.8846       1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.519       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.648       1.0000         .10000E-03   10000.    
    27 'norm      '    7.7628       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.3746       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78774       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99069       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=   5438.375     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     3897 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3878        .32776E-07** at limit **
   2  Prefactor     .10000E-03    58.354       -.70083E-06** at limit **
   3  Prefactor     27.924        14.585        .39902E-05   -.37587E-05
   4  Prefactor     2.4798        9.7156       -.46249E-06   -.22891E-03
   5  Prefactor     16.950        18.981       -.77568E-07   -.19068E-04
   6  Prefactor     .10000E-03    20.752       -.42061E-05** at limit **
   7  Prefactor     56.803        68.480        .49641E-06   -.24998E-06
   8  Prefactor     86.722        57.410       -.20120E-05    .35216E-04
   9  Prefactor     .10000E-03    29.494        .98652E-06** at limit **
  10  Prefactor     .10000E-03    15.557        .95188E-05** at limit **
  11  Prefactor     12.054        27.535       -.16829E-04   -.18942E-04
  12  Prefactor     .10000E-03    16.430       -.19990E-04** at limit **
  13  norm          .10000E-03    .93202        .71335E-07** at limit **
  14  norm          .10000E-03    4.1919        .64719E-06** at limit **
  15  Prefactor     .10000E-03    13.343       -.50297E-06** at limit **
  16  norm          21.608        38.040        .68283E-05    .11440E-04
  17  Prefactor     11.246        159.11       -.26658E-04   -.53594E-06
  18  norm          3.9183        .84619       -.29576E-07    .21160E-02
  19  Prefactor     .10000E-03    5.3258       -.15397E-06** at limit **
  20  Prefactor     42.931        31.349        .34529E-05    .49271E-06
  21  Prefactor     .10000E-03    7.8763        .20474E-07** at limit **
  22  norm          1.3566        1.0308       -.49648E-07    .35566E-04
  23  Prefactor     3.8866        7.3760       -.11369E-05   -.24726E-03
  24  Prefactor     26.486        32.270        .14251E-04    .73577E-05
  25  Prefactor     .10000E-03    18.086        .16018E-04** at limit **
  26  Prefactor     28.631        58.683        .14471E-04    .98799E-05
  27  norm          7.7614        19.975       -.59387E-05   -.23579E-04
  28  Prefactor     5.3698        11.787       -.44011E-05   -.14443E-03
  29  Normalizat    .78778        .21584       -.17408E-05    .16831E-03
  30  Prefactor     .99075        .17115        .43944E-06    .13430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.9243
  Prefactor  = 2.47979
  Prefactor  = 16.9504
  Prefactor  = 0.0001
  Prefactor  = 56.8032
  Prefactor  = 86.7215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0537
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 21.6075
  Prefactor  = 11.246
  norm       = 3.91835
  Prefactor  = 0.0001
  Prefactor  = 42.9313
  Prefactor  = 0.0001
  norm       = 1.35659
  Prefactor  = 3.88656
  Prefactor  = 26.4862
  Prefactor  = 0.0001
  Prefactor  = 28.6306
  norm       = 7.7614
  Prefactor  = 5.36979
  Normalizat = 0.787778
  Prefactor  = 0.990753
 **********
 **   18 **HESSE 
 **********

 FCN=   5438.375     FROM HESSE     STATUS=OK           584 CALLS     4481 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.924        14.589        .75810E-04   -1.4651    
   4  Prefactor     2.4798        9.7081        .25949E-03   -1.5393    
   5  Prefactor     16.950        18.990        .97276E-04   -1.4884    
   6  Prefactor     .10000E-03    21.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     56.803        68.491        .53226E-04   -1.4199    
   8  Prefactor     86.722        57.380        .43141E-04   -1.3843    
   9  Prefactor     .10000E-03    29.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.054        27.563        .11532E-03   -1.5013    
  12  Prefactor     .10000E-03    16.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .94274        .69502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.3284        .29256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.608        38.129        .86162E-04   -1.4778    
  17  Prefactor     11.246        159.56        .11769E-03   -1.5037    
  18  norm          3.9183        .85236        .28268E-04   -1.5312    
  19  Prefactor     .10000E-03    5.3333        .16612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     42.931        31.408        .61184E-04   -1.4397    
  21  Prefactor     .10000E-03    7.9455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3566        1.0350        .63123E-04   -1.5475    
  23  Prefactor     3.8866        7.3606        .20472E-03   -1.5314    
  24  Prefactor     26.486        32.225        .77792E-04   -1.4678    
  25  Prefactor     .10000E-03    18.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     28.631        58.375        .74852E-04   -1.4637    
  27  norm          7.7614        19.950        .14392E-03   -1.5151    
  28  Prefactor     5.3698        11.730        .17335E-03   -1.5244    
  29  Normalizat    .78778        .24991        .30800E-03   -1.0052    
  30  Prefactor     .99075        .19870        .23265E-03   -.93038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50853e-10
Minuit parameter uncertainties:
  1  5.57724e-06
  2  3.90259e-05
  3  14.5908
  4  9.71426
  5  18.9971
  6  0.000132189
  7  68.586
  8  57.417
  9  0.000115983
  10  3.67406e-05
  11  27.5917
  12  0.000332266
  13  7.85933e-06
  14  0.000131804
  15  1.75585e-05
  16  38.1719
  17  84.9952
  18  0.852366
  19  2.54367e-05
  20  31.4204
  21  1.12608e-05
  22  1.03499
  23  7.36227
  24  32.2461
  25  2.93357e-06
  26  58.4921
  27  19.9673
  28  11.735
  29  0.25027
  30  0.198849
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  2.161e+01  3.817e+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.908e-01  1.988e-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:  7.878e-01  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/605448/likelihoodResults_295056001_295315201_4FGL_J1225.0+0330_daily_bin215.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) = 5437.94182213
delta logL = 0.433612916902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5437.92142826
delta logL = 0.454006784435

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.537       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9102       1.0000          .0000       5.0000    
     3 'Normalizat'    .73640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0144       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=   5437.921     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      255 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.472        224.88        .30857E-02   -.16233E-03
   2  alpha         3.9155        4.3526        .48157        .24222E-04
   3  Normalizat    .73537        .69108E-01    .71630E-01   -.16779E-03
   4  Prefactor     1.0150        .51081E-01    .42750E-01   -.22435E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4722
  alpha      = 3.9155
  Normalizat = 0.735375
  Prefactor  = 1.01505
 **********
 **   18 **HESSE 
 **********

 FCN=   5437.921     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.472        67.423        .12343E-03   -1.5061    
   2  alpha         3.9155        4.3068        .18364E-01    .60189    
   3  Normalizat    .73537        .26088        .31702E-03   -1.0251    
   4  Prefactor     1.0150        .20917        .22982E-03   -.92230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87002e-10
Minuit parameter uncertainties:
  1  53.2313
  2  3.45388
  3  0.261327
  4  0.209335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605448': 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) = 5437.92141556
delta logL = 0.454019489552

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.047e+01  5.323e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  3.915e+00  3.454e+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:  1.015e+00  2.093e-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:  7.354e-01  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 186.252 3.510
Photon Index (Free Index): 3.92 +/- 3.45
Photon Flux (Free Index): 7.44e-08 +/- 1.07e-07
Energy Flux (Free Index): 1.40e-05 +/- 1.35e-05

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/605448/cmap_HighResolution_295056001_295315201_4FGL_J1225.0+0330_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-05', comment='SUCCESS', energy_flux2='1.40e-05', dlogl='4.54e-01', photon_flux2='7.44e-08', job_status='DONE', time_completed='2021-09-05 13:57:50.577270', photon_index_error2='3.45', photon_index2='3.92', ts='0.51', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='8.78e-08', energy_flux_error2='1.35e-05', EG='0.79', time_epoch_completed='1630875470.58', return_code='0', job_id='605448', GAL2='1.02', EG2='0.74', return_code2='0', photon_flux_error2='1.07e-07', ts2='1.52', photon_index='2.40' WHERE bin_id='215' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:57:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 605448: <4FGL_J1225.0+0330_daily_bin215> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin215 186.252 3.5098 295056001 295315201 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 :                                   787.00 sec.
    Max Memory :                                 1021 MB
    Average Memory :                             256.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

