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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin574
RA = 186.252, Dec = 3.5098
tmin = 388108801, tmax = 388368001
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='607993', job_status='RUN', time_executed='2021-09-05 13:52:20.693790', time_epoch_executed='1630875140.69' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607993/ft1_4FGL_J1225.0+0330_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607993/ft2_4FGL_J1225.0+0330_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607993/ft1_4FGL_J1225.0+0330_daily_bin574.fits outfile=/scratch/kocevski/607993/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin574.fits ra=186.252 dec=3.5098 rad=12.0 tmin=388108801.0 tmax=388368001.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 3.39
user 3.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/607993/ft2_4FGL_J1225.0+0330_daily_bin574.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/607993/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin574.fits evtable="EVENTS" outfile="/scratch/kocevski/607993/ft1_filtered_4FGL_J1225.0+0330_daily_bin574.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/607993/ft1_filtered_4FGL_J1225.0+0330_daily_bin574.fits" evtable="EVENTS" scfile=/scratch/kocevski/607993/ft2_4FGL_J1225.0+0330_daily_bin574.fits sctable="SC_DATA" outfile=/scratch/kocevski/607993/ltcube_388108801_388368001_4FGL_J1225.0+0330_daily_bin574.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/607993/ft2_4FGL_J1225.0+0330_daily_bin574.fits
.....................!
real 12.18
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607993/ft1_filtered_4FGL_J1225.0+0330_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/607993/ft2_4FGL_J1225.0+0330_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/607993/ltcube_388108801_388368001_4FGL_J1225.0+0330_daily_bin574.fits outfile=/scratch/kocevski/607993/expmap_388108801_388368001_4FGL_J1225.0+0330_daily_bin574.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/607993/ltcube_388108801_388368001_4FGL_J1225.0+0330_daily_bin574.fits
.....................!
real 191.05
user 185.12
sys 5.37

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/607993/ft1_filtered_4FGL_J1225.0+0330_daily_bin574.fits scfile=/scratch/kocevski/607993/ft2_4FGL_J1225.0+0330_daily_bin574.fits outfile=/scratch/kocevski/607993/cmap_388108801_388368001_4FGL_J1225.0+0330_daily_bin574.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607993/ft1_filtered_4FGL_J1225.0+0330_daily_bin574.fits scfile=/scratch/kocevski/607993/ft2_4FGL_J1225.0+0330_daily_bin574.fits outfile=/scratch/kocevski/607993/cmap_HighResolution_388108801_388368001_4FGL_J1225.0+0330_daily_bin574.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5922       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1317       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    121.91       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.834       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2094       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.238       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1118       1.0000         .10000E-03   10000.    
    14 'norm      '    5.2856       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.8943       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34093E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .62495       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.9929       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9364       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.5647       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3678       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .69564       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=   5396.862     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3883 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5963        26.912       -.15896E-06    .78348E-06
   2  Prefactor     .10000E-03    30.763       -.40677E-06** at limit **
   3  Prefactor     7.1314        9.2673        .64885E-06    .94515E-05
   4  Prefactor     .10000E-03    4.6059       -.48876E-07** at limit **
   5  Prefactor     .10000E-03    7.5594        .25018E-06** at limit **
   6  Prefactor     .10000E-03    12.620       -.40610E-06** at limit **
   7  Prefactor     121.94        94.028       -.30630E-05   -.57096E-05
   8  Prefactor     .10000E-03    17.704       -.43261E-06** at limit **
   9  Prefactor     .10000E-03    11.992        .11874E-06** at limit **
  10  Prefactor     12.836        20.403        .11104E-06    .98918E-05
  11  Prefactor     2.2070        22.535        .62601E-05    .22800E-06
  12  Prefactor     10.246        13.486        .17586E-06    .35342E-05
  13  norm          1.1094        2.2197       -.10694E-06   -.31416E-03
  14  norm          5.2852        4.2162       -.19268E-07   -.94943E-04
  15  Prefactor     .10000E-03    47.801       -.11515E-05** at limit **
  16  norm          5.9030        44.098       -.19557E-05   -.88398E-05
  17  Prefactor     .10000E-03    432.53        .20264E-04** at limit **
  18  norm          .10000E-03    .37250        .33639E-07** at limit **
  19  Prefactor     .63593        7.0809        .73084E-06   -.10752E-03
  20  Prefactor     .10000E-03    9.7258       -.19030E-06** at limit **
  21  Prefactor     .10000E-03    3.8811       -.41184E-07** at limit **
  22  norm          4.9928        2.2639       -.16182E-07   -.13165E-03
  23  Prefactor     6.9374        7.4090        .49418E-06   -.16881E-04
  24  Prefactor     .10000E-03    11.619        .34780E-06** at limit **
  25  Prefactor     .10000E-03    18.118       -.22788E-06** at limit **
  26  Prefactor     .10000E-03    53.060        .11000E-05** at limit **
  27  norm          .10000E-03    22.669        .12096E-05** at limit **
  28  Prefactor     8.5643        13.748       -.17484E-07   -.20209E-04
  29  Normalizat    1.3679        .21883       -.17790E-06   -.61517E-04
  30  Prefactor     .69557        .16642       -.13836E-06   -.46001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.59634
  Prefactor  = 0.0001
  Prefactor  = 7.13145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 121.942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8359
  Prefactor  = 2.20696
  Prefactor  = 10.2456
  norm       = 1.10939
  norm       = 5.28516
  Prefactor  = 0.0001
  norm       = 5.90304
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.63593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.99279
  Prefactor  = 6.93742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.56428
  Normalizat = 1.36787
  Prefactor  = 0.695567
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.862     FROM HESSE     STATUS=OK           592 CALLS     4475 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5963        26.874        .18783E-03   -1.5279    
   2  Prefactor     .10000E-03    30.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1314        9.2648        .75105E-03   -1.5174    
   4  Prefactor     .10000E-03    4.6422        .15395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.5731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     121.94        94.182        .18225E-03   -1.3495    
   8  Prefactor     .10000E-03    17.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.836        20.365        .11181E-03   -1.4991    
  11  Prefactor     2.2070        22.590        .13837E-02   -1.5411    
  12  Prefactor     10.246        12.927        .12523E-03   -1.5068    
  13  norm          1.1094        1.7554        .13675E-02   -1.5497    
  14  norm          5.2852        4.2016        .11297E-03   -1.5248    
  15  Prefactor     .10000E-03    47.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.9030        43.537        .16541E-03   -1.5222    
  17  Prefactor     .10000E-03    431.12        .21335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .69061        .82456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .63593        17.557        .37181E-02   -1.5548    
  20  Prefactor     .10000E-03    9.7416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.8912        .14133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.9928        2.2549        .69100E-04   -1.5261    
  23  Prefactor     6.9374        7.4043        .76164E-03   -1.5181    
  24  Prefactor     .10000E-03    11.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    53.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    22.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.5643        13.864        .13697E-03   -1.5123    
  29  Normalizat    1.3679        .26028        .24947E-03   -.81563    
  30  Prefactor     .69557        .19625        .27144E-03   -1.0370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23548e-08
