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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin622
RA = 186.252, Dec = 3.5098
tmin = 400550401, tmax = 400809601
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='608097', job_status='RUN', time_executed='2021-09-05 13:52:46.810814', time_epoch_executed='1630875166.81' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608097/ft1_4FGL_J1225.0+0330_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608097/ft2_4FGL_J1225.0+0330_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608097/ft1_4FGL_J1225.0+0330_daily_bin622.fits outfile=/scratch/kocevski/608097/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin622.fits ra=186.252 dec=3.5098 rad=12.0 tmin=400550401.0 tmax=400809601.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 4.39
user 4.13
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608097/ft1_filtered_4FGL_J1225.0+0330_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/608097/ft2_4FGL_J1225.0+0330_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/608097/ltcube_400550401_400809601_4FGL_J1225.0+0330_daily_bin622.fits outfile=/scratch/kocevski/608097/expmap_400550401_400809601_4FGL_J1225.0+0330_daily_bin622.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/608097/ltcube_400550401_400809601_4FGL_J1225.0+0330_daily_bin622.fits
.....................!
real 190.40
user 185.21
sys 4.80

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/608097/ft1_filtered_4FGL_J1225.0+0330_daily_bin622.fits scfile=/scratch/kocevski/608097/ft2_4FGL_J1225.0+0330_daily_bin622.fits outfile=/scratch/kocevski/608097/cmap_400550401_400809601_4FGL_J1225.0+0330_daily_bin622.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608097/ft1_filtered_4FGL_J1225.0+0330_daily_bin622.fits scfile=/scratch/kocevski/608097/ft2_4FGL_J1225.0+0330_daily_bin622.fits outfile=/scratch/kocevski/608097/cmap_HighResolution_400550401_400809601_4FGL_J1225.0+0330_daily_bin622.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=186.252 yref=3.5098 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.963       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5024       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.296       1.0000         .10000E-03   10000.    
     7 'Prefactor '    112.69       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    78.579       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2167       1.0000         .10000E-03   10000.    
    14 'norm      '    3.9107       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .50811       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.003       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5731       1.0000         .10000E-03   10000.    
    22 'norm      '    12.948       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.5233       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.7754       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0948       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93493       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5791.867     FROM MIGRAD    STATUS=CONVERGED     78 CALLS     3182 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    10.309        .21288E-04** at limit **
   2  Prefactor     64.962        1.0355       -.24532E-06    .11980E-02
   3  Prefactor     .10000E-03    3.8750        .19404E-05** at limit **
   4  Prefactor     .10000E-03    2.8031       -.94109E-05** at limit **
   5  Prefactor     3.4902        1.1505       -.63238E-06   -.65754E-04
   6  Prefactor     19.293        1.1197       -.78539E-06    .66653E-03
   7  Prefactor     112.69        1.0068        .84757E-07   -.74880E-03
   8  Prefactor     .10007E-03    12.984        .34926E-04** at limit **
   9  Prefactor     78.578        1.0345       -.21791E-06    .12533E-02
  10  Prefactor     30.305        1.3989       -.12844E-05    .24984E-02
  11  Prefactor     .10000E-03    2.8220       -.10452E-04** at limit **
  12  Prefactor     .10000E-03    4.6937        .30202E-05** at limit **
  13  norm          3.2168        2.4993       -.38197E-06    .17577E-04
  14  norm          3.9107        3.6217        .83931E-06   -.16768E-04
  15  Prefactor     .10037E-03    4.7645       -.17807E-04** at limit **
  16  norm          .10010E-03    12.909        .33968E-04** at limit **
  17  Prefactor     .10011E-03    42.879       -.61644E-04** at limit **
  18  norm          .50795        .64060        .58783E-06   -.10022E-03
  19  Prefactor     .10000E-03    9.2239       -.83787E-05** at limit **
  20  Prefactor     20.000        1.2453       -.12043E-05    .16116E-02
  21  Prefactor     6.5733        1.0042       -.30245E-07    .28583E-04
  22  norm          12.947        2.8310       -.11714E-05    .14790E-03
  23  Prefactor     6.5235        1.0039        .68474E-07    .12163E-03
  24  Prefactor     .10002E-03    2.9683       -.13745E-04** at limit **
  25  Prefactor     .10013E-03    3.2623        .10293E-05** at limit **
  26  Prefactor     .10006E-03    2.9857       -.26807E-05** at limit **
  27  norm          .10004E-03    2.8818       -.47781E-05** at limit **
  28  Prefactor     4.7753        1.0121       -.32062E-06    .31193E-04
  29  Normalizat    1.0951        .26672        .56533E-05   -.23271E-04
  30  Prefactor     .93479        .21445       -.18707E-06   -.28574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100062
  Prefactor  = 64.9619
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.49023
  Prefactor  = 19.293
  Prefactor  = 112.692
  Prefactor  = 0.000100074
  Prefactor  = 78.578
  Prefactor  = 30.3051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.21675
  norm       = 3.91067
  Prefactor  = 0.000100373
  norm       = 0.0001001
  Prefactor  = 0.000100114
  norm       = 0.507948
  Prefactor  = 0.000100002
  Prefactor  = 20.0003
  Prefactor  = 6.57326
  norm       = 12.9474
  Prefactor  = 6.52347
  Prefactor  = 0.000100018
  Prefactor  = 0.000100125
  Prefactor  = 0.000100065
  norm       = 0.000100037
  Prefactor  = 4.77526
  Normalizat = 1.09507
  Prefactor  = 0.934792
 **********
 **   18 **HESSE 
 **********

 FCN=   5791.867     FROM HESSE     STATUS=OK           646 CALLS     3828 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    11.427        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     64.962        82.943        .12448E-02   -1.4094    
   3  Prefactor     .10000E-03    3.8695        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4902        15.352        .54009E-02   -1.5334    
   6  Prefactor     19.293        20.507        .22795E-02   -1.4829    
   7  Prefactor     112.69        96.524        .94737E-03   -1.3581    
   8  Prefactor     .10007E-03    29.021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     78.578        55.303        .11326E-02   -1.3933    
  10  Prefactor     30.305        32.977        .18194E-02   -1.4606    
  11  Prefactor     .10000E-03    16.872        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6904        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2168        2.5460        .56470E-02   -1.5349    
  14  norm          3.9107        3.6998        .51004E-02   -1.5312    
  15  Prefactor     .10037E-03    14.274        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10010E-03    29.284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10011E-03    45.848        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .50795        .68208        .11304E-01   -1.5565    
  19  Prefactor     .10000E-03    9.1804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.000        33.365        .22388E-02   -1.4813    
  21  Prefactor     6.5733        9.9146        .39132E-02   -1.5195    
  22  norm          12.947        2.8551        .27830E-02   -1.4988    
  23  Prefactor     6.5235        6.1363        .39283E-02   -1.5197    
  24  Prefactor     .10002E-03    16.418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10013E-03    18.231        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10006E-03    17.822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10004E-03    17.540        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.7753        12.489        .46028E-02   -1.5271    
  29  Normalizat    1.0951        .24282        .67954E-01   -.89910    
  30  Prefactor     .93479        .18445        .45449E-01   -.94936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58076e-07
