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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin805
RA = 186.252, Dec = 3.5098
tmin = 447984001, tmax = 448243201
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='608427', job_status='RUN', time_executed='2021-09-05 13:51:25.121592', time_epoch_executed='1630875085.12' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608427

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608427/ft1_4FGL_J1225.0+0330_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608427/ft2_4FGL_J1225.0+0330_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608427/ft1_4FGL_J1225.0+0330_daily_bin805.fits outfile=/scratch/kocevski/608427/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin805.fits ra=186.252 dec=3.5098 rad=12.0 tmin=447984001.0 tmax=448243201.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.01
user 3.78
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608427/ft1_filtered_4FGL_J1225.0+0330_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/608427/ft2_4FGL_J1225.0+0330_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/608427/ltcube_447984001_448243201_4FGL_J1225.0+0330_daily_bin805.fits outfile=/scratch/kocevski/608427/expmap_447984001_448243201_4FGL_J1225.0+0330_daily_bin805.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/608427/ltcube_447984001_448243201_4FGL_J1225.0+0330_daily_bin805.fits
.....................!
real 190.68
user 185.76
sys 4.36

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/608427/ft1_filtered_4FGL_J1225.0+0330_daily_bin805.fits scfile=/scratch/kocevski/608427/ft2_4FGL_J1225.0+0330_daily_bin805.fits outfile=/scratch/kocevski/608427/cmap_447984001_448243201_4FGL_J1225.0+0330_daily_bin805.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608427/ft1_filtered_4FGL_J1225.0+0330_daily_bin805.fits scfile=/scratch/kocevski/608427/ft2_4FGL_J1225.0+0330_daily_bin805.fits outfile=/scratch/kocevski/608427/cmap_HighResolution_447984001_448243201_4FGL_J1225.0+0330_daily_bin805.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5536       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25143E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6968       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.638       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70160E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.675       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.927       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.301       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6010       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.590       1.0000         .10000E-03   10000.    
    16 'norm      '    32.513       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10594E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.850       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.393       1.0000         .10000E-03   10000.    
    27 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12678E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0791       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2184       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=   6208.113     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3977 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5539        15.008        .26672E-07    .77475E-05
   2  Prefactor     .10000E-03    44.851       -.12393E-07** at limit **
   3  Prefactor     .10002E-03    8.8827       -.74764E-05** at limit **
   4  Prefactor     1.6968        5.6979       -.22069E-05   -.23409E-03
   5  Prefactor     14.634        23.277       -.21406E-06   -.39024E-04
   6  Prefactor     .10005E-03    94.225        .39681E-04** at limit **
   7  Prefactor     12.689        160.27       -.23037E-05   -.56641E-04
   8  Prefactor     .10000E-03    27.856        .29456E-06** at limit **
   9  Prefactor     .10000E-03    15.682        .20349E-06** at limit **
  10  Prefactor     26.911        28.774       -.78697E-06   -.16353E-03
  11  Prefactor     20.303        22.985        .11884E-06   -.44517E-04
  12  Prefactor     .10000E-03    5.7942        .17896E-05** at limit **
  13  norm          .10000E-03    1.5138       -.42610E-06** at limit **
  14  norm          8.5959        4.9994       -.36247E-06   -.13698E-02
  15  Prefactor     12.590        19.361        .26445E-08   -.96159E-05
  16  norm          32.516        54.928       -.12089E-05   -.26235E-03
  17  Prefactor     .10000E-03    42.915        .48071E-06** at limit **
  18  norm          .10000E-03    .24456        .21271E-06** at limit **
  19  Prefactor     .10000E-03    7.4490        .80221E-06** at limit **
  20  Prefactor     11.815        29.661        .98754E-06    .19194E-03
  21  Prefactor     .10000E-03    20.366        .11752E-05** at limit **
  22  norm          .10000E-03    .66103        .86593E-07** at limit **
  23  Prefactor     .10000E-03    3.8845        .12738E-06** at limit **
  24  Prefactor     .10000E-03    10.733        .79739E-07** at limit **
  25  Prefactor     .10003E-03    127.35        .41892E-05** at limit **
  26  Prefactor     19.436        45.713        .20822E-05    .31657E-04
  27  norm          .10000E-03    23.953       -.20679E-06** at limit **
  28  Prefactor     .10000E-03    24.159       -.70068E-05** at limit **
  29  Normalizat    1.0798        .22577        .12213E-05   -.28394E-03
  30  Prefactor     1.2178        .17892       -.13573E-05   -.80297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.55391
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 1.6968
  Prefactor  = 14.6336
  Prefactor  = 0.000100048
  Prefactor  = 12.689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9112
  Prefactor  = 20.3032
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 8.59585
  Prefactor  = 12.5903
  norm       = 32.5163
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8153
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 19.4361
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.07982
  Prefactor  = 1.21778
 **********
 **   18 **HESSE 
 **********

 FCN=   6208.113     FROM HESSE     STATUS=OK           582 CALLS     4559 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5539        14.997        .15676E-03   -1.5196    
   2  Prefactor     .10000E-03    44.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    39.119        .36893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6968        5.6195        .32302E-03   -1.5447    
   5  Prefactor     14.634        23.181        .10469E-03   -1.4943    
   6  Prefactor     .10005E-03    102.05        .47342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.689        157.79        .11251E-03   -1.4995    
   8  Prefactor     .10000E-03    27.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.911        28.373        .77202E-04   -1.4670    
  11  Prefactor     20.303        22.982        .88894E-04   -1.4806    
  12  Prefactor     .10000E-03    22.774        .34855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.3547        .18151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.5959        5.0312        .10784E-03   -1.5122    
  15  Prefactor     12.590        19.356        .11289E-03   -1.4998    
  16  norm          32.516        54.792        .70273E-04   -1.4567    
  17  Prefactor     .10000E-03    42.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .40640        .72323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.4782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.815        29.731        .11637E-03   -1.5020    
  21  Prefactor     .10000E-03    21.017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .67701        .12497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.8996        .15165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10003E-03    128.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.436        45.876        .90951E-04   -1.4826    
  27  norm          .10000E-03    24.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    24.178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0798        .26458        .30713E-03   -.90402    
  30  Prefactor     1.2178        .21276        .24416E-03   -.85786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93573e-09
