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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin1341
RA = 194.473, Dec = 32.4721
tmin = 586915201, tmax = 587174401
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='49570', job_status='RUN', time_executed='2021-09-06 12:16:18.009039', time_epoch_executed='1630955778.01' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='1341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49570

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49570/ft1_4FGL_J1257.8+3228_daily_bin1341.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49570/ft2_4FGL_J1257.8+3228_daily_bin1341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49570/ft1_4FGL_J1257.8+3228_daily_bin1341.fits outfile=/scratch/kocevski/49570/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1341.fits ra=194.473 dec=32.4721 rad=12.0 tmin=586915201.0 tmax=587174401.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.01
user 3.37
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/49570/ft2_4FGL_J1257.8+3228_daily_bin1341.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49570/ft2_4FGL_J1257.8+3228_daily_bin1341.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/49570/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin1341.fits evtable="EVENTS" outfile="/scratch/kocevski/49570/ft1_filtered_4FGL_J1257.8+3228_daily_bin1341.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 1.61
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49570/ft1_filtered_4FGL_J1257.8+3228_daily_bin1341.fits" evtable="EVENTS" scfile=/scratch/kocevski/49570/ft2_4FGL_J1257.8+3228_daily_bin1341.fits sctable="SC_DATA" outfile=/scratch/kocevski/49570/ltcube_586915201_587174401_4FGL_J1257.8+3228_daily_bin1341.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/49570/ft2_4FGL_J1257.8+3228_daily_bin1341.fits
.....................!
real 12.18
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49570/ft1_filtered_4FGL_J1257.8+3228_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/49570/ft2_4FGL_J1257.8+3228_daily_bin1341.fits sctable="SC_DATA" expcube=/scratch/kocevski/49570/ltcube_586915201_587174401_4FGL_J1257.8+3228_daily_bin1341.fits outfile=/scratch/kocevski/49570/expmap_586915201_587174401_4FGL_J1257.8+3228_daily_bin1341.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/49570/ltcube_586915201_587174401_4FGL_J1257.8+3228_daily_bin1341.fits
.....................!
real 194.62
user 185.19
sys 4.60

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1257.8+3228 @ 194.473 32.4721

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/49570/ft1_filtered_4FGL_J1257.8+3228_daily_bin1341.fits scfile=/scratch/kocevski/49570/ft2_4FGL_J1257.8+3228_daily_bin1341.fits outfile=/scratch/kocevski/49570/cmap_586915201_587174401_4FGL_J1257.8+3228_daily_bin1341.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=194.473 yref=32.4721 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49570/ft1_filtered_4FGL_J1257.8+3228_daily_bin1341.fits scfile=/scratch/kocevski/49570/ft2_4FGL_J1257.8+3228_daily_bin1341.fits outfile=/scratch/kocevski/49570/cmap_HighResolution_586915201_587174401_4FGL_J1257.8+3228_daily_bin1341.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=194.473 yref=32.4721 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/49570/ft1_filtered_4FGL_J1257.8+3228_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/49570/ft2_4FGL_J1257.8+3228_daily_bin1341.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/49570/Model_4FGL_J1257.8+3228_daily_bin1341.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/49570/ft1_filtered_4FGL_J1257.8+3228_daily_bin1341.fits.....................!
real 46.61
user 45.21
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49570/ft1_filtered_4FGL_J1257.8+3228_daily_bin1341.fits', '/scratch/kocevski/49570/ft2_4FGL_J1257.8+3228_daily_bin1341.fits', expMap='/scratch/kocevski/49570/expmap_586915201_587174401_4FGL_J1257.8+3228_daily_bin1341.fits', expCube='/scratch/kocevski/49570/ltcube_586915201_587174401_4FGL_J1257.8+3228_daily_bin1341.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49570/Model_4FGL_J1257.8+3228_daily_bin1341.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.8+3228'

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.994e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/49570/ft1_filtered_4FGL_J1257.8+3228_daily_bin1341.fits
Spacecraft file(s): /scratch/kocevski/49570/ft2_4FGL_J1257.8+3228_daily_bin1341.fits
Exposure map: /scratch/kocevski/49570/expmap_586915201_587174401_4FGL_J1257.8+3228_daily_bin1341.fits
Exposure cube: /scratch/kocevski/49570/ltcube_586915201_587174401_4FGL_J1257.8+3228_daily_bin1341.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49570/Model_4FGL_J1257.8+3228_daily_bin1341.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) = 5607.5053417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9391       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8447       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13640E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8282       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66212       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7348       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1432       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5295       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0569       1.0000         .10000E-03   10000.    
    19 'norm      '    18.665       1.0000         .10000E-03   10000.    
    20 'norm      '    8.0704       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .38885E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14708E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    15.946       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.0029       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0950       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .93085       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5607.401     FROM MIGRAD    STATUS=CONVERGED    850 CALLS     3746 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.752        .19747E-06** at limit **
   2  norm          .10000E-03    1.9661       -.22584E-07** at limit **
   3  Prefactor     1.9426        8.6879        .10980E-04    .14542E-03
   4  Prefactor     4.8451        2.6790       -.78897E-07   -.99297E-04
   5  Prefactor     .10000E-03    1.0686        .78887E-07** at limit **
   6  Prefactor     .10000E-03    4.6736       -.32885E-05** at limit **
   7  norm          1.4859        3.5371       -.36748E-06   -.78513E-04
   8  Prefactor     8.8309        9.0467        .37884E-07    .85456E-05
   9  Prefactor     .10000E-03    14.479       -.19909E-06** at limit **
  10  Prefactor     .10000E-03    20.768        .26776E-06** at limit **
  11  Prefactor     .10000E-03    1.6172        .25140E-08** at limit **
  12  Prefactor     .66041        4.4994       -.76574E-06   -.63851E-04
  13  norm          2.7399        5.1330       -.71700E-06   -.21750E-03
  14  Prefactor     .10000E-03    28.253       -.16540E-06** at limit **
  15  Prefactor     4.1283        49.800        .44465E-05    .16968E-04
  16  norm          .10000E-03    1.1033       -.87542E-10** at limit **
  17  Prefactor     5.5326        15.019        .81222E-06    .90708E-04
  18  norm          4.0588        4.7617        .44090E-06    .11259E-03
  19  norm          18.664        13.972        .97934E-07    .30894E-04
  20  norm          8.0707        5.2014        .32047E-06    .29505E-03
  21  norm          .10000E-03    2.8353       -.25684E-06** at limit **
  22  norm          .10006E-03    16.993       -.39344E-05** at limit **
  23  Prefactor     .10002E-03    2.2101        .13153E-05** at limit **
  24  Prefactor     .10000E-03    15.909       -.21677E-06** at limit **
  25  norm          15.935        9.2658        .12926E-06    .12200E-03
  26  Prefactor     .10002E-03    62.545        .79078E-06** at limit **
  27  Prefactor     9.0173        15.597        .51012E-06    .31492E-04
  28  Prefactor     .10000E-03    7.3868       -.29660E-07** at limit **
  29  Prefactor     .10002E-03    45.854       -.79841E-06** at limit **
  30  Prefactor     .10000E-03    2.0336       -.89259E-08** at limit **
  31  Normalizat    1.0950        .18200       -.45123E-06    .44760E-03
  32  Prefactor     .93064        .21372       -.69896E-06    .25163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.94257
  Prefactor  = 4.84506
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.48593
  Prefactor  = 8.8309
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.66041
  norm       = 2.73988
  Prefactor  = 0.000100001
  Prefactor  = 4.12828
  norm       = 0.0001
  Prefactor  = 5.53262
  norm       = 4.05882
  norm       = 18.6639
  norm       = 8.07068
  norm       = 0.0001
  norm       = 0.000100059
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  norm       = 15.9351
  Prefactor  = 0.000100021
  Prefactor  = 9.01727
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Normalizat = 1.09498
  Prefactor  = 0.930643
 **********
 **   18 **HESSE 
 **********

 FCN=   5607.401     FROM HESSE     STATUS=OK           661 CALLS     4407 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0353        .20421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9426        9.3117        .14908E-02   -1.5429    
   4  Prefactor     4.8451        2.6494        .86925E-04   -1.5268    
   5  Prefactor     .10000E-03    1.5972        .14870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.829        .28406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4859        3.4006        .20383E-03   -1.5464    
   8  Prefactor     8.8309        9.0291        .13490E-03   -1.5114    
   9  Prefactor     .10000E-03    14.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6183        .93000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .66041        16.832        .28897E-02   -1.5545    
  13  norm          2.7399        5.0553        .19715E-03   -1.5377    
  14  Prefactor     .10000E-03    28.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1283        48.236        .19802E-03   -1.5302    
  16  norm          .10000E-03    1.1093        .76805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.5326        14.949        .17086E-03   -1.5237    
  18  norm          4.0588        4.7131        .16654E-03   -1.5305    
  19  norm          18.664        13.971        .92706E-04   -1.4844    
  20  norm          8.0707        5.1153        .12031E-03   -1.5140    
  21  norm          .10000E-03    2.8408        .12308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10006E-03    89.757        .57144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    14.063        .19653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          15.935        9.1502        .50149E-03   -1.4909    
  26  Prefactor     .10002E-03    63.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.0173        15.586        .13358E-03   -1.5107    
  28  Prefactor     .10000E-03    7.3951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10002E-03    46.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.0443        .10426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0950        .21378        .23029E-03   -.89913    
  32  Prefactor     .93064        .25140        .29407E-03   -.95078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86823e-08
