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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin754
RA = 186.252, Dec = 3.5098
tmin = 434764801, tmax = 435024001
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='608350', job_status='RUN', time_executed='2021-09-05 13:53:05.388823', time_epoch_executed='1630875185.39' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608350/ft1_4FGL_J1225.0+0330_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608350/ft2_4FGL_J1225.0+0330_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608350/ft1_4FGL_J1225.0+0330_daily_bin754.fits outfile=/scratch/kocevski/608350/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin754.fits ra=186.252 dec=3.5098 rad=12.0 tmin=434764801.0 tmax=435024001.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.53
user 4.28
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/608350/ft2_4FGL_J1225.0+0330_daily_bin754.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/608350/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/608350/ft1_filtered_4FGL_J1225.0+0330_daily_bin754.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.42
user 0.28
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/608350/ft1_filtered_4FGL_J1225.0+0330_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/608350/ft2_4FGL_J1225.0+0330_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/608350/ltcube_434764801_435024001_4FGL_J1225.0+0330_daily_bin754.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/608350/ft2_4FGL_J1225.0+0330_daily_bin754.fits
.....................!
real 9.69
user 9.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608350/ft1_filtered_4FGL_J1225.0+0330_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/608350/ft2_4FGL_J1225.0+0330_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/608350/ltcube_434764801_435024001_4FGL_J1225.0+0330_daily_bin754.fits outfile=/scratch/kocevski/608350/expmap_434764801_435024001_4FGL_J1225.0+0330_daily_bin754.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/608350/ltcube_434764801_435024001_4FGL_J1225.0+0330_daily_bin754.fits
.....................!
real 150.32
user 146.58
sys 3.45

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/608350/ft1_filtered_4FGL_J1225.0+0330_daily_bin754.fits scfile=/scratch/kocevski/608350/ft2_4FGL_J1225.0+0330_daily_bin754.fits outfile=/scratch/kocevski/608350/cmap_434764801_435024001_4FGL_J1225.0+0330_daily_bin754.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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608350/ft1_filtered_4FGL_J1225.0+0330_daily_bin754.fits scfile=/scratch/kocevski/608350/ft2_4FGL_J1225.0+0330_daily_bin754.fits outfile=/scratch/kocevski/608350/cmap_HighResolution_434764801_435024001_4FGL_J1225.0+0330_daily_bin754.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.48
user 0.31
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.822       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2348       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.327       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.104       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.932       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13567E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .40688       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18168E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2710       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.354       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23504E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    4.7682       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.594       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.156       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.3245       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.3930       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.7475       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .49914       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=   6023.180     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     3264 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.828        1.4995       -.73446E-06    .14774E-02
   2  Prefactor     .10014E-03    9.7019       -.68983E-05** at limit **
   3  Prefactor     .10000E-03    4.0598        .32369E-07** at limit **
   4  Prefactor     6.2350        5.9600       -.73375E-05   -.21251E-02
   5  Prefactor     17.332        1.4782       -.79102E-06    .13873E-02
   6  Prefactor     .10002E-03    8.2636       -.89393E-05** at limit **
   7  Prefactor     .10007E-03    29.954        .14164E-04** at limit **
   8  Prefactor     .10010E-03    11.790        .57371E-05** at limit **
   9  Prefactor     51.090        1.9839        .99011E-08   -.61905E-03
  10  Prefactor     24.939        2.5779       -.14856E-05    .31464E-02
  11  Prefactor     .10001E-03    9.7810        .98129E-05** at limit **
  12  Prefactor     .10003E-03    16.567       -.69951E-05** at limit **
  13  norm          .10001E-03    9.8846        .60984E-05** at limit **
  14  norm          .42671        9.2896        .17577E-05    .25104E-03
  15  Prefactor     .10004E-03    8.9175       -.54665E-05** at limit **
  16  norm          .10001E-03    8.7078       -.76303E-05** at limit **
  17  Prefactor     .73443E-03    86.957       -.19002E-04** at limit **
  18  norm          1.2707        .66526       -.42213E-07    .14648E-02
  19  Prefactor     .10000E-03    9.9906        .52016E-05** at limit **
  20  Prefactor     10.372        2.9757       -.21019E-05    .23974E-02
  21  Prefactor     .15161E-03    367.26       -.26763E-05** at limit **
  22  norm          4.7682        1.9788        .24819E-08    .35881E-03
  23  Prefactor     15.601        1.6444       -.44385E-06   -.51055E-03
  24  Prefactor     .10000E-03    4.5522       -.24244E-05** at limit **
  25  Prefactor     38.166        1.5742       -.70113E-07    .47659E-03
  26  Prefactor     .10018E-03    9.3949       -.52076E-05** at limit **
  27  norm          6.3187        1.2805        .25503E-06   -.28156E-03
  28  Prefactor     7.3935        1.0321        .13317E-06    .16222E-03
  29  Normalizat    1.7473        .26556        .17961E-05    .17470E-03
  30  Prefactor     .49927        .19683       -.25790E-05    .79823E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8277
  Prefactor  = 0.00010014
  Prefactor  = 0.0001
  Prefactor  = 6.23496
  Prefactor  = 17.3324
  Prefactor  = 0.000100019
  Prefactor  = 0.000100068
  Prefactor  = 0.000100103
  Prefactor  = 51.0902
  Prefactor  = 24.939
  Prefactor  = 0.000100014
  Prefactor  = 0.000100025
  norm       = 0.000100009
  norm       = 0.426713
  Prefactor  = 0.000100036
  norm       = 0.000100006
  Prefactor  = 0.000734426
  norm       = 1.27074
  Prefactor  = 0.000100003
  Prefactor  = 10.372
  Prefactor  = 0.000151613
  norm       = 4.76817
  Prefactor  = 15.6011
  Prefactor  = 0.000100002
  Prefactor  = 38.1662
  Prefactor  = 0.000100176
  norm       = 6.31867
  Prefactor  = 7.39346
  Normalizat = 1.74734
  Prefactor  = 0.499271
 **********
 **   18 **HESSE 
 **********

 FCN=   6023.180     FROM HESSE     STATUS=OK           664 CALLS     3928 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.828        26.327        .20961E-02   -1.4752    
   2  Prefactor     .10014E-03    28.233        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0607        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2350        6.0478        .40192E-02   -1.5209    
   5  Prefactor     17.332        24.567        .24054E-02   -1.4875    
   6  Prefactor     .10002E-03    10.576        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10007E-03    37.035        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10010E-03    21.678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     51.090        40.659        .14025E-02   -1.4277    
  10  Prefactor     24.939        22.021        .20056E-02   -1.4709    
  11  Prefactor     .10001E-03    11.615        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    16.628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    1.8587        .66644E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .42671        2.3850        .62135E-01   -1.5577    
  15  Prefactor     .10004E-03    32.811        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    31.905        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .73443E-03    612.70        .90712E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2707        .68495        .93293E-02   -1.5483    
  19  Prefactor     .10000E-03    10.042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.372        29.820        .31129E-02   -1.5064    
  21  Prefactor     .15161E-03    8.0410        .91400E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.7682        1.9866        .46064E-02   -1.5271    
  23  Prefactor     15.601        11.329        .25356E-02   -1.4918    
  24  Prefactor     .10000E-03    11.165        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     38.166        39.476        .16221E-02   -1.4472    
  26  Prefactor     .10018E-03    27.466        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.3187        41.974        .39902E-02   -1.5205    
  28  Prefactor     7.3935        13.236        .36877E-02   -1.5164    
  29  Normalizat    1.7473        .24009        .57556E-01   -.71046    
  30  Prefactor     .49927        .17515        .76653E-01   -1.1201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12421e-06
