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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin692
RA = 186.252, Dec = 3.5098
tmin = 418694401, tmax = 418953601
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='608240', job_status='RUN', time_executed='2021-09-05 13:51:04.132182', time_epoch_executed='1630875064.13' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608240

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608240/ft1_4FGL_J1225.0+0330_daily_bin692.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608240/ft2_4FGL_J1225.0+0330_daily_bin692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608240/ft1_4FGL_J1225.0+0330_daily_bin692.fits outfile=/scratch/kocevski/608240/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin692.fits ra=186.252 dec=3.5098 rad=12.0 tmin=418694401.0 tmax=418953601.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 5.23
user 4.92
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/608240/ft2_4FGL_J1225.0+0330_daily_bin692.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/608240/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin692.fits evtable="EVENTS" outfile="/scratch/kocevski/608240/ft1_filtered_4FGL_J1225.0+0330_daily_bin692.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608240/ft1_filtered_4FGL_J1225.0+0330_daily_bin692.fits evtable="EVENTS" scfile=/scratch/kocevski/608240/ft2_4FGL_J1225.0+0330_daily_bin692.fits sctable="SC_DATA" expcube=/scratch/kocevski/608240/ltcube_418694401_418953601_4FGL_J1225.0+0330_daily_bin692.fits outfile=/scratch/kocevski/608240/expmap_418694401_418953601_4FGL_J1225.0+0330_daily_bin692.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/608240/ltcube_418694401_418953601_4FGL_J1225.0+0330_daily_bin692.fits
.....................!
real 191.05
user 184.82
sys 5.86

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/608240/ft1_filtered_4FGL_J1225.0+0330_daily_bin692.fits scfile=/scratch/kocevski/608240/ft2_4FGL_J1225.0+0330_daily_bin692.fits outfile=/scratch/kocevski/608240/cmap_418694401_418953601_4FGL_J1225.0+0330_daily_bin692.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=186.252 yref=3.5098 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.185       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6716       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12223E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.936       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.102       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.737       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.271       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.183       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.2738       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.461       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .64110E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .83274       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5378       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6807       1.0000         .10000E-03   10000.    
    22 'norm      '    .79683       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    69.265       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2205       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0656       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=   5404.473     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3919 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.183        25.779       -.64927E-07    .16049E-04
   2  Prefactor     .10000E-03    51.107       -.22078E-06** at limit **
   3  Prefactor     .10000E-03    5.7768        .17931E-06** at limit **
   4  Prefactor     .10000E-03    9.3893       -.69555E-06** at limit **
   5  Prefactor     .10000E-03    8.7760        .21754E-06** at limit **
   6  Prefactor     1.6588        70.656        .36172E-05   -.22636E-04
   7  Prefactor     .10000E-03    185.75        .14548E-05** at limit **
   8  Prefactor     45.945        46.170       -.33412E-06    .24052E-05
   9  Prefactor     19.041        62.327       -.23996E-06    .12417E-04
  10  Prefactor     17.736        19.885       -.16584E-06    .16003E-04
  11  Prefactor     25.269        25.296       -.22800E-07    .88510E-05
  12  Prefactor     10.184        14.031       -.33456E-07    .17077E-04
  13  norm          .10000E-03    .82308        .22093E-07** at limit **
  14  norm          8.2706        5.7351       -.10640E-06    .26108E-04
  15  Prefactor     .10000E-03    10.505        .43809E-07** at limit **
  16  norm          16.473        46.740        .19561E-06    .84374E-06
  17  Prefactor     .10000E-03    292.73        .74849E-06** at limit **
  18  norm          .83223        .82409       -.37056E-07   -.14481E-03
  19  Prefactor     4.5373        13.192        .43841E-06   -.19726E-04
  20  Prefactor     .10000E-03    21.423        .31159E-06** at limit **
  21  Prefactor     3.6863        14.097        .29144E-06    .10930E-04
  22  norm          .79693        1.2262        .58965E-06    .55013E-03
  23  Prefactor     .10000E-03    6.5504       -.10827E-05** at limit **
  24  Prefactor     .10000E-03    12.825        .25969E-07** at limit **
  25  Prefactor     69.033        84.458        .14526E-07   -.63177E-05
  26  Prefactor     .10000E-03    22.307        .18917E-06** at limit **
  27  norm          .10000E-03    16.197       -.43718E-06** at limit **
  28  Prefactor     .10000E-03    9.4235        .36389E-06** at limit **
  29  Normalizat    1.2211        .26055       -.31017E-06   -.29784E-05
  30  Prefactor     1.0650        .20256       -.65358E-06    .52132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.65885
  Prefactor  = 0.0001
  Prefactor  = 45.9455
  Prefactor  = 19.041
  Prefactor  = 17.7365
  Prefactor  = 25.2693
  Prefactor  = 10.1838
  norm       = 0.0001
  norm       = 8.2706
  Prefactor  = 0.0001
  norm       = 16.4727
  Prefactor  = 0.0001
  norm       = 0.832229
  Prefactor  = 4.53734
  Prefactor  = 0.0001
  Prefactor  = 3.68627
  norm       = 0.796931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.0327
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22114
  Prefactor  = 1.06501
 **********
 **   18 **HESSE 
 **********

 FCN=   5404.473     FROM HESSE     STATUS=OK           588 CALLS     4507 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.183        25.776        .72926E-04   -1.4609    
   2  Prefactor     .10000E-03    51.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7869        .17253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.7841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6588        69.888        .32603E-03   -1.5450    
   7  Prefactor     .10000E-03    186.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.945        46.035        .59158E-04   -1.4351    
   9  Prefactor     19.041        62.806        .91639E-04   -1.4835    
  10  Prefactor     17.736        19.856        .95099E-04   -1.4865    
  11  Prefactor     25.269        25.291        .79686E-04   -1.4702    
  12  Prefactor     10.184        13.958        .12556E-03   -1.5070    
  13  norm          .10000E-03    .82337        .65089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.2706        5.7114        .11901E-03   -1.5133    
  15  Prefactor     .10000E-03    10.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.473        46.902        .98718E-04   -1.4896    
  17  Prefactor     .10000E-03    293.97        .21028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .83223        .77943        .56534E-03   -1.5526    
  19  Prefactor     4.5373        13.166        .18898E-03   -1.5282    
  20  Prefactor     .10000E-03    21.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.6863        14.010        .21052E-03   -1.5324    
  22  norm          .79693        1.1912        .11234E-02   -1.5529    
  23  Prefactor     .10000E-03    6.3695        .18053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     69.033        84.619        .24115E-03   -1.4044    
  26  Prefactor     .10000E-03    22.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    16.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.4485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2211        .31648        .31095E-03   -.85952    
  30  Prefactor     1.0650        .24402        .26870E-03   -.90593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00014e-09
