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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin467
RA = 186.252, Dec = 3.5098
tmin = 360374401, tmax = 360633601
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='606653', job_status='RUN', time_executed='2021-09-05 13:48:08.485706', time_epoch_executed='1630874888.49' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='467'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606653

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606653/ft1_4FGL_J1225.0+0330_daily_bin467.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606653/ft2_4FGL_J1225.0+0330_daily_bin467.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606653/ft1_4FGL_J1225.0+0330_daily_bin467.fits outfile=/scratch/kocevski/606653/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin467.fits ra=186.252 dec=3.5098 rad=12.0 tmin=360374401.0 tmax=360633601.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.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606653/ft1_filtered_4FGL_J1225.0+0330_daily_bin467.fits" evtable="EVENTS" scfile=/scratch/kocevski/606653/ft2_4FGL_J1225.0+0330_daily_bin467.fits sctable="SC_DATA" outfile=/scratch/kocevski/606653/ltcube_360374401_360633601_4FGL_J1225.0+0330_daily_bin467.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/606653/ft2_4FGL_J1225.0+0330_daily_bin467.fits
.....................!
real 12.11
user 11.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606653/ft1_filtered_4FGL_J1225.0+0330_daily_bin467.fits evtable="EVENTS" scfile=/scratch/kocevski/606653/ft2_4FGL_J1225.0+0330_daily_bin467.fits sctable="SC_DATA" expcube=/scratch/kocevski/606653/ltcube_360374401_360633601_4FGL_J1225.0+0330_daily_bin467.fits outfile=/scratch/kocevski/606653/expmap_360374401_360633601_4FGL_J1225.0+0330_daily_bin467.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/606653/ltcube_360374401_360633601_4FGL_J1225.0+0330_daily_bin467.fits
.....................!
real 190.63
user 185.49
sys 4.64

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/606653/ft1_filtered_4FGL_J1225.0+0330_daily_bin467.fits scfile=/scratch/kocevski/606653/ft2_4FGL_J1225.0+0330_daily_bin467.fits outfile=/scratch/kocevski/606653/cmap_360374401_360633601_4FGL_J1225.0+0330_daily_bin467.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606653/ft1_filtered_4FGL_J1225.0+0330_daily_bin467.fits scfile=/scratch/kocevski/606653/ft2_4FGL_J1225.0+0330_daily_bin467.fits outfile=/scratch/kocevski/606653/cmap_HighResolution_360374401_360633601_4FGL_J1225.0+0330_daily_bin467.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16759E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2466       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10581E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.030       1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.756       1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.159       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .68982E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3916       1.0000         .10000E-03   10000.    
    14 'norm      '    .16690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.436       1.0000         .10000E-03   10000.    
    16 'norm      '    30.034       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0905       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6571       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9824       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4942       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6687       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    72.111       1.0000         .10000E-03   10000.    
    27 'norm      '    13.165       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.1313       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .43295       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.5016       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=   5290.075     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     3972 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.686        .28590E-07** at limit **
   2  Prefactor     .10000E-03    44.939        .14896E-05** at limit **
   3  Prefactor     .10013E-03    9.1022        .30262E-05** at limit **
   4  Prefactor     .10000E-03    5.5083        .96988E-07** at limit **
   5  Prefactor     7.1992        37.106       -.17170E-05   -.18004E-03
   6  Prefactor     .10000E-03    19.165       -.81897E-07** at limit **
   7  Prefactor     12.349        503.40        .56582E-06   -.49935E-04
   8  Prefactor     43.721        43.856       -.21432E-06   -.39810E-06
   9  Prefactor     59.150        42.566        .21352E-06   -.10128E-03
  10  Prefactor     .10000E-03    6.8890        .95817E-08** at limit **
  11  Prefactor     .10041E-03    28.935        .26326E-05** at limit **
  12  Prefactor     .10000E-03    3.7536        .92698E-08** at limit **
  13  norm          1.3917        1.7591        .15669E-06    .72444E-04
  14  norm          .15532        2.5706       -.13794E-06    .64027E-03
  15  Prefactor     10.434        33.677        .92439E-06   -.27302E-04
  16  norm          30.065        53.220        .13640E-05   -.19940E-04
  17  Prefactor     .10000E-03    54.850        .45889E-06** at limit **
  18  norm          1.0905        .63574       -.31776E-07   -.16928E-03
  19  Prefactor     .10000E-03    16.071       -.26497E-06** at limit **
  20  Prefactor     7.6576        22.278        .81527E-06   -.43133E-05
  21  Prefactor     5.9831        6.7110       -.17908E-07    .41170E-05
  22  norm          1.4942        1.1618        .77228E-07    .76847E-04
  23  Prefactor     3.6685        6.1017        .10001E-05    .31675E-04
  24  Prefactor     .10000E-03    16.125        .35361E-06** at limit **
  25  Prefactor     .10000E-03    11.526       -.21395E-07** at limit **
  26  Prefactor     72.111        52.709        .15890E-07   -.11112E-04
  27  norm          13.164        16.115        .16920E-06    .32237E-05
  28  Prefactor     3.1327        19.359        .23216E-05    .17731E-04
  29  Normalizat    .43290        .23547       -.64183E-05   -.27093E-03
  30  Prefactor     1.5016        .19593       -.21530E-06   -.47382E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100133
  Prefactor  = 0.0001
  Prefactor  = 7.19916
  Prefactor  = 0.0001
  Prefactor  = 12.3488
  Prefactor  = 43.7208
  Prefactor  = 59.1501
  Prefactor  = 0.0001
  Prefactor  = 0.000100412
  Prefactor  = 0.0001
  norm       = 1.39165
  norm       = 0.155322
  Prefactor  = 10.4343
  norm       = 30.065
  Prefactor  = 0.0001
  norm       = 1.09052
  Prefactor  = 0.0001
  Prefactor  = 7.65762
  Prefactor  = 5.98307
  norm       = 1.49423
  Prefactor  = 3.66846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.1108
  norm       = 13.1638
  Prefactor  = 3.13267
  Normalizat = 0.432897
  Prefactor  = 1.50158
 **********
 **   18 **HESSE 
 **********

 FCN=   5290.075     FROM HESSE     STATUS=OK           596 CALLS     4568 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    44.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10013E-03    47.634        .38766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5471        .16670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.1992        36.988        .14900E-03   -1.5171    
   6  Prefactor     .10000E-03    19.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.349        501.15        .11549E-03   -1.5005    
   8  Prefactor     43.721        43.843        .60607E-04   -1.4385    
   9  Prefactor     59.150        42.485        .52162E-04   -1.4168    
  10  Prefactor     .10000E-03    6.8933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10041E-03    34.093        .11076       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7580        .13760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3917        1.7305        .10534E-03   -1.5472    
  14  norm          .15532        49.647        .18086E-02   -1.5629    
  15  Prefactor     10.434        33.628        .12403E-03   -1.5062    
  16  norm          30.065        68.785        .73109E-04   -1.4611    
  17  Prefactor     .10000E-03    54.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0905        .62042        .37739E-04   -1.5499    
  19  Prefactor     .10000E-03    16.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6576        22.204        .14492E-03   -1.5154    
  21  Prefactor     5.9831        6.7066        .16417E-03   -1.5219    
  22  norm          1.4942        1.1522        .66696E-04   -1.5463    
  23  Prefactor     3.6685        6.0919        .21088E-03   -1.5325    
  24  Prefactor     .10000E-03    16.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     72.111        52.329        .47276E-04   -1.4008    
  27  norm          13.164        16.117        .11039E-03   -1.4982    
  28  Prefactor     3.1327        19.123        .22910E-03   -1.5354    
  29  Normalizat    .43290        .25639        .40302E-03   -1.1563    
  30  Prefactor     1.5016        .21467        .20420E-03   -.77496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41849e-08
