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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin276
RA = 186.252, Dec = 3.5098
tmin = 310867201, tmax = 311126401
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='606379', job_status='RUN', time_executed='2021-09-05 13:45:36.352097', time_epoch_executed='1630874736.35' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606379/ft1_4FGL_J1225.0+0330_daily_bin276.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606379/ft2_4FGL_J1225.0+0330_daily_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606379/ft1_4FGL_J1225.0+0330_daily_bin276.fits outfile=/scratch/kocevski/606379/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin276.fits ra=186.252 dec=3.5098 rad=12.0 tmin=310867201.0 tmax=311126401.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.52
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606379/ft1_filtered_4FGL_J1225.0+0330_daily_bin276.fits" evtable="EVENTS" scfile=/scratch/kocevski/606379/ft2_4FGL_J1225.0+0330_daily_bin276.fits sctable="SC_DATA" outfile=/scratch/kocevski/606379/ltcube_310867201_311126401_4FGL_J1225.0+0330_daily_bin276.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/606379/ft2_4FGL_J1225.0+0330_daily_bin276.fits
.....................!
real 12.24
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606379/ft1_filtered_4FGL_J1225.0+0330_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/606379/ft2_4FGL_J1225.0+0330_daily_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/606379/ltcube_310867201_311126401_4FGL_J1225.0+0330_daily_bin276.fits outfile=/scratch/kocevski/606379/expmap_310867201_311126401_4FGL_J1225.0+0330_daily_bin276.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/606379/ltcube_310867201_311126401_4FGL_J1225.0+0330_daily_bin276.fits
.....................!
real 192.25
user 186.64
sys 4.60

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/606379/ft1_filtered_4FGL_J1225.0+0330_daily_bin276.fits scfile=/scratch/kocevski/606379/ft2_4FGL_J1225.0+0330_daily_bin276.fits outfile=/scratch/kocevski/606379/cmap_310867201_311126401_4FGL_J1225.0+0330_daily_bin276.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606379/ft1_filtered_4FGL_J1225.0+0330_daily_bin276.fits scfile=/scratch/kocevski/606379/ft2_4FGL_J1225.0+0330_daily_bin276.fits outfile=/scratch/kocevski/606379/cmap_HighResolution_310867201_311126401_4FGL_J1225.0+0330_daily_bin276.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.60
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.319       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.239       1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.098       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.120       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7005       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.007       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.5772       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    39.014       1.0000         .10000E-03   10000.    
    17 'Prefactor '    137.46       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5625       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.798       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.677       1.0000         .10000E-03   10000.    
    22 'norm      '    2.5226       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2040       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.033       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.587       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .68863       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1631       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=   6971.801     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3917 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.008        .44223E-06** at limit **
   2  Prefactor     .10000E-03    28.536       -.16101E-06** at limit **
   3  Prefactor     26.175        13.080       -.17964E-06   -.53844E-04
   4  Prefactor     .10000E-03    8.2890        .14051E-06** at limit **
   5  Prefactor     1.6705        27.411        .78309E-05   -.55640E-05
   6  Prefactor     35.324        17.427        .45266E-06    .51388E-04
   7  Prefactor     10.368        159.02        .10436E-05    .80624E-05
   8  Prefactor     41.103        39.150        .25155E-06    .11020E-04
   9  Prefactor     31.130        33.616        .12130E-05    .18996E-04
  10  Prefactor     .10000E-03    30.417        .32790E-06** at limit **
  11  Prefactor     9.7043        28.522        .61767E-06    .82105E-05
  12  Prefactor     15.010        12.351        .15027E-05    .34206E-03
  13  norm          .10000E-03    1.5518       -.61607E-06** at limit **
  14  norm          8.5794        5.4179        .14064E-06    .36372E-04
  15  Prefactor     .10000E-03    23.336       -.17585E-06** at limit **
  16  norm          39.007        40.681       -.51559E-06    .34305E-05
  17  Prefactor     137.48        124.00        .91927E-06    .63577E-05
  18  norm          1.5623        .72444        .18236E-07    .30890E-03
  19  Prefactor     15.802        12.434        .10285E-06    .58274E-05
  20  Prefactor     .10000E-03    12.602       -.72425E-06** at limit **
  21  Prefactor     12.677        9.1583        .51217E-07    .67303E-04
  22  norm          2.5219        1.7562        .88809E-07    .18100E-04
  23  Prefactor     .10000E-03    9.0851       -.57287E-06** at limit **
  24  Prefactor     1.5958        153.60        .24239E-05    .44562E-05
  25  Prefactor     .10000E-03    11.225        .50372E-06** at limit **
  26  Prefactor     10.033        36.447        .32004E-06    .29664E-05
  27  norm          .10000E-03    26.718       -.78834E-06** at limit **
  28  Prefactor     16.593        15.537        .45537E-06    .27630E-05
  29  Normalizat    .68831        .22913       -.35413E-05    .78537E-04
  30  Prefactor     1.1632        .17148        .12002E-05   -.21109E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.175
  Prefactor  = 0.0001
  Prefactor  = 1.67051
  Prefactor  = 35.3235
  Prefactor  = 10.3678
  Prefactor  = 41.1027
  Prefactor  = 31.13
  Prefactor  = 0.0001
  Prefactor  = 9.70426
  Prefactor  = 15.0102
  norm       = 0.0001
  norm       = 8.57943
  Prefactor  = 0.0001
  norm       = 39.0066
  Prefactor  = 137.476
  norm       = 1.56231
  Prefactor  = 15.8017
  Prefactor  = 0.0001
  Prefactor  = 12.6769
  norm       = 2.52185
  Prefactor  = 0.0001
  Prefactor  = 1.59576
  Prefactor  = 0.0001
  Prefactor  = 10.0328
  norm       = 0.0001
  Prefactor  = 16.5933
  Normalizat = 0.688312
  Prefactor  = 1.16318
 **********
 **   18 **HESSE 
 **********

 FCN=   6971.801     FROM HESSE     STATUS=OK           594 CALLS     4511 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.175        13.089        .78301E-04   -1.4684    
   4  Prefactor     .10000E-03    8.6044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6705        26.555        .32600E-03   -1.5449    
   6  Prefactor     35.324        17.415        .67432E-04   -1.4519    
   7  Prefactor     10.368        158.97        .12522E-03   -1.5064    
   8  Prefactor     41.103        39.158        .62528E-04   -1.4425    
   9  Prefactor     31.130        33.579        .71825E-04   -1.4592    
  10  Prefactor     .10000E-03    30.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.7043        28.474        .12866E-03   -1.5085    
  12  Prefactor     15.010        12.054        .51695E-03   -1.4933    
  13  norm          .10000E-03    2.5062        .19084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.5794        5.3961        .12196E-03   -1.5122    
  15  Prefactor     .10000E-03    23.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          39.007        40.711        .64171E-04   -1.4458    
  17  Prefactor     137.48        124.00        .17177E-03   -1.3358    
  18  norm          1.5623        .71250        .40966E-04   -1.5458    
  19  Prefactor     15.802        12.431        .10077E-03   -1.4913    
  20  Prefactor     .10000E-03    12.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.677        9.1486        .11250E-03   -1.4996    
  22  norm          2.5219        1.7418        .85664E-04   -1.5390    
  23  Prefactor     .10000E-03    9.3013        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.5958        155.27        .41322E-03   -1.5455    
  25  Prefactor     .10000E-03    11.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.033        36.377        .12651E-03   -1.5074    
  27  norm          .10000E-03    26.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     16.593        15.527        .98342E-04   -1.4893    
  29  Normalizat    .68831        .25686        .36015E-03   -1.0436    
  30  Prefactor     1.1632        .19689        .23446E-03   -.87472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5227e-10
