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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin190
RA = 194.473, Dec = 32.4721
tmin = 288576001, tmax = 288835201
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='42516', job_status='RUN', time_executed='2021-09-06 11:56:46.602846', time_epoch_executed='1630954606.6' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='190'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42516/ft1_4FGL_J1257.8+3228_daily_bin190.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42516/ft2_4FGL_J1257.8+3228_daily_bin190.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42516/ft1_4FGL_J1257.8+3228_daily_bin190.fits outfile=/scratch/kocevski/42516/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin190.fits ra=194.473 dec=32.4721 rad=12.0 tmin=288576001.0 tmax=288835201.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.84
user 3.36
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42516/ft1_filtered_4FGL_J1257.8+3228_daily_bin190.fits evtable="EVENTS" scfile=/scratch/kocevski/42516/ft2_4FGL_J1257.8+3228_daily_bin190.fits sctable="SC_DATA" expcube=/scratch/kocevski/42516/ltcube_288576001_288835201_4FGL_J1257.8+3228_daily_bin190.fits outfile=/scratch/kocevski/42516/expmap_288576001_288835201_4FGL_J1257.8+3228_daily_bin190.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/42516/ltcube_288576001_288835201_4FGL_J1257.8+3228_daily_bin190.fits
.....................!
real 191.64
user 185.39
sys 4.54

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/42516/ft1_filtered_4FGL_J1257.8+3228_daily_bin190.fits scfile=/scratch/kocevski/42516/ft2_4FGL_J1257.8+3228_daily_bin190.fits outfile=/scratch/kocevski/42516/cmap_288576001_288835201_4FGL_J1257.8+3228_daily_bin190.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42516/ft1_filtered_4FGL_J1257.8+3228_daily_bin190.fits scfile=/scratch/kocevski/42516/ft2_4FGL_J1257.8+3228_daily_bin190.fits outfile=/scratch/kocevski/42516/cmap_HighResolution_288576001_288835201_4FGL_J1257.8+3228_daily_bin190.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.8139       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .43564       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11209E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .69594       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .82187       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.954       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.272       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.472       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2142       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.645       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .53758E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.8474       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.474       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.602       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11221E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.1935       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .75410       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1813       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=   5531.423     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     4379 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.593        .47436E-05** at limit **
   2  norm          6.8142        3.3129       -.11446E-07    .77515E-04
   3  Prefactor     .10000E-03    3.3583        .41061E-06** at limit **
   4  Prefactor     1.8951        2.1215       -.13305E-07    .46763E-04
   5  Prefactor     .43507        1.4546       -.17601E-06    .29124E-04
   6  Prefactor     .10003E-03    9.6807       -.33764E-06** at limit **
   7  norm          .69161        9.2966       -.94179E-06    .53436E-04
   8  Prefactor     .82041        1.3759        .17883E-06   -.43531E-03
   9  Prefactor     21.953        19.684       -.20764E-06    .27798E-04
  10  Prefactor     .10000E-03    31.667       -.11417E-04** at limit **
  11  Prefactor     10.145        9.9027       -.23351E-06    .31645E-04
  12  Prefactor     .10000E-03    3.4918       -.47686E-06** at limit **
  13  norm          .10000E-03    3.2429       -.32065E-06** at limit **
  14  Prefactor     39.254        57.329       -.20557E-04   -.43347E-04
  15  Prefactor     27.479        28.010        .24178E-05    .22816E-03
  16  norm          2.2139        3.7506       -.11855E-06    .27156E-04
  17  Prefactor     .10000E-03    10.176        .48682E-06** at limit **
  18  norm          12.648        7.7658       -.68761E-07    .30541E-03
  19  norm          .10000E-03    37.735        .10633E-04** at limit **
  20  norm          .10000E-03    2.9898       -.10588E-05** at limit **
  21  norm          9.8717        8.9033        .90498E-06    .86693E-03
  22  norm          .10000E-03    14.189       -.27774E-06** at limit **
  23  Prefactor     .10000E-03    2.1586       -.94233E-07** at limit **
  24  Prefactor     .10000E-03    8.4768       -.16138E-06** at limit **
  25  norm          13.473        9.4640       -.18746E-06    .26904E-04
  26  Prefactor     .10000E-03    36.650        .26377E-06** at limit **
  27  Prefactor     .10000E-03    10.188       -.16942E-06** at limit **
  28  Prefactor     19.598        20.292       -.23082E-06    .27748E-04
  29  Prefactor     .10000E-03    83.163       -.23144E-05** at limit **
  30  Prefactor     2.1934        3.5554        .18346E-08    .15128E-04
  31  Normalizat    .75415        .18085        .16114E-06    .27572E-03
  32  Prefactor     1.1813        .21873        .99837E-06    .19648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.81416
  Prefactor  = 0.0001
  Prefactor  = 1.89511
  Prefactor  = 0.435069
  Prefactor  = 0.00010003
  norm       = 0.69161
  Prefactor  = 0.820407
  Prefactor  = 21.9533
  Prefactor  = 0.0001
  Prefactor  = 10.1446
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.2541
  Prefactor  = 27.4787
  norm       = 2.21393
  Prefactor  = 0.0001
  norm       = 12.6481
  norm       = 0.000100002
  norm       = 0.000100002
  norm       = 9.87173
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.4732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.598
  Prefactor  = 0.0001
  Prefactor  = 2.19341
  Normalizat = 0.754151
  Prefactor  = 1.18131
 **********
 **   18 **HESSE 
 **********

 FCN=   5531.423     FROM HESSE     STATUS=OK           663 CALLS     5042 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.8142        3.2902        .86615E-04   -1.5186    
   3  Prefactor     .10000E-03    3.3808        .13307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8951        2.1083        .10603E-03   -1.5433    
   5  Prefactor     .43507        1.5029        .15127E-02   -1.5576    
   6  Prefactor     .10003E-03    38.236        .37590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .69161        6.9756        .36310E-02   -1.5542    
   8  Prefactor     .82041        21.299        .25042E-02   -1.5527    
   9  Prefactor     21.953        19.679        .85485E-04   -1.4771    
  10  Prefactor     .10000E-03    31.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.145        9.8858        .12580E-03   -1.5071    
  12  Prefactor     .10000E-03    3.5095        .13562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.2873        .13057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.254        57.080        .63960E-04   -1.4454    
  15  Prefactor     27.479        27.825        .76434E-04   -1.4659    
  16  norm          2.2139        3.7238        .17826E-03   -1.5410    
  17  Prefactor     .10000E-03    10.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.648        7.6685        .11265E-03   -1.4997    
  19  norm          .10000E-03    39.375        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    13.836        .20768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.8717        7.8091        .12770E-03   -1.5079    
  22  norm          .10000E-03    14.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.7023        .20598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.5048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.473        9.4582        .10912E-03   -1.4974    
  26  Prefactor     .10000E-03    36.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.598        20.288        .90464E-04   -1.4822    
  29  Prefactor     .10000E-03    83.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.1934        3.5367        .17285E-03   -1.5412    
  31  Normalizat    .75415        .21189        .26553E-03   -1.0179    
  32  Prefactor     1.1813        .26100        .26426E-03   -.86908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23064e-09
