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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin763
RA = 186.252, Dec = 3.5098
tmin = 437097601, tmax = 437356801
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='608364', job_status='RUN', time_executed='2021-09-05 13:54:29.545783', time_epoch_executed='1630875269.55' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608364/ft1_4FGL_J1225.0+0330_daily_bin763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608364/ft2_4FGL_J1225.0+0330_daily_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608364/ft1_4FGL_J1225.0+0330_daily_bin763.fits outfile=/scratch/kocevski/608364/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin763.fits ra=186.252 dec=3.5098 rad=12.0 tmin=437097601.0 tmax=437356801.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 5.10
user 4.87
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608364/ft1_filtered_4FGL_J1225.0+0330_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/608364/ft2_4FGL_J1225.0+0330_daily_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/608364/ltcube_437097601_437356801_4FGL_J1225.0+0330_daily_bin763.fits outfile=/scratch/kocevski/608364/expmap_437097601_437356801_4FGL_J1225.0+0330_daily_bin763.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/608364/ltcube_437097601_437356801_4FGL_J1225.0+0330_daily_bin763.fits
.....................!
real 189.83
user 185.02
sys 4.43

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/608364/ft1_filtered_4FGL_J1225.0+0330_daily_bin763.fits scfile=/scratch/kocevski/608364/ft2_4FGL_J1225.0+0330_daily_bin763.fits outfile=/scratch/kocevski/608364/cmap_437097601_437356801_4FGL_J1225.0+0330_daily_bin763.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.70
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608364/ft1_filtered_4FGL_J1225.0+0330_daily_bin763.fits scfile=/scratch/kocevski/608364/ft2_4FGL_J1225.0+0330_daily_bin763.fits outfile=/scratch/kocevski/608364/cmap_HighResolution_437097601_437356801_4FGL_J1225.0+0330_daily_bin763.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.033       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8906       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.570       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.209       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    138.67       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.890       1.0000         .10000E-03   10000.    
    13 'norm      '    .86552       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5489       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5739       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.3120       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.051       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11017E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3309       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78985       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=   5288.689     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3883 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.024        43.629       -.24186E-05   -.22563E-03
   2  Prefactor     .10005E-03    84.036        .10764E-04** at limit **
   3  Prefactor     .10000E-03    15.917        .22846E-05** at limit **
   4  Prefactor     3.8892        10.003        .66762E-05   -.83003E-03
   5  Prefactor     27.564        26.071       -.11551E-06   -.66464E-04
   6  Prefactor     27.202        29.350       -.86858E-06   -.75981E-04
   7  Prefactor     .10000E-03    54.432        .14472E-05** at limit **
   8  Prefactor     138.68        105.96        .24280E-05    .97123E-04
   9  Prefactor     .10000E-03    33.618       -.46304E-06** at limit **
  10  Prefactor     .10001E-03    26.690        .36067E-05** at limit **
  11  Prefactor     .10000E-03    17.534       -.13412E-05** at limit **
  12  Prefactor     14.890        16.013       -.70991E-06   -.75161E-04
  13  norm          .86468        3.0020        .80236E-06   -.18026E-03
  14  norm          1.5361        5.3503        .59779E-06   -.98582E-04
  15  Prefactor     .10001E-03    41.835       -.35913E-05** at limit **
  16  norm          .10006E-03    116.99       -.12422E-04** at limit **
  17  Prefactor     .10000E-03    106.80        .70936E-06** at limit **
  18  norm          1.5738        .78123       -.60279E-07    .12759E-03
  19  Prefactor     .10000E-03    3.4894        .39716E-08** at limit **
  20  Prefactor     .10000E-03    10.428       -.68400E-06** at limit **
  21  Prefactor     .10000E-03    3.5243        .28395E-07** at limit **
  22  norm          7.3124        2.6954       -.17943E-08    .73550E-04
  23  Prefactor     .10000E-03    7.1340        .93973E-07** at limit **
  24  Prefactor     .10000E-03    34.665       -.95574E-06** at limit **
  25  Prefactor     .10000E-03    34.834       -.94537E-06** at limit **
  26  Prefactor     21.032        40.613       -.42248E-05   -.20781E-03
  27  norm          .10000E-03    10.218        .64271E-06** at limit **
  28  Prefactor     .10000E-03    17.994       -.19991E-05** at limit **
  29  Normalizat    1.3311        .24947        .81189E-07   -.66784E-04
  30  Prefactor     .78966        .18810       -.81994E-06   -.12815E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.0244
  Prefactor  = 0.000100047
  Prefactor  = 0.000100002
  Prefactor  = 3.88917
  Prefactor  = 27.5642
  Prefactor  = 27.2015
  Prefactor  = 0.000100001
  Prefactor  = 138.678
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 14.8903
  norm       = 0.86468
  norm       = 1.53608
  Prefactor  = 0.000100005
  norm       = 0.00010006
  Prefactor  = 0.0001
  norm       = 1.5738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.31237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0324
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.33106
  Prefactor  = 0.789662
 **********
 **   18 **HESSE 
 **********

 FCN=   5288.689     FROM HESSE     STATUS=OK           576 CALLS     4459 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.024        43.721        .48662E-04   -1.4057    
   2  Prefactor     .10005E-03    87.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8892        10.842        .10228E-02   -1.5314    
   5  Prefactor     27.564        26.256        .76298E-04   -1.4657    
   6  Prefactor     27.202        29.499        .76801E-04   -1.4664    
   7  Prefactor     .10000E-03    54.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     138.68        106.39        .17103E-03   -1.3347    
   9  Prefactor     .10000E-03    33.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    27.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.890        15.399        .10380E-03   -1.4936    
  13  norm          .86468        2.8273        .19476E-03   -1.5522    
  14  norm          1.5361        5.2625        .26872E-03   -1.5460    
  15  Prefactor     .10001E-03    42.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10006E-03    121.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    106.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5738        .76569        .39699E-04   -1.5457    
  19  Prefactor     .10000E-03    3.4908        .13267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5293        .13333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.3124        2.6925        .67461E-04   -1.5167    
  23  Prefactor     .10000E-03    7.2291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    34.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    34.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.032        41.226        .87298E-04   -1.4790    
  27  norm          .10000E-03    10.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    18.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3311        .29627        .28620E-03   -.82644    
  30  Prefactor     .78966        .22147        .28642E-03   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1986e-09
