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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin503
RA = 194.31, Dec = 36.7706
tmin = 369705601, tmax = 369964801
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='34554', job_status='RUN', time_executed='2021-09-06 11:39:34.522942', time_epoch_executed='1630953574.52' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34554

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34554/ft1_4FGL_J1257.2+3646_daily_bin503.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34554/ft2_4FGL_J1257.2+3646_daily_bin503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34554/ft1_4FGL_J1257.2+3646_daily_bin503.fits outfile=/scratch/kocevski/34554/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin503.fits ra=194.31 dec=36.7706 rad=12.0 tmin=369705601.0 tmax=369964801.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.75
user 3.53
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/34554/ft2_4FGL_J1257.2+3646_daily_bin503.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34554/ft2_4FGL_J1257.2+3646_daily_bin503.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/34554/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin503.fits evtable="EVENTS" outfile="/scratch/kocevski/34554/ft1_filtered_4FGL_J1257.2+3646_daily_bin503.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34554/ft1_filtered_4FGL_J1257.2+3646_daily_bin503.fits" evtable="EVENTS" scfile=/scratch/kocevski/34554/ft2_4FGL_J1257.2+3646_daily_bin503.fits sctable="SC_DATA" outfile=/scratch/kocevski/34554/ltcube_369705601_369964801_4FGL_J1257.2+3646_daily_bin503.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/34554/ft2_4FGL_J1257.2+3646_daily_bin503.fits
.....................!
real 11.69
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34554/ft1_filtered_4FGL_J1257.2+3646_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/34554/ft2_4FGL_J1257.2+3646_daily_bin503.fits sctable="SC_DATA" expcube=/scratch/kocevski/34554/ltcube_369705601_369964801_4FGL_J1257.2+3646_daily_bin503.fits outfile=/scratch/kocevski/34554/expmap_369705601_369964801_4FGL_J1257.2+3646_daily_bin503.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/34554/ltcube_369705601_369964801_4FGL_J1257.2+3646_daily_bin503.fits
.....................!
real 191.01
user 185.87
sys 4.78

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

Setting source of interest to:
4FGL J1257.2+3646 @ 194.31 36.7706

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/34554/ft1_filtered_4FGL_J1257.2+3646_daily_bin503.fits scfile=/scratch/kocevski/34554/ft2_4FGL_J1257.2+3646_daily_bin503.fits outfile=/scratch/kocevski/34554/cmap_369705601_369964801_4FGL_J1257.2+3646_daily_bin503.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.31 yref=36.7706 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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34554/ft1_filtered_4FGL_J1257.2+3646_daily_bin503.fits scfile=/scratch/kocevski/34554/ft2_4FGL_J1257.2+3646_daily_bin503.fits outfile=/scratch/kocevski/34554/cmap_HighResolution_369705601_369964801_4FGL_J1257.2+3646_daily_bin503.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.31 yref=36.7706 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/34554/ft1_filtered_4FGL_J1257.2+3646_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/34554/ft2_4FGL_J1257.2+3646_daily_bin503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34554/Model_4FGL_J1257.2+3646_daily_bin503.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/34554/ft1_filtered_4FGL_J1257.2+3646_daily_bin503.fits.....................!
real 47.37
user 45.16
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/34554/ft1_filtered_4FGL_J1257.2+3646_daily_bin503.fits', '/scratch/kocevski/34554/ft2_4FGL_J1257.2+3646_daily_bin503.fits', expMap='/scratch/kocevski/34554/expmap_369705601_369964801_4FGL_J1257.2+3646_daily_bin503.fits', expCube='/scratch/kocevski/34554/ltcube_369705601_369964801_4FGL_J1257.2+3646_daily_bin503.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/34554/Model_4FGL_J1257.2+3646_daily_bin503.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1257.2+3646'

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.472e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/34554/ft1_filtered_4FGL_J1257.2+3646_daily_bin503.fits
Spacecraft file(s): /scratch/kocevski/34554/ft2_4FGL_J1257.2+3646_daily_bin503.fits
Exposure map: /scratch/kocevski/34554/expmap_369705601_369964801_4FGL_J1257.2+3646_daily_bin503.fits
Exposure cube: /scratch/kocevski/34554/ltcube_369705601_369964801_4FGL_J1257.2+3646_daily_bin503.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/34554/Model_4FGL_J1257.2+3646_daily_bin503.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) = 5580.49309945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.568       1.0000         .10000E-03   10000.    
     2 'norm      '    5.0093       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7031       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7408       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    65.661       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11575E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .42276E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5675       1.0000         .10000E-03   10000.    
    16 'norm      '    8.9474       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2849       1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9161       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.353       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.620       1.0000         .10000E-03   10000.    
    23 'Prefactor '    81.848       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69690       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2639       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5580.483     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2908 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.571        25.176       -.86822E-09   -.18893E-04
   2  norm          5.0106        2.8800       -.10118E-06   -.51461E-03
   3  Prefactor     1.7014        4.8624        .70533E-06    .35491E-04
   4  Prefactor     .10000E-03    .61358        .25946E-07** at limit **
   5  Prefactor     .10000E-03    1.4883        .38192E-07** at limit **
   6  Prefactor     2.7451        12.293        .73843E-05   -.30095E-04
   7  Prefactor     .10000E-03    31.277        .23794E-06** at limit **
   8  Prefactor     .10000E-03    4.4197        .25165E-07** at limit **
   9  Prefactor     65.668        51.076       -.84103E-06   -.49180E-04
  10  Prefactor     .10000E-03    2.7236        .11408E-06** at limit **
  11  norm          .10000E-03    2.5006        .73598E-06** at limit **
  12  Prefactor     .10000E-03    13.097        .55927E-07** at limit **
  13  Prefactor     .10000E-03    29.430        .44417E-06** at limit **
  14  Prefactor     .10000E-03    9.3040       -.31414E-05** at limit **
  15  norm          2.5587        5.3363        .46459E-05   -.27879E-03
  16  norm          8.9472        9.9997        .18444E-06   -.16581E-04
  17  norm          2.2837        2.6861       -.12589E-07   -.25289E-03
  18  norm          .10000E-03    3.9938        .35156E-07** at limit **
  19  Prefactor     1.9168        3.6929       -.61015E-06   -.29433E-03
  20  Prefactor     19.352        14.933        .77152E-07   -.14661E-03
  21  Prefactor     .10000E-03    27.398        .19263E-06** at limit **
  22  Prefactor     20.621        14.629        .22921E-06   -.34284E-04
  23  Prefactor     81.803        72.467        .44367E-05   -.12424E-03
  24  Normalizat    .69659        .16864       -.24326E-06   -.40582E-03
  25  Prefactor     1.2643        .21507       -.29354E-05   -.51891E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5707
  norm       = 5.01055
  Prefactor  = 1.70137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.74505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.6678
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.55866
  norm       = 8.94721
  norm       = 2.28368
  norm       = 0.0001
  Prefactor  = 1.91679
  Prefactor  = 19.3519
  Prefactor  = 0.0001
  Prefactor  = 20.6205
  Prefactor  = 81.8029
  Normalizat = 0.69659
  Prefactor  = 1.26431
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.483     FROM HESSE     STATUS=OK           429 CALLS     3337 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.571        25.167        .73681E-04   -1.4620    
   2  norm          5.0106        2.8461        .91939E-04   -1.5260    
   3  Prefactor     1.7014        4.8259        .26915E-03   -1.5447    
   4  Prefactor     .10000E-03    .61492        .57102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3712        .17292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7451        11.850        .12296E-02   -1.5377    
   7  Prefactor     .10000E-03    31.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4203        .15338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     65.668        51.035        .24764E-03   -1.4085    
  10  Prefactor     .10000E-03    2.7415        .12032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.0615        .22798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.031        .41068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5587        5.3695        .11773E-02   -1.5388    
  16  norm          8.9472        9.9995        .13400E-03   -1.5110    
  17  norm          2.2837        2.6480        .12574E-03   -1.5406    
  18  norm          .10000E-03    4.0139        .14500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9168        3.6043        .16527E-03   -1.5431    
  20  Prefactor     19.352        14.752        .91045E-04   -1.4828    
  21  Prefactor     .10000E-03    27.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.621        14.627        .88206E-04   -1.4799    
  23  Prefactor     81.803        72.541        .22198E-03   -1.3897    
  24  Normalizat    .69659        .19761        .25498E-03   -1.0403    
  25  Prefactor     1.2643        .25454        .25499E-03   -.84375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53143e-10