Minuit parameter uncertainties:
  1  15.0052
  2  5.20307e-05
  3  0.00181501
  4  5.62123
  5  23.195
  6  0.00444345
  7  89.7868
  8  0.000110006
  9  7.80542e-05
  10  28.3871
  11  22.9918
  12  0.0001953
  13  0.000143654
  14  5.03146
  15  19.3653
  16  54.877
  17  0.000326075
  18  4.29712e-06
  19  1.54148e-06
  20  29.7683
  21  0.000151227
  22  4.1997e-06
  23  1.40698e-06
  24  9.80261e-06
  25  0.00396436
  26  45.9597
  27  0.000186174
  28  0.000365899
  29  0.264908
  30  0.212907
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  3.252e+01  5.488e+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.218e+00  2.129e-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.080e+00  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/608427/likelihoodResults_447984001_448243201_4FGL_J1225.0+0330_daily_bin805.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) = 6208.10857171
delta logL = 0.00419266951121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6208.1041291
delta logL = 0.00863528709488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.054       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7688       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2235       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6208.104     FROM MIGRAD    STATUS=FAILED        82 CALLS      275 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.050        2199.1        .78481E-04   -.20089E-03
   2  alpha         2.7679        3.5668        .31313E-01   -.38826E-04
   3  Normalizat    1.0702        .62052        .30827E-03   -.19177E-03
   4  Prefactor     1.2235        .42042        .24366E-03   -.41203E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6208.104     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      364 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.050        2199.1        .64343E-03   -.20089E-03
   2  alpha         2.7679        3.5668        .56596E-02   -.38826E-04
   3  Normalizat    1.0702        .62052        .27222E-03   -.19177E-03
   4  Prefactor     1.2235        .42042        .15110E-03   -.41203E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6208.104     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      394 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.048        80.741        .15696E-04   -.30203E-03
   2  alpha         2.7680        3.8399        .12525E-02   -.32513E-04
   3  Normalizat    1.0702        .26675        .12331E-04   -.20818E-03
   4  Prefactor     1.2235        .21796        .48732E-04   -.43354E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 26.0475
  alpha      = 2.76804
  Normalizat = 1.07021
  Prefactor  = 1.2235
 **********
 **   18 **HESSE 
 **********

 FCN=   6208.104     FROM HESSE     STATUS=OK            23 CALLS      417 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.048        79.116        .31393E-05   -1.4687    
   2  alpha         2.7680        3.8299        .50101E-04    .10742    
   3  Normalizat    1.0702        .26639        .24662E-05   -.90714    
   4  Prefactor     1.2235        .21782        .97464E-05   -.85611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6193e-10
Minuit parameter uncertainties:
  1  79.4376
  2  3.43743
  3  0.266721
  4  0.217982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608427': 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) = 6208.10412868
delta logL = 0.00863570733236

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  2.605e+01  7.944e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.768e+00  3.437e+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.223e+00  2.180e-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.070e+00  2.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
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/608427/cmap_HighResolution_447984001_448243201_4FGL_J1225.0+0330_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-05', job_status='DONE', photon_flux_upper_limit='9.95e-08', time_completed='2021-09-05 14:06:13.148889', job_id='608427', GAL2='1.22', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1630875973.15', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='8.64e-03', ts2='0.63', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='805' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:06:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 608427: <4FGL_J1225.0+0330_daily_bin805> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin805 186.252 3.5098 447984001 448243201 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 :                                   876.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

