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


Performing analysis on: 4FGL_J1257.8+3228_daily_bin150
RA = 194.473, Dec = 32.4721
tmin = 278208001, tmax = 278467201
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='42452', job_status='RUN', time_executed='2021-09-06 11:56:21.085752', time_epoch_executed='1630954581.09' WHERE source_name='4FGL J1257.8+3228' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42452

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42452/ft1_4FGL_J1257.8+3228_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42452/ft2_4FGL_J1257.8+3228_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42452/ft1_4FGL_J1257.8+3228_daily_bin150.fits outfile=/scratch/kocevski/42452/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin150.fits ra=194.473 dec=32.4721 rad=12.0 tmin=278208001.0 tmax=278467201.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.91
user 5.22
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/42452/ft2_4FGL_J1257.8+3228_daily_bin150.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/42452/ft1_filteredMKT_4FGL_J1257.8+3228_daily_bin150.fits evtable="EVENTS" outfile="/scratch/kocevski/42452/ft1_filtered_4FGL_J1257.8+3228_daily_bin150.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.82
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42452/ft1_filtered_4FGL_J1257.8+3228_daily_bin150.fits" evtable="EVENTS" scfile=/scratch/kocevski/42452/ft2_4FGL_J1257.8+3228_daily_bin150.fits sctable="SC_DATA" outfile=/scratch/kocevski/42452/ltcube_278208001_278467201_4FGL_J1257.8+3228_daily_bin150.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/42452/ft2_4FGL_J1257.8+3228_daily_bin150.fits
.....................!
real 12.46
user 11.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42452/ft1_filtered_4FGL_J1257.8+3228_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/42452/ft2_4FGL_J1257.8+3228_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/42452/ltcube_278208001_278467201_4FGL_J1257.8+3228_daily_bin150.fits outfile=/scratch/kocevski/42452/expmap_278208001_278467201_4FGL_J1257.8+3228_daily_bin150.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/42452/ltcube_278208001_278467201_4FGL_J1257.8+3228_daily_bin150.fits
.....................!
real 189.63
user 184.95
sys 4.25

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/42452/ft1_filtered_4FGL_J1257.8+3228_daily_bin150.fits scfile=/scratch/kocevski/42452/ft2_4FGL_J1257.8+3228_daily_bin150.fits outfile=/scratch/kocevski/42452/cmap_278208001_278467201_4FGL_J1257.8+3228_daily_bin150.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42452/ft1_filtered_4FGL_J1257.8+3228_daily_bin150.fits scfile=/scratch/kocevski/42452/ft2_4FGL_J1257.8+3228_daily_bin150.fits outfile=/scratch/kocevski/42452/cmap_HighResolution_278208001_278467201_4FGL_J1257.8+3228_daily_bin150.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.539       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7994       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.453       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9703       1.0000         .10000E-03   10000.    
    10 'Prefactor '    73.389       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .91276       1.0000         .10000E-03   10000.    
    13 'norm      '    .16265       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12872E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.722       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.116       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.981       1.0000         .10000E-03   10000.    
    20 'norm      '    11.842       1.0000         .10000E-03   10000.    
    21 'norm      '    .10332E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.0976       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.7595       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    42.622       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.4981       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .88342       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0592       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=   5401.970     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     5277 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.534        27.342        .83703E-08    .18672E-04
   2  norm          .10000E-03    1.8907       -.22976E-06** at limit **
   3  Prefactor     .10000E-03    2.6333       -.11889E-06** at limit **
   4  Prefactor     .10000E-03    1.0957       -.13107E-06** at limit **
   5  Prefactor     6.7991        2.9398        .59147E-09    .91318E-04
   6  Prefactor     .10000E-03    3.4479       -.18304E-06** at limit **
   7  norm          .10000E-03    1.0987       -.57079E-07** at limit **
   8  Prefactor     25.447        13.714        .23440E-07   -.11885E-04
   9  Prefactor     6.9754        25.185       -.24389E-05   -.21988E-04
  10  Prefactor     73.693        92.843        .13206E-05    .21642E-04
  11  Prefactor     .10000E-03    6.3968       -.39346E-06** at limit **
  12  Prefactor     .90906        9.7851        .29170E-05    .48432E-03
  13  norm          .11765        37.530       -.62871E-05    .17418E-03
  14  Prefactor     .10000E-03    25.283       -.21609E-06** at limit **
  15  Prefactor     .10013E-03    131.87       -.15784E-04** at limit **
  16  norm          11.720        5.8185        .16324E-07    .37641E-04
  17  Prefactor     26.126        20.073       -.13459E-05   -.60390E-04
  18  norm          .10000E-03    2.3129        .15159E-06** at limit **
  19  norm          15.979        14.734       -.16638E-07    .33122E-04
  20  norm          11.851        5.0801        .18931E-06    .56366E-03
  21  norm          .10001E-03    10.932       -.29777E-05** at limit **
  22  norm          9.0945        21.560       -.13550E-06    .16729E-04
  23  Prefactor     .10000E-03    1.4354       -.44209E-06** at limit **
  24  Prefactor     .10000E-03    5.4182       -.41718E-06** at limit **
  25  norm          4.7589        4.7891       -.95254E-08    .20200E-04
  26  Prefactor     .10000E-03    16.783       -.10939E-06** at limit **
  27  Prefactor     .10001E-03    31.884       -.18523E-05** at limit **
  28  Prefactor     .10000E-03    10.190       -.26902E-06** at limit **
  29  Prefactor     42.587        76.130        .69307E-06   -.30143E-04
  30  Prefactor     4.4974        3.8996       -.26484E-07    .24946E-04
  31  Normalizat    .88339        .20796       -.12502E-05    .10451E-03
  32  Prefactor     1.0595        .24775        .15183E-05   -.18569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.5338
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.79909
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.447
  Prefactor  = 6.97539
  Prefactor  = 73.6928
  Prefactor  = 0.0001
  Prefactor  = 0.909057
  norm       = 0.117646
  Prefactor  = 0.0001
  Prefactor  = 0.000100132
  norm       = 11.7203
  Prefactor  = 26.1257
  norm       = 0.0001
  norm       = 15.9788
  norm       = 11.8506
  norm       = 0.000100009
  norm       = 9.09448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.75895
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 42.5874
  Prefactor  = 4.49744
  Normalizat = 0.883393
  Prefactor  = 1.05947
 **********
 **   18 **HESSE 
 **********

 FCN=   5401.970     FROM HESSE     STATUS=OK           663 CALLS     5940 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.534        27.347        .74995E-04   -1.4639    
   2  norm          .10000E-03    1.9583        .19718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6386        .11647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1110        .75089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.7991        2.9362        .78293E-04   -1.5186    
   6  Prefactor     .10000E-03    3.4743        .13333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.1001        .75243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.447        13.714        .79401E-04   -1.4699    
   9  Prefactor     6.9754        25.348        .15195E-03   -1.5180    
  10  Prefactor     73.693        94.271        .23433E-03   -1.3989    
  11  Prefactor     .10000E-03    6.4892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .90906        17.808        .36544E-02   -1.5517    
  13  norm          .11765        40.264        .24342E-02   -1.5639    
  14  Prefactor     .10000E-03    25.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10013E-03    140.28        .64226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.720        5.8171        .11701E-03   -1.5023    
  17  Prefactor     26.126        20.524        .78388E-04   -1.4685    
  18  norm          .10000E-03    2.3400        .10929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.979        14.738        .10019E-03   -1.4908    
  20  norm          11.851        5.0892        .10209E-03   -1.5019    
  21  norm          .10001E-03    11.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.0945        21.549        .13288E-03   -1.5105    
  23  Prefactor     .10000E-03    1.4757        .86282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.4430        .16727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.7589        4.7849        .15683E-03   -1.5272    
  26  Prefactor     .10000E-03    16.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    32.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     42.587        76.271        .61405E-04   -1.4402    
  30  Prefactor     4.4974        3.8969        .13125E-03   -1.5284    
  31  Normalizat    .88339        .21675        .25221E-03   -.97046    
  32  Prefactor     1.0595        .25766        .28505E-03   -.90773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90075e-09
