/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 9 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 = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1257.8+3228_daily_bin306
RA = 194.473, Dec = 32.4721
tmin = 318643201, tmax = 318902401
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='42718', job_status='RUN', time_executed='2021-09-06 11:56:46.246287', time_epoch_executed='1630954606.25' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42718

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42718/ft1_4FGL_J1257.8+3228_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42718/ft2_4FGL_J1257.8+3228_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42718/ft1_4FGL_J1257.8+3228_daily_bin306.fits outfile=/scratch/kocevski/42718/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin306.fits ra=194.473 dec=32.4721 rad=12.0 tmin=318643201.0 tmax=318902401.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.57
user 3.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/42718/ft2_4FGL_J1257.8+3228_daily_bin306.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/42718/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin306.fits evtable="EVENTS" outfile="/scratch/kocevski/42718/ft1_filtered_4FGL_J1257.8+3228_daily_bin306.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.64
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42718/ft1_filtered_4FGL_J1257.8+3228_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/42718/ft2_4FGL_J1257.8+3228_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/42718/ltcube_318643201_318902401_4FGL_J1257.8+3228_daily_bin306.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/42718/ft2_4FGL_J1257.8+3228_daily_bin306.fits
.....................!
real 12.30
user 11.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42718/ft1_filtered_4FGL_J1257.8+3228_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/42718/ft2_4FGL_J1257.8+3228_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/42718/ltcube_318643201_318902401_4FGL_J1257.8+3228_daily_bin306.fits outfile=/scratch/kocevski/42718/expmap_318643201_318902401_4FGL_J1257.8+3228_daily_bin306.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/42718/ltcube_318643201_318902401_4FGL_J1257.8+3228_daily_bin306.fits
.....................!
real 193.52
user 186.20
sys 5.15

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/42718/ft1_filtered_4FGL_J1257.8+3228_daily_bin306.fits scfile=/scratch/kocevski/42718/ft2_4FGL_J1257.8+3228_daily_bin306.fits outfile=/scratch/kocevski/42718/cmap_318643201_318902401_4FGL_J1257.8+3228_daily_bin306.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42718/ft1_filtered_4FGL_J1257.8+3228_daily_bin306.fits scfile=/scratch/kocevski/42718/ft2_4FGL_J1257.8+3228_daily_bin306.fits outfile=/scratch/kocevski/42718/cmap_HighResolution_318643201_318902401_4FGL_J1257.8+3228_daily_bin306.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/42718/ft1_filtered_4FGL_J1257.8+3228_daily_bin306.fits', '/scratch/kocevski/42718/ft2_4FGL_J1257.8+3228_daily_bin306.fits', expMap='/scratch/kocevski/42718/expmap_318643201_318902401_4FGL_J1257.8+3228_daily_bin306.fits', expCube='/scratch/kocevski/42718/ltcube_318643201_318902401_4FGL_J1257.8+3228_daily_bin306.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/42718/Model_4FGL_J1257.8+3228_daily_bin306.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/42718/ft1_filtered_4FGL_J1257.8+3228_daily_bin306.fits
Spacecraft file(s): /scratch/kocevski/42718/ft2_4FGL_J1257.8+3228_daily_bin306.fits
Exposure map: /scratch/kocevski/42718/expmap_318643201_318902401_4FGL_J1257.8+3228_daily_bin306.fits
Exposure cube: /scratch/kocevski/42718/ltcube_318643201_318902401_4FGL_J1257.8+3228_daily_bin306.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/42718/Model_4FGL_J1257.8+3228_daily_bin306.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) = 5748.14791647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5784       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8505       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0056       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5590       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0193       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7661       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.269       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5744       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2071       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    61.863       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8479       1.0000         .10000E-03   10000.    
    18 'norm      '    5.1138       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3846       1.0000         .10000E-03   10000.    
    21 'norm      '    .34162E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    35.139       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3115       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.111       1.0000         .10000E-03   10000.    
    28 'Prefactor '    80.199       1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.5813       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .80828       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .75540       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2000       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=   5748.111     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     4413 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.619       -.15242E-04** at limit **
   2  norm          1.5784        1.7161        .31185E-07    .43317E-04
   3  Prefactor     4.8507        5.0991        .22641E-06    .37022E-04
   4  Prefactor     3.0055        2.0858        .92341E-07    .38797E-04
   5  Prefactor     2.5591        1.7314        .75076E-07    .20890E-04
   6  Prefactor     .10000E-03    2.8565        .26428E-06** at limit **
   7  norm          2.0193        2.8785        .97567E-07   -.18872E-04
   8  Prefactor     4.7661        5.4733        .16968E-06    .78621E-05
   9  Prefactor     24.269        21.957        .33670E-07   -.16788E-04
  10  Prefactor     .10000E-03    45.013       -.67680E-05** at limit **
  11  Prefactor     .10000E-03    1.8998       -.91597E-07** at limit **
  12  Prefactor     9.5750        8.1553       -.75489E-06   -.89322E-04
  13  norm          2.2084        5.7429        .10874E-05    .10993E-03
  14  Prefactor     .10000E-03    16.266        .19036E-05** at limit **
  15  Prefactor     61.860        37.231       -.19528E-05    .52988E-04
  16  norm          .10000E-03    1.7761       -.10240E-06** at limit **
  17  Prefactor     3.8521        48.046        .91198E-05    .20008E-04
  18  norm          5.1135        6.5672       -.58917E-06   -.54501E-03
  19  norm          .10000E-03    3.7561        .87708E-08** at limit **
  20  norm          1.3843        3.1857        .68825E-06    .99996E-03
  21  norm          .10370E-03    4.2164       -.15480E-05** at limit **
  22  norm          35.140        19.006        .38307E-06   -.84468E-05
  23  Prefactor     2.3122        3.1879        .36534E-07   -.59961E-04
  24  Prefactor     .10000E-03    4.4391       -.34779E-06** at limit **
  25  norm          .10000E-03    4.0683        .68492E-06** at limit **
  26  Prefactor     .10000E-03    29.740        .21461E-04** at limit **
  27  Prefactor     23.110        14.813       -.40021E-06   -.49625E-05
  28  Prefactor     80.204        29.374        .25920E-05   -.51076E-06
  29  Prefactor     9.5958        94.065        .38705E-04   -.13275E-05
  30  Prefactor     .80767        .88732        .22061E-06   -.23331E-02
  31  Normalizat    .75521        .17530       -.27061E-05    .49565E-04
  32  Prefactor     1.2003        .20998       -.26704E-06   -.22191E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.57838
  Prefactor  = 4.85071
  Prefactor  = 3.00554
  Prefactor  = 2.55906
  Prefactor  = 0.0001
  norm       = 2.01926
  Prefactor  = 4.76606
  Prefactor  = 24.2694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.57502
  norm       = 2.20843
  Prefactor  = 0.0001
  Prefactor  = 61.8604
  norm       = 0.0001
  Prefactor  = 3.85208
  norm       = 5.11355
  norm       = 0.0001
  norm       = 1.38427
  norm       = 0.000103704
  norm       = 35.1399
  Prefactor  = 2.31222
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1095
  Prefactor  = 80.2037
  Prefactor  = 9.59583
  Prefactor  = 0.807665
  Normalizat = 0.755209
  Prefactor  = 1.20027
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.111     FROM HESSE     STATUS=OK           673 CALLS     5086 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5784        1.7003        .98801E-04   -1.5457    
   3  Prefactor     4.8507        5.1024        .17028E-03   -1.5267    
   4  Prefactor     3.0055        2.0891        .86713E-04   -1.5361    
   5  Prefactor     2.5591        1.7305        .78960E-04   -1.5388    
   6  Prefactor     .10000E-03    2.8820        .12511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0193        2.8588        .14897E-03   -1.5424    
   8  Prefactor     4.7661        5.4715        .18430E-03   -1.5271    
   9  Prefactor     24.269        21.945        .81312E-04   -1.4722    
  10  Prefactor     .10000E-03    45.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9028        .10205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5750        8.0564        .12951E-03   -1.5089    
  13  norm          2.2084        5.6176        .24295E-03   -1.5411    
  14  Prefactor     .10000E-03    16.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     61.860        36.498        .51016E-04   -1.4133    
  16  norm          .10000E-03    1.8085        .98628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8521        45.138        .20573E-03   -1.5315    
  18  norm          5.1135        6.5059        .88895E-03   -1.5256    
  19  norm          .10000E-03    3.7578        .14351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3843        3.4626        .16604E-03   -1.5473    
  21  norm          .10370E-03    8.0941        .48288E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          35.140        19.004        .67604E-04   -1.4522    
  23  Prefactor     2.3122        3.1481        .14462E-03   -1.5404    
  24  Prefactor     .10000E-03    4.4430        .15594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.1093        .14932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    29.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     23.110        14.824        .83321E-04   -1.4746    
  28  Prefactor     80.204        29.384        .44847E-04   -1.3914    
  29  Prefactor     9.5958        93.776        .12946E-03   -1.5088    
  30  Prefactor     .80767        4.1587        .14583E-02   -1.5528    
  31  Normalizat    .75521        .20620        .25991E-03   -1.0175    
  32  Prefactor     1.2003        .24746        .26630E-03   -.86323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09534e-08
