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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin505
RA = 186.252, Dec = 3.5098
tmin = 370224001, tmax = 370483201
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='606707', job_status='RUN', time_executed='2021-09-05 13:47:44.582967', time_epoch_executed='1630874864.58' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606707/ft1_4FGL_J1225.0+0330_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606707/ft2_4FGL_J1225.0+0330_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606707/ft1_4FGL_J1225.0+0330_daily_bin505.fits outfile=/scratch/kocevski/606707/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin505.fits ra=186.252 dec=3.5098 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.20
user 15.73
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606707/ft1_filtered_4FGL_J1225.0+0330_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/606707/ft2_4FGL_J1225.0+0330_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/606707/ltcube_370224001_370483201_4FGL_J1225.0+0330_daily_bin505.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/606707/ft2_4FGL_J1225.0+0330_daily_bin505.fits
.....................!
real 10.44
user 10.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606707/ft1_filtered_4FGL_J1225.0+0330_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/606707/ft2_4FGL_J1225.0+0330_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/606707/ltcube_370224001_370483201_4FGL_J1225.0+0330_daily_bin505.fits outfile=/scratch/kocevski/606707/expmap_370224001_370483201_4FGL_J1225.0+0330_daily_bin505.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/606707/ltcube_370224001_370483201_4FGL_J1225.0+0330_daily_bin505.fits
.....................!
real 191.09
user 185.90
sys 4.82

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/606707/ft1_filtered_4FGL_J1225.0+0330_daily_bin505.fits scfile=/scratch/kocevski/606707/ft2_4FGL_J1225.0+0330_daily_bin505.fits outfile=/scratch/kocevski/606707/cmap_370224001_370483201_4FGL_J1225.0+0330_daily_bin505.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606707/ft1_filtered_4FGL_J1225.0+0330_daily_bin505.fits scfile=/scratch/kocevski/606707/ft2_4FGL_J1225.0+0330_daily_bin505.fits outfile=/scratch/kocevski/606707/cmap_HighResolution_370224001_370483201_4FGL_J1225.0+0330_daily_bin505.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.169       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    128.51       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7780       1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.679       1.0000         .10000E-03   10000.    
    10 'Prefactor '    91.573       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.1905       1.0000         .10000E-03   10000.    
    14 'norm      '    25.889       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    122.39       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34372E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2848       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.957       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.307       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.291       1.0000         .10000E-03   10000.    
    24 'Prefactor '    221.38       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    84.743       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.4814       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0490       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3761       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=   2270.024     FROM MIGRAD    STATUS=CONVERGED   1327 CALLS     4516 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.290        77.301        .11038E-03    .30384E-04
   2  Prefactor     .10000E-03    94.508        .18142E-02** at limit **
   3  Prefactor     .10000E-03    8.0212        .13160E-02** at limit **
   4  Prefactor     .10000E-03    14.385        .17640E-02** at limit **
   5  Prefactor     .10000E-03    15.852        .18142E-02** at limit **
   6  Prefactor     128.90        119.63        .17757E-03   -.31467E-04
   7  Prefactor     .10000E-03    48.363        .18142E-02** at limit **
   8  Prefactor     1.0866        591.73        .35510        .13067E-04
   9  Prefactor     68.640        110.86        .48435E-04   -.18379E-04
  10  Prefactor     91.510        84.927        .20997E-03   -.25096E-04
  11  Prefactor     .10000E-03    65.560        .18142E-02** at limit **
  12  Prefactor     .10000E-03    27.038        .18142E-02** at limit **
  13  norm          8.1916        7.7521        .12391E-03   -.67482E-04
  14  norm          25.894        14.568        .78732E-04   -.12584E-03
  15  Prefactor     .10000E-03    35.018        .18142E-02** at limit **
  16  norm          122.36        146.46        .18190E-03   -.25844E-04
  17  Prefactor     .10000E-03    654.84        .21331E-02** at limit **
  18  norm          .10000E-03    1.6332        .91829E-03** at limit **
  19  Prefactor     9.2862        27.136        .65763E-03   -.60074E-05
  20  Prefactor     14.975        113.78        .10356E-03    .26895E-05
  21  Prefactor     .10000E-03    19.633        .18142E-02** at limit **
  22  norm          13.308        6.1362        .75374E-04   -.84541E-04
  23  Prefactor     21.287        29.255        .86806E-04   -.73996E-05
  24  Prefactor     221.36        170.05        .13593E-03   -.12587E-04
  25  Prefactor     .10000E-03    116.72        .18142E-02** at limit **
  26  Prefactor     84.782        93.026        .21819E-03    .13573E-04
  27  norm          .10000E-03    51.219        .18142E-02** at limit **
  28  Prefactor     8.4901        41.669        .13765E-03    .86722E-06
  29  Normalizat    1.0486        .61218        .39421E-03   -.69027E-04
  30  Prefactor     1.3764        .46067        .29587E-03    .30256E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.29
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 128.899
  Prefactor  = 0.0001
  Prefactor  = 1.0866
  Prefactor  = 68.6405
  Prefactor  = 91.5104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.19155
  norm       = 25.894
  Prefactor  = 0.0001
  norm       = 122.362
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 9.28623
  Prefactor  = 14.975
  Prefactor  = 0.0001
  norm       = 13.3077
  Prefactor  = 21.2869
  Prefactor  = 221.358
  Prefactor  = 0.0001
  Prefactor  = 84.7818
  norm       = 0.0001
  Prefactor  = 8.49005
  Normalizat = 1.04864
  Prefactor  = 1.37637
 **********
 **   18 **HESSE 
 **********

 FCN=   2270.024     FROM HESSE     STATUS=OK           566 CALLS     5082 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.290        77.275        .44152E-05   -1.4979    
   2  Prefactor     .10000E-03    94.509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.0217        .26321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.386        .35280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     128.90        119.65        .71029E-05   -1.3432    
   7  Prefactor     .10000E-03    48.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0866        591.88        .35510       -1.5499    
   9  Prefactor     68.640        110.85        .96869E-05   -1.4049    
  10  Prefactor     91.510        84.927        .83987E-05   -1.3792    
  11  Prefactor     .10000E-03    65.562        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.1916        7.7518        .49564E-05   -1.5135    
  14  norm          25.894        14.568        .31493E-05   -1.4690    
  15  Prefactor     .10000E-03    35.019        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          122.36        146.47        .72760E-05   -1.3491    
  17  Prefactor     .10000E-03    654.88        .42663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6346        .18366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.2862        27.081        .26305E-04   -1.5098    
  20  Prefactor     14.975        113.13        .41426E-05   -1.4934    
  21  Prefactor     .10000E-03    19.634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.308        6.1360        .30150E-05   -1.4978    
  23  Prefactor     21.287        29.256        .34722E-05   -1.4785    
  24  Prefactor     221.36        170.02        .54373E-05   -1.2721    
  25  Prefactor     .10000E-03    116.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     84.782        93.015        .87276E-05   -1.3864    
  27  norm          .10000E-03    51.219        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.4901        41.637        .55059E-05   -1.5125    
  29  Normalizat    1.0486        .61252        .15768E-04   -.91418    
  30  Prefactor     1.3764        .46103        .59174E-04   -.81064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12565e-10
