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


Performing analysis on: 4FGL_J1257.2+3646_daily_bin255
RA = 194.31, Dec = 36.7706
tmin = 305424001, tmax = 305683201
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='32804', job_status='RUN', time_executed='2021-09-06 11:33:23.361058', time_epoch_executed='1630953203.36' WHERE source_name='4FGL J1257.2+3646' and cadence='daily' and bin_id='255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32804/ft1_4FGL_J1257.2+3646_daily_bin255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32804/ft2_4FGL_J1257.2+3646_daily_bin255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32804/ft1_4FGL_J1257.2+3646_daily_bin255.fits outfile=/scratch/kocevski/32804/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin255.fits ra=194.31 dec=36.7706 rad=12.0 tmin=305424001.0 tmax=305683201.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.50
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32804/ft2_4FGL_J1257.2+3646_daily_bin255.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/32804/ft1_filteredMKT_4FGL_J1257.2+3646_daily_bin255.fits evtable="EVENTS" outfile="/scratch/kocevski/32804/ft1_filtered_4FGL_J1257.2+3646_daily_bin255.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32804/ft1_filtered_4FGL_J1257.2+3646_daily_bin255.fits" evtable="EVENTS" scfile=/scratch/kocevski/32804/ft2_4FGL_J1257.2+3646_daily_bin255.fits sctable="SC_DATA" outfile=/scratch/kocevski/32804/ltcube_305424001_305683201_4FGL_J1257.2+3646_daily_bin255.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/32804/ft2_4FGL_J1257.2+3646_daily_bin255.fits
.....................!
real 12.07
user 11.68
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32804/ft1_filtered_4FGL_J1257.2+3646_daily_bin255.fits evtable="EVENTS" scfile=/scratch/kocevski/32804/ft2_4FGL_J1257.2+3646_daily_bin255.fits sctable="SC_DATA" expcube=/scratch/kocevski/32804/ltcube_305424001_305683201_4FGL_J1257.2+3646_daily_bin255.fits outfile=/scratch/kocevski/32804/expmap_305424001_305683201_4FGL_J1257.2+3646_daily_bin255.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/32804/ltcube_305424001_305683201_4FGL_J1257.2+3646_daily_bin255.fits
.....................!
real 191.14
user 185.50
sys 5.27

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/32804/ft1_filtered_4FGL_J1257.2+3646_daily_bin255.fits scfile=/scratch/kocevski/32804/ft2_4FGL_J1257.2+3646_daily_bin255.fits outfile=/scratch/kocevski/32804/cmap_305424001_305683201_4FGL_J1257.2+3646_daily_bin255.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32804/ft1_filtered_4FGL_J1257.2+3646_daily_bin255.fits scfile=/scratch/kocevski/32804/ft2_4FGL_J1257.2+3646_daily_bin255.fits outfile=/scratch/kocevski/32804/cmap_HighResolution_305424001_305683201_4FGL_J1257.2+3646_daily_bin255.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32804/ft1_filtered_4FGL_J1257.2+3646_daily_bin255.fits evtable="EVENTS" scfile=/scratch/kocevski/32804/ft2_4FGL_J1257.2+3646_daily_bin255.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32804/Model_4FGL_J1257.2+3646_daily_bin255.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/32804/ft1_filtered_4FGL_J1257.2+3646_daily_bin255.fits.....................!
real 51.79
user 50.34
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/32804/ft1_filtered_4FGL_J1257.2+3646_daily_bin255.fits', '/scratch/kocevski/32804/ft2_4FGL_J1257.2+3646_daily_bin255.fits', expMap='/scratch/kocevski/32804/expmap_305424001_305683201_4FGL_J1257.2+3646_daily_bin255.fits', expCube='/scratch/kocevski/32804/ltcube_305424001_305683201_4FGL_J1257.2+3646_daily_bin255.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/32804/Model_4FGL_J1257.2+3646_daily_bin255.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/32804/ft1_filtered_4FGL_J1257.2+3646_daily_bin255.fits
Spacecraft file(s): /scratch/kocevski/32804/ft2_4FGL_J1257.2+3646_daily_bin255.fits
Exposure map: /scratch/kocevski/32804/expmap_305424001_305683201_4FGL_J1257.2+3646_daily_bin255.fits
Exposure cube: /scratch/kocevski/32804/ltcube_305424001_305683201_4FGL_J1257.2+3646_daily_bin255.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/32804/Model_4FGL_J1257.2+3646_daily_bin255.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) = 6331.95486192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.263       1.0000         .10000E-03   10000.    
     2 'norm      '    8.8272       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5675       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4881       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.025       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6128       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.8636       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0377       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.4215       1.0000         .10000E-03   10000.    
    16 'norm      '    .10695E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.6872       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.137       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .27452       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1851       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82266       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=   6331.952     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     2936 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.255        22.566        .22244E-02   -.12598E-02
   2  norm          8.8266        3.4205        .33727E-02    .16074E-03
   3  Prefactor     .10000E-03    3.6781        .90712E-02** at limit **
   4  Prefactor     1.5674        1.4629        .84911E-02   -.57650E-04
   5  Prefactor     1.4880        1.3443        .87883E-02   -.49430E-04
   6  Prefactor     18.023        9.8566        .23584E-02   -.10298E-02
   7  Prefactor     .10000E-03    11.712        .90712E-02** at limit **
   8  Prefactor     6.6122        8.6954        .39013E-02   -.35819E-03
   9  Prefactor     .10000E-03    18.421        .90712E-02** at limit **
  10  Prefactor     .10000E-03    1.3204        .90712E-02** at limit **
  11  norm          6.8632        4.0271        .38286E-02    .77565E-03
  12  Prefactor     .10000E-03    13.400        .90712E-02** at limit **
  13  Prefactor     6.0359        14.939        .40851E-02   -.55062E-03
  14  Prefactor     .10000E-03    5.6535        .90712E-02** at limit **
  15  norm          8.4216        5.2320        .34535E-02    .20690E-02
  16  norm          .10000E-03    30.742        .90712E-02** at limit **
  17  norm          .10000E-03    1.5510        .90712E-02** at limit **
  18  norm          5.6848        4.3661        .42109E-02   -.12553E-02
  19  Prefactor     .10000E-03    1.7643        .54876E-01** at limit **
  20  Prefactor     .10000E-03    4.8964        .90712E-02** at limit **
  21  Prefactor     58.144        55.287        .13154E-02   -.16594E-05
  22  Prefactor     .93811E-02    13.586        .10313        .46124E-04
  23  Prefactor     .10000E-03    57.821        .90712E-02** at limit **
  24  Normalizat    1.1855        .16504        .35267E-01    .41841E-03
  25  Prefactor     .82248        .20241        .71457E-01    .25967E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2549
  norm       = 8.82661
  Prefactor  = 0.0001
  Prefactor  = 1.56743
  Prefactor  = 1.48799
  Prefactor  = 18.0227
  Prefactor  = 0.0001
  Prefactor  = 6.61216
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.86316
  Prefactor  = 0.000100001
  Prefactor  = 6.03589
  Prefactor  = 0.0001
  norm       = 8.42161
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 5.68485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.1442
  Prefactor  = 0.00938113
  Prefactor  = 0.000100004
  Normalizat = 1.18548
  Prefactor  = 0.822478
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.952     FROM HESSE     STATUS=OK           423 CALLS     3359 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.255        22.572        .88978E-04   -1.4808    
   2  norm          8.8266        3.4147        .86844E-04   -1.5114    
   3  Prefactor     .10000E-03    3.7017        .14901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5674        1.4765        .88749E-04   -1.5458    
   5  Prefactor     1.4880        1.3571        .85099E-04   -1.5464    
   6  Prefactor     18.023        9.8531        .94338E-04   -1.4859    
   7  Prefactor     .10000E-03    11.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6122        8.6924        .15605E-03   -1.5194    
   9  Prefactor     .10000E-03    18.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3213        .89292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.8632        4.0221        .11586E-03   -1.5184    
  12  Prefactor     .10000E-03    13.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0359        14.888        .16340E-03   -1.5217    
  14  Prefactor     .10000E-03    5.6619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.4216        5.1954        .13732E-03   -1.5127    
  16  norm          .10000E-03    31.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5693        .19224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.6848        4.3345        .14068E-03   -1.5231    
  19  Prefactor     .10000E-03    5.9816        .19456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9038        .17190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     58.144        53.906        .52616E-04   -1.4181    
  22  Prefactor     .93811E-02    19.905        .81101E-01   -1.5689    
  23  Prefactor     .10000E-03    57.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1855        .19085        .21550E-03   -.87053    
  25  Prefactor     .82248        .23382        .31619E-03   -.98905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02096e-09