Minuit parameter uncertainties:
  1  2.51411e-05
  2  5.58715e-05
  3  0.00503997
  4  2.66176e-05
  5  32.6679
  6  0.000102724
  7  158.781
  8  43.8752
  9  42.5071
  10  1.25916e-05
  11  0.00750164
  12  9.05111e-06
  13  1.73052
  14  5.55669
  15  33.6894
  16  68.967
  17  2.43762e-05
  18  0.620423
  19  9.58963e-05
  20  22.228
  21  6.70742
  22  1.15217
  23  6.09296
  24  2.713e-05
  25  3.64107e-06
  26  52.3622
  27  16.1219
  28  15.487
  29  0.257092
  30  0.214803
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  3.007e+01  6.897e+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.502e+00  2.148e-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:  4.329e-01  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/606653/likelihoodResults_360374401_360633601_4FGL_J1225.0+0330_daily_bin467.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) = 5289.92362847
delta logL = 0.151064327571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5289.8943028
delta logL = 0.180389996986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7010       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7978       1.0000          .0000       5.0000    
     3 'Normalizat'    .39747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5215       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=   5289.894     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      318 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6791        549.86        .13589E-03    .21568E-03
   2  alpha         3.8012        3.0469        .20253E-01    .33496E-04
   3  Normalizat    .39410        .30362        .42130E-03    .22827E-03
   4  Prefactor     1.5246        .24619        .20282E-03   -.82263E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.67915
  alpha      = 3.80119
  Normalizat = 0.394102
  Prefactor  = 1.52459
 **********
 **   18 **HESSE 
 **********

 FCN=   5289.894     FROM HESSE     STATUS=OK            25 CALLS      343 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6791        28.802        .54356E-05   -1.5119    
   2  alpha         3.8012        3.7279        .81010E-03    .54741    
   3  Normalizat    .39410        .23971        .16852E-04   -1.1761    
   4  Prefactor     1.5246        .21131        .40564E-04   -.76853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30415e-09
Minuit parameter uncertainties:
  1  28.8481
  2  2.19341
  3  0.240336
  4  0.211431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606653': 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) = 5289.89419092
delta logL = 0.180501885186

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  8.679e+00  2.885e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  3.801e+00  2.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.525e+00  2.114e-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:  3.941e-01  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.55
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/606653/cmap_HighResolution_360374401_360633601_4FGL_J1225.0+0330_daily_bin467.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', job_status='DONE', photon_flux_upper_limit='9.60e-08', time_completed='2021-09-05 14:01:15.977925', job_id='606653', GAL2='1.52', fit_tolerance='1e-08', EG2='0.39', EG='0.43', time_epoch_completed='1630875675.98', return_code2='0', ts='0.55', comment='SUCCESS', return_code='0', GAL='1.50', dlogl='1.81e-01', ts2='0.97', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='467' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:01:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 606653: <4FGL_J1225.0+0330_daily_bin467> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin467 186.252 3.5098 360374401 360633601 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 :                                   785.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