Minuit parameter uncertainties:
  1  4.95901e-05
  2  1.7003
  3  5.10285
  4  2.08917
  5  1.73054
  6  5.01872e-06
  7  2.85899
  8  5.47203
  9  21.9522
  10  2.70223e-05
  11  2.54966e-06
  12  8.05727
  13  5.61899
  14  4.92567e-06
  15  36.5114
  16  6.78389e-06
  17  26.397
  18  6.50682
  19  7.38661e-07
  20  3.46309
  21  0.0109522
  22  19.0076
  23  3.14836
  24  1.10218e-06
  25  4.94988e-06
  26  1.12426e-05
  27  14.8261
  28  29.3893
  29  60.1183
  30  3.6656
  31  0.206411
  32  0.247704
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  2.208e+00  5.619e+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:  1.200e+00  2.477e-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:  7.552e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/42718/likelihoodResults_318643201_318902401_4FGL_J1257.8+3228_daily_bin306.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) = 5747.86351914
delta logL = 0.247029678511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5747.84768472
delta logL = 0.262864103107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6521       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2287       1.0000          .0000       5.0000    
     3 'Normalizat'    .72611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2215       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=   5747.848     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6508        45.204        .82108E-02    .75068E-03
   2  alpha         3.2291        4.0294        .43614        .42994E-04
   3  Normalizat    .72607        .40804E-01    .42638E-01    .18098E-04
   4  Prefactor     1.2215        .50482E-01    .59731E-01    .38529E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.65082
  alpha      = 3.22907
  Normalizat = 0.726071
  Prefactor  = 1.22154
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.848     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6508        5.2791        .11398E-03   -1.5451    
   2  alpha         3.2291        1.8722        .18940E-01    .29593    
   3  Normalizat    .72607        .20001        .26439E-03   -1.0287    
   4  Prefactor     1.2215        .24892        .26415E-03   -.85671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45706e-08
Minuit parameter uncertainties:
  1  5.28059
  2  2.15056
  3  0.200212
  4  0.249161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42718': 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) = 5747.84768461
delta logL = 0.26286421353

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.651e+00  5.281e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.229e+00  2.151e+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:  1.222e+00  2.492e-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:  7.261e-01  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/42718/cmap_HighResolution_318643201_318902401_4FGL_J1257.8+3228_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-05', job_status='DONE', photon_flux_upper_limit='8.25e-08', time_completed='2021-09-06 12:11:46.500787', job_id='42718', GAL2='1.22', fit_tolerance='1e-08', EG2='0.73', EG='0.76', time_epoch_completed='1630955506.5', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='2.63e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='306' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:11:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 42718: <4FGL_J1257.8+3228_daily_bin306> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin306> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:56:07 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:56:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:56:08 2021
Terminated at Mon Sep  6 12:11:47 2021
Results reported at Mon Sep  6 12:11:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin306 194.473 32.4721 318643201 318902401 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 :                                   883.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