Minuit parameter uncertainties:
  1  64.2188
  2  0.000191398
  3  1.50498e-06
  4  3.50584e-05
  5  9.40586e-06
  6  119.872
  7  6.77858e-05
  8  51.235
  9  111.181
  10  85.0395
  11  0.000122904
  12  6.74148e-05
  13  7.75274
  14  14.57
  15  1.37791e-05
  16  146.906
  17  0.00123983
  18  3.42446e-06
  19  27.1169
  20  82.5369
  21  1.79512e-05
  22  6.13629
  23  29.2753
  24  170.403
  25  7.65323e-06
  26  93.1749
  27  4.58528e-05
  28  37.6451
  29  0.616716
  30  0.462416
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.224e+02  1.469e+02  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.376e+00  4.624e-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.049e+00  6.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 186.252 3.510
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 8.46e-08 +/- 1.02e-07
Energy Flux (Fixed Index): 3.53e-05 +/- 4.24e-05

TS (Fixed Index): 1.62
Ra Dec: 186.252 3.510
Photon Flux Upper Limit: 3.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606707/likelihoodResults_370224001_370483201_4FGL_J1225.0+0330_daily_bin505.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) = 2270.00213131
delta logL = 0.0221586405705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2269.99753989
delta logL = 0.0267500573418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    110.90       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6914       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3839       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2269.998     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      243 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          110.90        148.86         .0000        .10287E-02
   2  alpha         2.6919        1.3422         .0000        .52049E-03
   3  Normalizat    1.0308        .44786         .0000        .71364E-05
   4  Prefactor     1.3845        .37664         .0000        .22025E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 110.905
  alpha      = 2.69186
  Normalizat = 1.03079
  Prefactor  = 1.38453
 **********
 **   18 **HESSE 
 **********

 FCN=   2269.998     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          110.90        132.61        .38195E-04   -1.3598    
   2  alpha         2.6919        1.2118        .82610E-02    .76820E-01
   3  Normalizat    1.0308        .52346        .39680E-03   -.92006    
   4  Prefactor     1.3845        .44219        .29494E-03   -.80827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71751e-08
Minuit parameter uncertainties:
  1  132.969
  2  1.26543
  3  0.526105
  4  0.443409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606707': 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) = 2269.99753885
delta logL = 0.0267511043344

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.109e+02  1.330e+02  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.692e+00  1.265e+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.385e+00  4.434e-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.031e+00  5.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 186.252 3.510
Photon Index (Free Index): 2.69 +/- 1.27
Photon Flux (Free Index): 1.12e-07 +/- 1.60e-07
Energy Flux (Free Index): 3.74e-05 +/- 3.72e-05

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/606707/cmap_HighResolution_370224001_370483201_4FGL_J1225.0+0330_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-04', comment='SUCCESS', photon_flux='8.46e-08', energy_flux2='3.74e-05', photon_flux_error='1.02e-07', dlogl='2.68e-02', energy_flux='3.53e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-05 13:57:32.223275', photon_index_error2='1.27', photon_index2='2.69', ts='1.62', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', photon_flux_upper_limit='3.07e-07', energy_flux_error2='3.72e-05', EG='1.05', time_epoch_completed='1630875452.22', return_code='0', job_id='606707', GAL2='1.38', EG2='1.03', return_code2='0', energy_flux_error='4.24e-05', photon_flux_error2='1.60e-07', ts2='1.72', photon_index='2.40' WHERE bin_id='505' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:57:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 606707: <4FGL_J1225.0+0330_daily_bin505> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin505 186.252 3.5098 370224001 370483201 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 :                                   583.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

