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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin430
RA = 186.252, Dec = 3.5098
tmin = 350784001, tmax = 351043201
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='606600', job_status='RUN', time_executed='2021-09-05 13:48:26.563845', time_epoch_executed='1630874906.56' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606600

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606600/ft1_4FGL_J1225.0+0330_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606600/ft2_4FGL_J1225.0+0330_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606600/ft1_4FGL_J1225.0+0330_daily_bin430.fits outfile=/scratch/kocevski/606600/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin430.fits ra=186.252 dec=3.5098 rad=12.0 tmin=350784001.0 tmax=351043201.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.39
user 3.13
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606600/ft1_filtered_4FGL_J1225.0+0330_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/606600/ft2_4FGL_J1225.0+0330_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/606600/ltcube_350784001_351043201_4FGL_J1225.0+0330_daily_bin430.fits outfile=/scratch/kocevski/606600/expmap_350784001_351043201_4FGL_J1225.0+0330_daily_bin430.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/606600/ltcube_350784001_351043201_4FGL_J1225.0+0330_daily_bin430.fits
.....................!
real 191.23
user 185.64
sys 5.22

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/606600/ft1_filtered_4FGL_J1225.0+0330_daily_bin430.fits scfile=/scratch/kocevski/606600/ft2_4FGL_J1225.0+0330_daily_bin430.fits outfile=/scratch/kocevski/606600/cmap_350784001_351043201_4FGL_J1225.0+0330_daily_bin430.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606600/ft1_filtered_4FGL_J1225.0+0330_daily_bin430.fits scfile=/scratch/kocevski/606600/ft2_4FGL_J1225.0+0330_daily_bin430.fits outfile=/scratch/kocevski/606600/cmap_HighResolution_350784001_351043201_4FGL_J1225.0+0330_daily_bin430.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3126       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.513       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    183.26       1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.934       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.965       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4519       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1568       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    114.78       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0748       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3480       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0928       1.0000         .10000E-03   10000.    
    22 'norm      '    7.7676       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4627       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.4993       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.488       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.6179       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .72968       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96575       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=   5624.350     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3896 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.276       -.10195E-05** at limit **
   2  Prefactor     .10000E-03    54.949        .24514E-05** at limit **
   3  Prefactor     .10000E-03    4.3732        .12853E-07** at limit **
   4  Prefactor     7.3138        8.9302        .22908E-05   -.35984E-03
   5  Prefactor     13.194        17.745        .49311E-07    .23623E-05
   6  Prefactor     17.514        19.373        .15612E-06   -.80919E-05
   7  Prefactor     .10002E-03    62.097       -.72791E-05** at limit **
   8  Prefactor     183.26        87.393        .81915E-07   -.49243E-06
   9  Prefactor     66.931        47.942       -.11137E-05   -.72657E-04
  10  Prefactor     .10000E-03    31.146       -.10108E-05** at limit **
  11  Prefactor     16.965        23.482       -.14574E-07   -.12683E-04
  12  Prefactor     .10000E-03    11.361       -.54583E-07** at limit **
  13  norm          6.4528        3.0008        .29834E-07    .22951E-04
  14  norm          2.1535        3.7186        .55534E-06   -.16602E-03
  15  Prefactor     .10000E-03    16.008       -.95635E-06** at limit **
  16  norm          .10001E-03    49.669        .47772E-05** at limit **
  17  Prefactor     114.79        109.74        .14644E-05    .58356E-04
  18  norm          2.0747        .68959       -.37124E-08   -.40977E-03
  19  Prefactor     1.3488        14.003        .24343E-05   -.81899E-04
  20  Prefactor     .10000E-03    8.4194        .94669E-06** at limit **
  21  Prefactor     7.0931        6.9222       -.37453E-06    .97523E-04
  22  norm          7.7677        2.2452        .17469E-07   -.88982E-04
  23  Prefactor     2.4634        6.4480        .84494E-06   -.68871E-04
  24  Prefactor     7.4999        18.387        .21772E-06   -.80398E-05
  25  Prefactor     .10000E-03    8.1202       -.59073E-06** at limit **
  26  Prefactor     20.491        49.976       -.31673E-05    .98268E-05
  27  norm          .10000E-03    13.179        .14948E-05** at limit **
  28  Prefactor     7.6182        12.246        .30940E-05   -.29496E-03
  29  Normalizat    .72963        .21397       -.10655E-05   -.41452E-04
  30  Prefactor     .96577        .16857       -.41211E-06   -.59552E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 7.31379
  Prefactor  = 13.1941
  Prefactor  = 17.5144
  Prefactor  = 0.000100024
  Prefactor  = 183.261
  Prefactor  = 66.931
  Prefactor  = 0.0001
  Prefactor  = 16.9648
  Prefactor  = 0.0001
  norm       = 6.45276
  norm       = 2.1535
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 114.793
  norm       = 2.07471
  Prefactor  = 1.34876
  Prefactor  = 0.0001
  Prefactor  = 7.09312
  norm       = 7.76766
  Prefactor  = 2.46338
  Prefactor  = 7.49985
  Prefactor  = 0.0001
  Prefactor  = 20.4907
  norm       = 0.000100001
  Prefactor  = 7.61823
  Normalizat = 0.729628
  Prefactor  = 0.965768
 **********
 **   18 **HESSE 
 **********

 FCN=   5624.350     FROM HESSE     STATUS=OK           588 CALLS     4484 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    55.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.3827        .15315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3138        9.0405        .74161E-03   -1.5167    
   5  Prefactor     13.194        17.843        .11022E-03   -1.4981    
   6  Prefactor     17.514        19.375        .95707E-04   -1.4871    
   7  Prefactor     .10002E-03    65.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     183.26        87.391        .29822E-04   -1.2992    
   9  Prefactor     66.931        48.123        .49058E-04   -1.4070    
  10  Prefactor     .10000E-03    31.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.965        23.436        .97240E-04   -1.4884    
  12  Prefactor     .10000E-03    11.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4528        2.9967        .85242E-04   -1.5200    
  14  norm          2.1535        3.6804        .16546E-03   -1.5414    
  15  Prefactor     .10000E-03    16.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    51.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     114.79        110.07        .18776E-03   -1.3561    
  18  norm          2.0747        .68608        .31654E-04   -1.5420    
  19  Prefactor     1.3488        14.138        .37700E-03   -1.5476    
  20  Prefactor     .10000E-03    8.4891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.0931        6.9232        .75312E-03   -1.5175    
  22  norm          7.7677        2.2458        .56700E-04   -1.5150    
  23  Prefactor     2.4634        6.4372        .26060E-03   -1.5394    
  24  Prefactor     7.4999        18.385        .14645E-03   -1.5160    
  25  Prefactor     .10000E-03    8.1465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     20.491        50.126        .88489E-04   -1.4802    
  27  norm          .10000E-03    13.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     7.6182        12.449        .72648E-03   -1.5156    
  29  Normalizat    .72963        .24648        .31478E-03   -1.0273    
  30  Prefactor     .96577        .19496        .23327E-03   -.93879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26361e-09