Minuit parameter uncertainties:
  1  25.7857
  2  5.02033e-05
  3  7.02804e-06
  4  6.70405e-05
  5  1.15983e-05
  6  21.5607
  7  0.000320789
  8  46.0709
  9  63.0256
  10  19.8629
  11  25.3013
  12  13.9622
  13  5.91171e-08
  14  5.71182
  15  2.03519e-07
  16  47.0068
  17  0.000306969
  18  0.779444
  19  13.1748
  20  3.03669e-05
  21  14.0221
  22  1.19122
  23  7.48594e-05
  24  3.40428e-06
  25  84.7669
  26  2.11988e-05
  27  5.04887e-05
  28  2.48505e-05
  29  0.316981
  30  0.244277
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.647e+01  4.701e+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:  1.065e+00  2.443e-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.221e+00  3.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/608240/likelihoodResults_418694401_418953601_4FGL_J1225.0+0330_daily_bin692.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) = 5404.45894961
delta logL = 0.0140649250179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5404.45742295
delta logL = 0.0155915851128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.400       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7955       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0671       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=   5404.457     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      272 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.391        45.704        .10555E-03    .56117E-04
   2  alpha         2.7963        3.7016        .51975E-01    .42139E-05
   3  Normalizat    1.2162        .29410        .31144E-03    .17828E-03
   4  Prefactor     1.0672        .23881        .26844E-03    .16985E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.3913
  alpha      = 2.79635
  Normalizat = 1.21616
  Prefactor  = 1.06716
 **********
 **   18 **HESSE 
 **********

 FCN=   5404.457     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.391        40.369        .42220E-05   -1.4949    
   2  alpha         2.7963        2.0718        .20790E-02    .11882    
   3  Normalizat    1.2162        .29312        .62288E-04   -.86105    
   4  Prefactor     1.0672        .23843        .53687E-04   -.90523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19209e-11
Minuit parameter uncertainties:
  1  40.446
  2  2.45106
  3  0.293516
  4  0.238664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608240': 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) = 5404.45742268
delta logL = 0.0155918613282

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.439e+01  4.045e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.796e+00  2.451e+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.067e+00  2.387e-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.216e+00  2.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/608240/cmap_HighResolution_418694401_418953601_4FGL_J1225.0+0330_daily_bin692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-05', job_status='DONE', photon_flux_upper_limit='9.82e-08', time_completed='2021-09-05 14:04:31.033503', job_id='608240', GAL2='1.07', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630875871.03', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.56e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='692' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:04:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 608240: <4FGL_J1225.0+0330_daily_bin692> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin692> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:50:40 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:50:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:50:42 2021
Terminated at Sun Sep  5 14:04:31 2021
Results reported at Sun Sep  5 14:04:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin692 186.252 3.5098 418694401 418953601 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 :                                   796.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