Minuit parameter uncertainties:
  1  22.2429
  2  1.00004e-07
  3  9.26666
  4  9.084e-07
  5  2.251e-05
  6  3.63387e-06
  7  94.2982
  8  1.65398e-06
  9  9.37106e-07
  10  20.3756
  11  14.1283
  12  12.9307
  13  1.7555
  14  4.20188
  15  3.0874e-05
  16  32.095
  17  0.000470657
  18  1.36721e-06
  19  6.68455
  20  4.46696e-06
  21  9.62328e-07
  22  2.25498
  23  7.40523
  24  4.01352e-07
  25  1.91947e-06
  26  4.17501e-08
  27  7.00741e-06
  28  13.8692
  29  0.260536
  30  0.196443
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  5.903e+00  3.210e+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:  6.956e-01  1.964e-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.368e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/607993/likelihoodResults_388108801_388368001_4FGL_J1225.0+0330_daily_bin574.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) = 5396.31272694
delta logL = 0.549170311704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5396.25783024
delta logL = 0.60406701499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5838       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2754       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72414       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=   5396.258     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      274 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5845        199.64        .16146E-03   -.52456E-03
   2  alpha         4.2754        3.0380        .25095E-01   -.23038E-04
   3  Normalizat    1.2991        .30660        .25434E-03   -.95654E-05
   4  Prefactor     .72431        .22779        .26584E-03    .52859E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.58447
  alpha      = 4.27541
  Normalizat = 1.2991
  Prefactor  = 0.724307
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.258     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5845        13.067        .64585E-05   -1.5235    
   2  alpha         4.2754        1.2864        .10038E-02    .78973    
   3  Normalizat    1.2991        .25011        .10174E-04   -.83593    
   4  Prefactor     .72431        .19552        .10633E-04   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61806e-10
Minuit parameter uncertainties:
  1  13.0735
  2  1.44263
  3  0.250348
  4  0.195707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607993': 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) = 5396.25782977
delta logL = 0.604067484165

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  5.584e+00  1.307e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  4.275e+00  1.443e+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:  7.243e-01  1.957e-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.299e+00  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 186.252 3.510
Photon Index (Free Index): 4.28 +/- 1.44
Photon Flux (Free Index): 7.56e-08 +/- 8.54e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.33e-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/607993/cmap_HighResolution_388108801_388368001_4FGL_J1225.0+0330_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-05', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='6.04e-01', photon_flux2='7.56e-08', job_status='DONE', time_completed='2021-09-05 14:05:35.089571', photon_index_error2='1.44', photon_index2='4.28', ts='0.05', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='7.03e-08', energy_flux_error2='1.33e-05', EG='1.37', time_epoch_completed='1630875935.09', return_code='0', job_id='607993', GAL2='0.72', EG2='1.30', return_code2='0', photon_flux_error2='8.54e-08', ts2='1.40', photon_index='2.40' WHERE bin_id='574' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:05:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 607993: <4FGL_J1225.0+0330_daily_bin574> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin574 186.252 3.5098 388108801 388368001 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 :                                   793.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            911 sec.

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