Minuit parameter uncertainties:
  1  27.3586
  2  2.02388e-05
  3  8.97022e-06
  4  8.44254e-06
  5  2.93628
  6  2.64419e-05
  7  3.85011e-06
  8  13.7159
  9  25.3867
  10  94.4628
  11  8.05003e-05
  12  8.04935
  13  4.35399
  14  7.48572e-05
  15  0.00862033
  16  5.81742
  17  20.53
  18  3.90522e-06
  19  14.7411
  20  5.08943
  21  0.000669376
  22  21.5672
  23  3.38687e-05
  24  6.31995e-05
  25  4.78527
  26  8.40374e-05
  27  0.000898966
  28  6.5518e-05
  29  76.4467
  30  3.89711
  31  0.216963
  32  0.257964
Done.

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

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.176e-01  4.354e+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.059e+00  2.580e-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:  8.834e-01  2.170e-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: 7.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/42452/likelihoodResults_278208001_278467201_4FGL_J1257.8+3228_daily_bin150.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) = 5401.97041851
delta logL = 3.00237552437e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5401.97035218
delta logL = 9.63562733887e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12985       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1188       1.0000          .0000       5.0000    
     3 'Normalizat'    .88341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0594       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5401.970     FROM MIGRAD    STATUS=FAILED        96 CALLS      294 TOTAL
                     EDM=   .27E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12984        6919.1        .24864E-02    .17263E-02
   2  alpha         2.1188        3.2993        .50000       -.51443E-03
   3  Normalizat    .88348        .74106E-01    .25221E-03   -.18932E-05
   4  Prefactor     1.0593        .12008        .28506E-03   -.51048E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5401.970     FROM SIMPLEX   STATUS=UNCHANGED    100 CALLS      394 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12984        6919.1        .11616E-02    .17263E-02
   2  alpha         2.1188        3.2993        .34045E-03   -.51443E-03
   3  Normalizat    .88348        .74106E-01    .11260E-04   -.18932E-05
   4  Prefactor     1.0593        .12008        .88692E-05   -.51048E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5401.970     FROM MIGRAD    STATUS=FAILED        81 CALLS      475 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12906        70.670        .39782E-05   -.11431E-04
   2  alpha         2.1183        3.7917        .16074       -.85151E-04
   3  Normalizat    .88348        .20444        .20177E-05    .11382E-03
   4  Prefactor     1.0593        .25408        .22805E-05    .59822E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.129059
  alpha      = 2.11833
  Normalizat = 0.883481
  Prefactor  = 1.05935
 **********
 **   18 **HESSE 
 **********

 FCN=   5401.970     FROM HESSE     STATUS=OK            25 CALLS      500 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12906        32.610        .79564E-06   -1.5636    
   2  alpha         2.1183        2.5124        .32148E-01   -.15327    
   3  Normalizat    .88348        .20103        .40354E-06   -.97043    
   4  Prefactor     1.0593        .24686        .45610E-06   -.90777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56656e-11
Minuit parameter uncertainties:
  1  4.10365
  2  6.97971
  3  0.201199
  4  0.247125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42452': 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): 1
logL (Free Index) = 5401.97035207
delta logL = 9.64611099334e-05

Extracting fit parameters...

4FGL J1257.8+3228
   Spectrum: LogParabola
308         norm:  1.291e-01  4.104e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.118e+00  6.980e+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.059e+00  2.471e-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:  8.835e-01  2.012e-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/42452/cmap_HighResolution_278208001_278467201_4FGL_J1257.8+3228_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2021-09-06 12:11:32.245269', job_id='42452', GAL2='1.06', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630955492.25', return_code2='1', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='9.65e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='150' AND source_name='4FGL J1257.8+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:11:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 42452: <4FGL_J1257.8+3228_daily_bin150> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.8+3228_daily_bin150 194.473 32.4721 278208001 278467201 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 :                                   904.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            941 sec.

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