Minuit parameter uncertainties:
  1  22.5813
  2  3.41475
  3  5.59921e-06
  4  1.47658
  5  1.3571
  6  9.85397
  7  0.000114085
  8  8.69405
  9  0.000203018
  10  6.13734e-06
  11  4.02221
  12  0.000231032
  13  14.897
  14  8.86348e-05
  15  5.19567
  16  0.000260347
  17  1.56873e-06
  18  4.33472
  19  1.75842e-05
  20  3.77435e-05
  21  53.9511
  22  0.85991
  23  0.000997664
  24  0.190958
  25  0.234103
Done.

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

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.137e-06  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:  8.225e-01  2.341e-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:  1.185e+00  1.910e-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: 2.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32804/likelihoodResults_305424001_305683201_4FGL_J1257.2+3646_daily_bin255.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) = 6331.95532303
delta logL = -0.00330491821478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6331.95201725
delta logL = 8.59021383803e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0044       1.0000          .0000       10.000    
     3 'Normalizat'    1.1855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82244       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.

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

 FCN=   6331.952     FROM MIGRAD    STATUS=FAILED        85 CALLS      233 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10186E-03    23.415        .91475E-03** at limit **
   2  Index         1.9381        5.2092        .50000        .12747E-03
   3  Normalizat    1.1855        .16353E-01    .21550E-03   -.25639E-04
   4  Prefactor     .82248        .20445E-01    .31619E-03   -.26247E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6331.952     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      359 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10186E-03    23.415        .21647E-03** at limit **
   2  Index         1.9381        5.2092        .34469E-03    .12747E-03
   3  Normalizat    1.1855        .16353E-01    .39622E-05   -.25639E-04
   4  Prefactor     .82248        .20445E-01    .51162E-05   -.26247E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6331.952     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      405 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.622        .18295E-02** at limit **
   2  Index         1.4707        5.7349        .50000        .47633E-06
   3  Normalizat    1.1855        .17247E-01    .86199E-05    .74728E-03
   4  Prefactor     .82248        .21563E-01    .12648E-04    .51703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.4707
  Normalizat = 1.18548
  Prefactor  = 0.82248
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.952     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      434 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    142.38        .36590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4707        6.7098        .50000       -.78364    
   3  Normalizat    1.1855        .39119E-01    .17240E-05   -.87053    
   4  Prefactor     .82248        .48907E-01    .25295E-05   -.98905    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.70852e-10
Minuit parameter uncertainties:
  1  0.000313771
  2  564.611
  3  0.0391199
  4  0.0489099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32804': 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) = 6331.95200785
delta logL = 1.02574003904e-05

Extracting fit parameters...

4FGL J1257.2+3646
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.138e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.471e+00  5.646e+02  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:  8.225e-01  4.891e-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:  1.185e+00  3.912e-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/32804/cmap_HighResolution_305424001_305683201_4FGL_J1257.2+3646_daily_bin255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-03', job_status='DONE', photon_flux_upper_limit='2.87e-08', time_completed='2021-09-06 11:46:03.654891', job_id='32804', GAL2='0.82', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630953963.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.03e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='255' AND source_name='4FGL J1257.2+3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:46:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 32804: <4FGL_J1257.2+3646_daily_bin255> in cluster <slac> Done

Job <4FGL_J1257.2+3646_daily_bin255> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 11:30:17 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:30:18 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:30:18 2021
Terminated at Mon Sep  6 11:46:04 2021
Results reported at Mon Sep  6 11:46:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1257.2+3646_daily_bin255 194.31 36.7706 305424001 305683201 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 :                                   751.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