Minuit parameter uncertainties:
  1  43.7419
  2  0.00405418
  3  0.000338057
  4  10.8477
  5  26.2674
  6  29.5152
  7  0.000435623
  8  106.539
  9  0.000113031
  10  0.000787305
  11  0.000224871
  12  15.4032
  13  2.82773
  14  5.26408
  15  0.000951926
  16  0.0053991
  17  0.000302568
  18  0.765698
  19  2.61794e-07
  20  8.98325e-05
  21  7.81759e-07
  22  2.69256
  23  1.68275e-06
  24  0.000236353
  25  0.000236162
  26  41.2823
  27  8.09904e-05
  28  0.000229229
  29  0.296648
  30  0.221721
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.001e-04  5.399e-03  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:  7.897e-01  2.217e-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.331e+00  2.966e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608364/likelihoodResults_437097601_437356801_4FGL_J1225.0+0330_daily_bin763.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) = 5288.68950703
delta logL = -3.90234436054e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5288.68950703
delta logL = -3.90218756365e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3972       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78966       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=   5288.689     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      189 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    117.30        .90713E-02** at limit **
   2  alpha         2.4139        3.5329        .41196       -.71577E-06
   3  Normalizat    1.3311        .23221        .64700E-01    .70041E-05
   4  Prefactor     .78966        .18520        .64748E-01    .14826E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.4139
  Normalizat = 1.33106
  Prefactor  = 0.789661
 **********
 **   18 **HESSE 
 **********

 FCN=   5288.689     FROM HESSE     STATUS=OK            29 CALLS      218 TOTAL
                     EDM=   .58E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    117.35        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4139        3.5315        .50000       -.34446E-01
   3  Normalizat    1.3311        .27160        .28619E-03   -.82644    
   4  Prefactor     .78966        .21650        .28642E-03   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78333e-13
Minuit parameter uncertainties:
  1  5.41304e-05
  2  2.49878
  3  0.27189
  4  0.21673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608364': 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) = 5288.689468
delta logL = 4.93855623063e-09

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  5.413e-05  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.414e+00  2.499e+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.897e-01  2.167e-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.331e+00  2.719e-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/608364/cmap_HighResolution_437097601_437356801_4FGL_J1225.0+0330_daily_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-05 14:07:25.177142', job_id='608364', GAL2='0.79', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630876045.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.94e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='763' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:07:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 608364: <4FGL_J1225.0+0330_daily_bin763> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin763 186.252 3.5098 437097601 437356801 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 :                                   773.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            997 sec.

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