Minuit parameter uncertainties:
  1  2.34849e-05
  2  4.40483e-06
  3  13.0908
  4  2.48651e-06
  5  13.3275
  6  17.4179
  7  81.4535
  8  39.1828
  9  33.5997
  10  3.41717e-05
  11  28.5135
  12  12.0555
  13  3.98046e-05
  14  5.39644
  15  4.65435e-06
  16  40.7405
  17  124.233
  18  0.712508
  19  12.4328
  20  1.25629e-05
  21  9.14963
  22  1.74179
  23  1.78206e-05
  24  31.5656
  25  1.60837e-05
  26  36.4573
  27  3.44835e-07
  28  15.5305
  29  0.257305
  30  0.197013
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  3.901e+01  4.074e+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.163e+00  1.970e-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:  6.883e-01  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.45
Ra Dec: 186.252 3.510
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 2.82e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/606379/likelihoodResults_310867201_311126401_4FGL_J1225.0+0330_daily_bin276.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) = 6971.6748123
delta logL = 0.126546245845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6971.66853447
delta logL = 0.132824081405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.183       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1615       1.0000          .0000       5.0000    
     3 'Normalizat'    .65445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1775       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=   6971.669     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      292 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.171        40.150        .70632E-04   -.29886E-03
   2  alpha         3.1625        1.2672        .17959E-01   -.76014E-04
   3  Normalizat    .65427        .24591        .36811E-03   -.64365E-03
   4  Prefactor     1.1777        .19692        .23296E-03   -.13989E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 32.1714
  alpha      = 3.16246
  Normalizat = 0.654274
  Prefactor  = 1.17774
 **********
 **   18 **HESSE 
 **********

 FCN=   6971.669     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.171        36.026        .14126E-04   -1.4573    
   2  alpha         3.1625        1.1445        .71837E-03    .26819    
   3  Normalizat    .65427        .24347        .14724E-04   -1.0573    
   4  Prefactor     1.1777        .19607        .46591E-04   -.87019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47115e-09
Minuit parameter uncertainties:
  1  36.0508
  2  1.19254
  3  0.243871
  4  0.196193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606379': 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) = 6971.66853225
delta logL = 0.13282630113

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  3.217e+01  3.605e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  3.162e+00  1.193e+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.178e+00  1.962e-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:  6.543e-01  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 186.252 3.510
Photon Index (Free Index): 3.16 +/- 1.19
Photon Flux (Free Index): 6.50e-08 +/- 8.74e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.54e-05

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/606379/cmap_HighResolution_310867201_311126401_4FGL_J1225.0+0330_daily_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-05', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.64e-05', photon_flux_error='2.82e-08', dlogl='1.33e-01', energy_flux='1.13e-05', photon_flux2='6.50e-08', job_status='DONE', time_completed='2021-09-05 14:01:20.024078', photon_index_error2='1.19', photon_index2='3.16', ts='2.45', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='9.56e-08', energy_flux_error2='1.54e-05', EG='0.69', time_epoch_completed='1630875680.02', return_code='0', job_id='606379', GAL2='1.18', EG2='0.65', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='8.74e-08', ts2='2.79', photon_index='2.40' WHERE bin_id='276' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:01:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 606379: <4FGL_J1225.0+0330_daily_bin276> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin276 186.252 3.5098 310867201 311126401 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 :                                   936.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            956 sec.

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