Minuit parameter uncertainties:
  1  1.61072e-05
  2  3.2903
  3  3.71913e-06
  4  2.10837
  5  1.503
  6  0.00213023
  7  4.39326
  8  8.36324
  9  19.6844
  10  1.99791e-05
  11  9.8874
  12  4.86324e-06
  13  2.06767e-05
  14  57.1599
  15  27.8381
  16  3.72422
  17  9.7772e-06
  18  7.66905
  19  0.000564502
  20  0.000304519
  21  7.80989
  22  6.46992e-07
  23  5.2949e-05
  24  1.24771e-05
  25  9.4593
  26  1.57835e-05
  27  6.4308e-06
  28  20.2951
  29  3.36193e-05
  30  3.53707
  31  0.212124
  32  0.261282
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  2.068e-05  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.181e+00  2.613e-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.542e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/42516/likelihoodResults_288576001_288835201_4FGL_J1257.8+3228_daily_bin190.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5531.42397281
delta logL = -0.00144776291927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5531.42252315
delta logL = 1.89214824786e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5048       1.0000          .0000       5.0000    
     3 'Normalizat'    .75423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1812       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5531.423     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      274 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    384.75        .27819E-02** at limit **
   2  alpha         2.6195        3.4434        .16461        .45929E-07
   3  Normalizat    .75415        .49709E-01    .26553E-03   -.13701E-03
   4  Prefactor     1.1813        .60813E-01    .26426E-03   -.14472E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.61948
  Normalizat = 0.754148
  Prefactor  = 1.18131
 **********
 **   18 **HESSE 
 **********

 FCN=   5531.423     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8561        .55638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6195        3.8071        .65843E-02    .47809E-01
   3  Normalizat    .75415        .20799        .10621E-04   -1.0179    
   4  Prefactor     1.1813        .25466        .52852E-04   -.86908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66346e-11
Minuit parameter uncertainties:
  1  2.46034e-05
  2  176.471
  3  0.208205
  4  0.254927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42516': 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) = 5531.42252281
delta logL = 2.23164715862e-06

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.000e-04  2.460e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.619e+00  1.765e+02  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.181e+00  2.549e-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.541e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/42516/cmap_HighResolution_288576001_288835201_4FGL_J1257.8+3228_daily_bin190.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-05', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2021-09-06 12:11:00.386804', job_id='42516', GAL2='1.18', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630955460.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='190' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:11:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 42516: <4FGL_J1257.8+3228_daily_bin190> in cluster <slac> Done

Job <4FGL_J1257.8+3228_daily_bin190> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 11:55:55 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:55:57 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:55:57 2021
Terminated at Mon Sep  6 12:11:01 2021
Results reported at Mon Sep  6 12:11:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin190 194.473 32.4721 288576001 288835201 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 :                                   838.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            906 sec.

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