Minuit parameter uncertainties:
  1  25.1759
  2  2.84616
  3  4.82703
  4  1.08386e-06
  5  1.76896e-05
  6  11.4103
  7  0.000202785
  8  4.96388e-06
  9  51.0694
  10  1.17865e-05
  11  4.84444e-05
  12  1.55829e-05
  13  0.000209231
  14  0.000212713
  15  5.37048
  16  10.0014
  17  2.6481
  18  5.36611e-06
  19  3.60467
  20  14.7544
  21  5.28995e-05
  22  14.6299
  23  72.6194
  24  0.197808
  25  0.254787
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.179e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.027e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.264e+00  2.548e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  6.966e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.310 36.771
Photon Flux Upper Limit: 4.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34554/likelihoodResults_369705601_369964801_4FGL_J1257.2+3646_daily_bin503.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) = 5580.48498539
delta logL = -0.00172730266877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5580.48325811
delta logL = -2.12739905692e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0239       1.0000          .0000       10.000    
     3 'Normalizat'    .69660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2643       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5580.483     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.240        .90712E-02** at limit **
   2  Index         2.0205        8.3392        .50000        .98255E-05
   3  Normalizat    .69659        .13312E-01    .42245E-01    .28732E-04
   4  Prefactor     1.2643        .17505E-01    .57665E-01    .11242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.02054
  Normalizat = 0.69659
  Prefactor  = 1.26431
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.483     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    259.63        .12039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0205        8.5773        .50000       -.63838    
   3  Normalizat    .69659        .43799E-01    .25498E-03   -1.0403    
   4  Prefactor     1.2643        .57590E-01    .25500E-03   -.84375    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.82248e-09
Minuit parameter uncertainties:
  1  1.15817e-05
  2  39.248
  3  0.0438014
  4  0.0575933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34554': 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): 102
logL (Free Index) = 5580.48325807
delta logL = 1.75850800588e-08

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.158e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.021e+00  3.925e+01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.897e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.264e+00  5.759e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  6.966e-01  4.380e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.310 36.771

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/34554/cmap_HighResolution_369705601_369964801_4FGL_J1257.2+3646_daily_bin503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-03', job_status='DONE', photon_flux_upper_limit='4.24e-08', time_completed='2021-09-06 11:51:06.128668', job_id='34554', GAL2='1.26', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630954266.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.76e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='503' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:51:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 34554: <4FGL_J1257.2+3646_daily_bin503> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin503> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 11:35:34 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:35:35 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:35:35 2021
Terminated at Mon Sep  6 11:51:07 2021
Results reported at Mon Sep  6 11:51:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin503 194.31 36.7706 369705601 369964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1257.2+3646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