Minuit parameter uncertainties:
  1  26.3404
  2  0.0039851
  3  6.31591e-06
  4  6.04834
  5  24.581
  6  0.000885552
  7  0.00318009
  8  0.00298447
  9  40.6813
  10  22.0284
  11  0.000820528
  12  0.00129655
  13  0.00025359
  14  2.01752
  15  0.00218538
  16  0.000886501
  17  1.26004
  18  0.68495
  19  0.000330698
  20  29.8632
  21  0.0407494
  22  1.98663
  23  11.3306
  24  0.000329437
  25  39.5032
  26  0.00439424
  27  32.6042
  28  13.2416
  29  0.240256
  30  0.175335
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  8.865e-04  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:  4.993e-01  1.753e-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.747e+00  2.403e-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.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608350/likelihoodResults_434764801_435024001_4FGL_J1225.0+0330_daily_bin754.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) = 6023.18002852
delta logL = -0.000148993839503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6023.17987961
delta logL = -8.2582118921e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10378E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3893       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49928       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=   6023.180     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      200 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    32.136        .90712E-02** at limit **
   2  alpha         2.4015        3.5342        .41203       -.19692E-05
   3  Normalizat    1.7473        .22324        .57556E-01    .35025E-06
   4  Prefactor     .49927        .17114        .76653E-01    .36130E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.40153
  Normalizat = 1.74734
  Prefactor  = 0.499272
 **********
 **   18 **HESSE 
 **********

 FCN=   6023.180     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    31.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4015        3.5288        .50000       -.39397E-01
   3  Normalizat    1.7473        .25410        .25448E-03   -.71046    
   4  Prefactor     .49927        .19432        .33948E-03   -1.1201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92755e-12
Minuit parameter uncertainties:
  1  8.20461e-06
  2  2.49959
  3  0.254291
  4  0.194583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608350': 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) = 6023.17987952
delta logL = 3.55430529453e-09

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  8.205e-06  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.402e+00  2.500e+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:  4.993e-01  1.946e-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.747e+00  2.543e-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/608350/cmap_HighResolution_434764801_435024001_4FGL_J1225.0+0330_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-05', job_status='DONE', photon_flux_upper_limit='6.68e-08', time_completed='2021-09-05 14:03:50.906675', job_id='608350', GAL2='0.50', fit_tolerance='1e-08', EG2='1.75', EG='1.75', time_epoch_completed='1630875830.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='3.55e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='754' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:03:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 608350: <4FGL_J1225.0+0330_daily_bin754> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin754 186.252 3.5098 434764801 435024001 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 :                                   642.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            784 sec.

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