Minuit parameter uncertainties:
  1  0.000351766
  2  5.20556e-06
  3  8.50807
  4  2.64942
  5  9.09861e-06
  6  0.000181517
  7  3.401
  8  9.03053
  9  0.000156245
  10  0.000392966
  11  4.59251e-07
  12  6.6698
  13  5.05612
  14  0.000273684
  15  28.251
  16  6.46808e-07
  17  14.9594
  18  4.71351
  19  13.9735
  20  5.11561
  21  2.85536e-05
  22  0.00462057
  23  0.00107415
  24  8.03659e-06
  25  9.151
  26  0.00231056
  27  15.5932
  28  4.56515e-06
  29  0.00188904
  30  1.48745e-06
  31  0.213948
  32  0.251719
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.740e+00  5.056e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.219e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  9.306e-01  2.517e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  1.095e+00  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 194.473 32.472
Photon Flux Upper Limit: 8.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49570/likelihoodResults_586915201_587174401_4FGL_J1257.8+3228_daily_bin1341.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) = 5607.38197757
delta logL = 0.0189663772717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5607.38166321
delta logL = 0.0192807320846

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7397       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4275       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93329       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5607.382     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      190 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7028        4.9708        .61494E-02    .49398E-03
   2  alpha         2.4299        1.1586        .41174E-01    .10109E-04
   3  Normalizat    1.0906        .17747        .38400E-01    .66239E-05
   4  Prefactor     .93337        .21074        .66391E-01    .13728E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.70281
  alpha      = 2.42988
  Normalizat = 1.09057
  Prefactor  = 0.933373
 **********
 **   18 **HESSE 
 **********

 FCN=   5607.382     FROM HESSE     STATUS=OK            31 CALLS      221 TOTAL
                     EDM=   .31E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7028        4.3655        .18488E-03   -1.5379    
   2  alpha         2.4299        1.0328        .16469E-02   -.28054E-01
   3  Normalizat    1.0906        .20942        .23067E-03   -.90055    
   4  Prefactor     .93337        .24793        .29367E-03   -.94985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11869e-14
Minuit parameter uncertainties:
  1  4.36598
  2  1.06477
  3  0.209577
  4  0.248233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49570': 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) = 5607.38162736
delta logL = 0.019316586754

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.703e+00  4.366e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.430e+00  1.065e+00  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.028e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  7.509e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  9.334e-01  2.482e-01  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
591   Normalization:  1.091e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
Ra Dec: 194.473 32.472

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/49570/cmap_HighResolution_586915201_587174401_4FGL_J1257.8+3228_daily_bin1341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-05', job_status='DONE', photon_flux_upper_limit='8.38e-08', time_completed='2021-09-06 12:29:43.512132', job_id='49570', GAL2='0.93', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630956583.51', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.93e-02', ts2='0.55', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1341' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:29:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 49570: <4FGL_J1257.8+3228_daily_bin1341> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin1341> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:15:54 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:15:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:15:56 2021
Terminated at Mon Sep  6 12:29:44 2021
Results reported at Mon Sep  6 12:29:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin1341 194.473 32.4721 586915201 587174401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.8+3228 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   790.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             285.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            830 sec.

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