Minuit parameter uncertainties:
  1  0.000138508
  2  0.000798081
  3  3.6317e-06
  4  9.04214
  5  17.8498
  6  19.3816
  7  0.00249855
  8  87.4532
  9  48.151
  10  0.000218625
  11  23.4489
  12  5.22572e-06
  13  2.99675
  14  3.68083
  15  0.000171035
  16  0.001415
  17  110.262
  18  0.686087
  19  8.73583
  20  0.00011673
  21  6.92397
  22  2.24585
  23  6.43897
  24  18.3989
  25  7.20844e-05
  26  50.2295
  27  0.000230897
  28  12.4533
  29  0.246854
  30  0.1951
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.415e-03  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.658e-01  1.951e-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.296e-01  2.469e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606600/likelihoodResults_350784001_351043201_4FGL_J1225.0+0330_daily_bin430.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) = 5624.35009447
delta logL = -9.27564406084e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5624.35000178
delta logL = -6.10989445704e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3817       1.0000          .0000       5.0000    
     3 'Normalizat'    .72964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96577       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=   5624.350     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      189 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    65.068        .90712E-02** at limit **
   2  alpha         2.4401        3.5852        .41210       -.62267E-05
   3  Normalizat    .72962        .19462        .71127E-01   -.29667E-03
   4  Prefactor     .96577        .16507        .45838E-01    .51450E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.44008
  Normalizat = 0.729621
  Prefactor  = 0.965773
 **********
 **   18 **HESSE 
 **********

 FCN=   5624.350     FROM HESSE     STATUS=OK            29 CALLS      218 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    56.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4401        3.5386        .16484       -.23969E-01
   3  Normalizat    .72962        .22204        .31478E-03   -1.0274    
   4  Prefactor     .96577        .18865        .23327E-03   -.93879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58442e-10
Minuit parameter uncertainties:
  1  0.000522319
  2  2.50264
  3  0.222313
  4  0.188775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606600': 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) = 5624.35000161
delta logL = 1.04575519799e-07

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  5.223e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.440e+00  2.503e+00  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.658e-01  1.888e-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.296e-01  2.223e-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/606600/cmap_HighResolution_350784001_351043201_4FGL_J1225.0+0330_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-05', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-09-05 14:01:54.648995', job_id='606600', GAL2='0.97', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630875714.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='430' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:01:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 606600: <4FGL_J1225.0+0330_daily_bin430> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin430> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:45:41 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:45:43 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:43 2021
Terminated at Sun Sep  5 14:01:55 2021
Results reported at Sun Sep  5 14:01:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin430 186.252 3.5098 350784001 351043201 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 :                                   806.27 sec.
    Max Memory :                                 1060 MB
    Average Memory :                             259.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            974 sec.

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

