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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin608
RA = 186.252, Dec = 3.5098
tmin = 396921601, tmax = 397180801
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='608069', job_status='RUN', time_executed='2021-09-05 13:53:30.618495', time_epoch_executed='1630875210.62' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608069/ft1_4FGL_J1225.0+0330_daily_bin608.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608069/ft2_4FGL_J1225.0+0330_daily_bin608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608069/ft1_4FGL_J1225.0+0330_daily_bin608.fits outfile=/scratch/kocevski/608069/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin608.fits ra=186.252 dec=3.5098 rad=12.0 tmin=396921601.0 tmax=397180801.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.29
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608069/ft1_filtered_4FGL_J1225.0+0330_daily_bin608.fits evtable="EVENTS" scfile=/scratch/kocevski/608069/ft2_4FGL_J1225.0+0330_daily_bin608.fits sctable="SC_DATA" expcube=/scratch/kocevski/608069/ltcube_396921601_397180801_4FGL_J1225.0+0330_daily_bin608.fits outfile=/scratch/kocevski/608069/expmap_396921601_397180801_4FGL_J1225.0+0330_daily_bin608.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/608069/ltcube_396921601_397180801_4FGL_J1225.0+0330_daily_bin608.fits
.....................!
real 192.84
user 186.74
sys 5.72

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/608069/ft1_filtered_4FGL_J1225.0+0330_daily_bin608.fits scfile=/scratch/kocevski/608069/ft2_4FGL_J1225.0+0330_daily_bin608.fits outfile=/scratch/kocevski/608069/cmap_396921601_397180801_4FGL_J1225.0+0330_daily_bin608.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608069/ft1_filtered_4FGL_J1225.0+0330_daily_bin608.fits scfile=/scratch/kocevski/608069/ft2_4FGL_J1225.0+0330_daily_bin608.fits outfile=/scratch/kocevski/608069/cmap_HighResolution_396921601_397180801_4FGL_J1225.0+0330_daily_bin608.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.61
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5204       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    86.249       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.607       1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.5579       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0695       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .80923       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.102       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10529E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9846       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9087       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.357       1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.483       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .12529E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.3239       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0163       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0423       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=   5104.617     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3941 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.215        .48878E-06** at limit **
   2  Prefactor     .10000E-03    243.83        .84706E-05** at limit **
   3  Prefactor     .10000E-03    14.088        .40709E-05** at limit **
   4  Prefactor     6.5220        10.379       -.59950E-06   -.14027E-03
   5  Prefactor     .10000E-03    14.216       -.82676E-05** at limit **
   6  Prefactor     .10000E-03    19.228        .11936E-04** at limit **
   7  Prefactor     86.290        86.097        .30946E-04    .16633E-04
   8  Prefactor     .10000E-03    68.933       -.38288E-04** at limit **
   9  Prefactor     46.621        47.477        .49711E-05   -.11817E-04
  10  Prefactor     40.709        36.444        .34768E-06   -.14406E-03
  11  Prefactor     .10000E-03    28.056       -.15401E-04** at limit **
  12  Prefactor     .10000E-03    16.005        .97205E-05** at limit **
  13  norm          4.5579        3.5557        .93669E-07   -.55373E-03
  14  norm          3.0698        2.6811        .25331E-07    .62325E-04
  15  Prefactor     .10000E-03    31.242        .12666E-04** at limit **
  16  norm          .10000E-03    17.660       -.98020E-05** at limit **
  17  Prefactor     .10000E-03    325.53       -.16693E-03** at limit **
  18  norm          .80941        .56548        .70884E-07   -.89350E-03
  19  Prefactor     10.101        13.290       -.82817E-07   -.24935E-03
  20  Prefactor     .10000E-03    58.039        .21674E-04** at limit **
  21  Prefactor     8.9842        8.2776       -.74723E-07   -.10146E-03
  22  norm          1.9088        1.4874        .15074E-06   -.18017E-03
  23  Prefactor     .10000E-03    13.088        .34720E-06** at limit **
  24  Prefactor     12.347        45.655       -.34032E-05   -.71799E-04
  25  Prefactor     19.479        52.947       -.22083E-05   -.27555E-04
  26  Prefactor     .10000E-03    16.995       -.73277E-05** at limit **
  27  norm          .10004E-03    174.99        .93838E-04** at limit **
  28  Prefactor     7.3246        9.9956        .29814E-06   -.71591E-04
  29  Normalizat    1.0159        .24118       -.42934E-05   -.24995E-03
  30  Prefactor     1.0425        .19455        .36225E-06   -.52741E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 6.52196
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 86.29
  Prefactor  = 0.0001
  Prefactor  = 46.6212
  Prefactor  = 40.7087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.55786
  norm       = 3.0698
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.809414
  Prefactor  = 10.101
  Prefactor  = 0.0001
  Prefactor  = 8.98417
  norm       = 1.90884
  Prefactor  = 0.0001
  Prefactor  = 12.3473
  Prefactor  = 19.4788
  Prefactor  = 0.0001
  norm       = 0.000100041
  Prefactor  = 7.32457
  Normalizat = 1.01591
  Prefactor  = 1.0425
 **********
 **   18 **HESSE 
 **********

 FCN=   5104.617     FROM HESSE     STATUS=OK           582 CALLS     4523 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    246.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5220        10.364        .15717E-03   -1.5197    
   5  Prefactor     .10000E-03    14.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     86.290        86.404        .21629E-03   -1.3847    
   8  Prefactor     .10000E-03    69.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.621        47.615        .58732E-04   -1.4341    
  10  Prefactor     40.709        36.391        .62825E-04   -1.4431    
  11  Prefactor     .10000E-03    28.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.5579        3.5450        .10991E-03   -1.5281    
  14  norm          3.0698        2.6708        .10345E-03   -1.5358    
  15  Prefactor     .10000E-03    31.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    17.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    326.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .80941        .55013        .41330E-04   -1.5528    
  19  Prefactor     10.101        13.295        .12607E-03   -1.5072    
  20  Prefactor     .10000E-03    58.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.9842        8.2734        .13372E-03   -1.5108    
  22  norm          1.9088        1.4748        .73395E-04   -1.5432    
  23  Prefactor     .10000E-03    13.512        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.347        45.620        .11396E-03   -1.5005    
  25  Prefactor     19.479        52.944        .90741E-04   -1.4825    
  26  Prefactor     .10000E-03    16.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10004E-03    179.55        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     7.3246        9.9942        .14821E-03   -1.5167    
  29  Normalizat    1.0159        .28182        .29412E-03   -.92499    
  30  Prefactor     1.0425        .22666        .24593E-03   -.91326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32452e-09