Minuit parameter uncertainties:
  1  0.00167904
  2  83.0909
  3  4.60112e-06
  4  0.000311887
  5  14.6462
  6  20.5147
  7  96.6589
  8  0.00292289
  9  55.3395
  10  32.9972
  11  1.90891e-06
  12  6.24511e-06
  13  2.54606
  14  3.69999
  15  0.00461478
  16  0.00342952
  17  0.00458268
  18  0.682092
  19  0.000237974
  20  33.396
  21  9.91703
  22  2.85508
  23  6.13688
  24  0.0010951
  25  0.00302197
  26  0.00214609
  27  0.00160946
  28  12.4963
  29  0.243066
  30  0.184578
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.001e-04  3.430e-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.348e-01  1.846e-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.095e+00  2.431e-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: 6.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608097/likelihoodResults_400550401_400809601_4FGL_J1225.0+0330_daily_bin622.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): 102
logL (Free Index) = 5791.8675011
delta logL = -0.000162488465321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5791.86734661
delta logL = -7.99152167019e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10792E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    .26687       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93479       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=   5791.867     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      240 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.7128        .90712E-02** at limit **
   2  alpha         .27845        2.5322        .50000       -.14065E-04
   3  Normalizat    1.0951        .22172        .67954E-01    .57493E-05
   4  Prefactor     .93479        .18197        .45447E-01    .14486E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 0.278452
  Normalizat = 1.09507
  Prefactor  = 0.934792
 **********
 **   18 **HESSE 
 **********

 FCN=   5791.867     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6443        .17675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .27845        2.5283        .50000       -1.0943    
   3  Normalizat    1.0951        .25830        .30064E-03   -.89910    
   4  Prefactor     .93479        .21219        .26337E-03   -.94936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43705e-10
Minuit parameter uncertainties:
  1  7.95668e-05
  2  1.14689
  3  0.258598
  4  0.212377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608097': 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) = 5791.86734575
delta logL = -7.13482768333e-06

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  7.957e-05  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.785e-01  1.147e+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.348e-01  2.124e-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.095e+00  2.586e-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/608097/cmap_HighResolution_400550401_400809601_4FGL_J1225.0+0330_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-05', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2021-09-05 14:05:46.680299', job_id='608097', GAL2='0.93', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630875946.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-7.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='622' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:05:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 608097: <4FGL_J1225.0+0330_daily_bin622> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin622> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:50:30 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:50:32 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:32 2021
Terminated at Sun Sep  5 14:05:47 2021
Results reported at Sun Sep  5 14:05:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin622 186.252 3.5098 400550401 400809601 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 :                                   776.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