Minuit parameter uncertainties:
  1  4.06848e-05
  2  0.000570187
  3  0.000407931
  4  10.3667
  5  0.00040948
  6  1.36672e-05
  7  86.5306
  8  7.95854e-05
  9  47.6534
  10  36.4112
  11  0.000136274
  12  4.51017e-06
  13  3.54514
  14  2.67085
  15  2.48937e-05
  16  6.14864e-06
  17  0.00187833
  18  0.550131
  19  13.2985
  20  6.80469e-05
  21  8.27448
  22  1.4748
  23  4.17751e-05
  24  45.7497
  25  53.0725
  26  1.08734e-05
  27  0.00542047
  28  9.99648
  29  0.28223
  30  0.226864
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  6.149e-06  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.042e+00  2.269e-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.016e+00  2.822e-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: 5.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608069/likelihoodResults_396921601_397180801_4FGL_J1225.0+0330_daily_bin608.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) = 5104.61695644
delta logL = -0.000263579953753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5104.61669714
delta logL = -4.28638577432e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5920       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0426       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=   5104.617     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      268 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    579.79        .18142E-01** at limit **
   2  alpha         1.9967        2.7124        .19092        .30249E-07
   3  Normalizat    1.0159        .32743E-01    .29412E-03    .35004E-03
   4  Prefactor     1.0425        .27861E-01    .24593E-03    .42173E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.99672
  Normalizat = 1.0159
  Prefactor  = 1.0425
 **********
 **   18 **HESSE 
 **********

 FCN=   5104.617     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    19.291        .30311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9967        3.4382        .76369E-02   -.20270    
   3  Normalizat    1.0159        .26233        .58824E-04   -.92500    
   4  Prefactor     1.0425        .22330        .49185E-04   -.91326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45123e-10
Minuit parameter uncertainties:
  1  0.000632654
  2  696.5
  3  0.262663
  4  0.223496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608069': 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) = 5104.61669267
delta logL = 1.82014446182e-07

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  6.327e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.997e+00  6.965e+02  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.043e+00  2.235e-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.016e+00  2.627e-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/608069/cmap_HighResolution_396921601_397180801_4FGL_J1225.0+0330_daily_bin608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='5.78e-08', time_completed='2021-09-05 14:06:43.226715', job_id='608069', GAL2='1.04', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630876003.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='608' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:06:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 608069: <4FGL_J1225.0+0330_daily_bin608> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin608 186.252 3.5098 396921601 397180801 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 :                                   789.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

