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


Performing analysis on: 4FGL_J0957.6+5523_daily_bin652
RA = 149.416, Dec = 55.3838
tmin = 408326401, tmax = 408585601
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='597976', job_status='RUN', time_executed='2021-09-01 06:50:32.617531', time_epoch_executed='1630504232.62' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597976/ft1_4FGL_J0957.6+5523_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597976/ft2_4FGL_J0957.6+5523_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597976/ft1_4FGL_J0957.6+5523_daily_bin652.fits outfile=/scratch/kocevski/597976/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin652.fits ra=149.416 dec=55.3838 rad=12.0 tmin=408326401.0 tmax=408585601.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.06
user 4.74
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/597976/ft2_4FGL_J0957.6+5523_daily_bin652.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597976/ft2_4FGL_J0957.6+5523_daily_bin652.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/597976/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin652.fits evtable="EVENTS" outfile="/scratch/kocevski/597976/ft1_filtered_4FGL_J0957.6+5523_daily_bin652.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.59
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597976/ft1_filtered_4FGL_J0957.6+5523_daily_bin652.fits" evtable="EVENTS" scfile=/scratch/kocevski/597976/ft2_4FGL_J0957.6+5523_daily_bin652.fits sctable="SC_DATA" outfile=/scratch/kocevski/597976/ltcube_408326401_408585601_4FGL_J0957.6+5523_daily_bin652.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/597976/ft2_4FGL_J0957.6+5523_daily_bin652.fits
.....................!
real 12.25
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597976/ft1_filtered_4FGL_J0957.6+5523_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/597976/ft2_4FGL_J0957.6+5523_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/597976/ltcube_408326401_408585601_4FGL_J0957.6+5523_daily_bin652.fits outfile=/scratch/kocevski/597976/expmap_408326401_408585601_4FGL_J0957.6+5523_daily_bin652.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/597976/ltcube_408326401_408585601_4FGL_J0957.6+5523_daily_bin652.fits
.....................!
real 192.04
user 185.53
sys 5.97

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

Setting source of interest to:
4FGL J0957.6+5523 @ 149.416 55.3838

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/597976/ft1_filtered_4FGL_J0957.6+5523_daily_bin652.fits scfile=/scratch/kocevski/597976/ft2_4FGL_J0957.6+5523_daily_bin652.fits outfile=/scratch/kocevski/597976/cmap_408326401_408585601_4FGL_J0957.6+5523_daily_bin652.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=149.416 yref=55.3838 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 1.11
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597976/ft1_filtered_4FGL_J0957.6+5523_daily_bin652.fits scfile=/scratch/kocevski/597976/ft2_4FGL_J0957.6+5523_daily_bin652.fits outfile=/scratch/kocevski/597976/cmap_HighResolution_408326401_408585601_4FGL_J0957.6+5523_daily_bin652.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=149.416 yref=55.3838 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.81
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/597976/ft1_filtered_4FGL_J0957.6+5523_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/597976/ft2_4FGL_J0957.6+5523_daily_bin652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597976/Model_4FGL_J0957.6+5523_daily_bin652.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/597976/ft1_filtered_4FGL_J0957.6+5523_daily_bin652.fits.....................!
real 41.75
user 38.63
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/597976/ft1_filtered_4FGL_J0957.6+5523_daily_bin652.fits', '/scratch/kocevski/597976/ft2_4FGL_J0957.6+5523_daily_bin652.fits', expMap='/scratch/kocevski/597976/expmap_408326401_408585601_4FGL_J0957.6+5523_daily_bin652.fits', expCube='/scratch/kocevski/597976/ltcube_408326401_408585601_4FGL_J0957.6+5523_daily_bin652.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/597976/Model_4FGL_J0957.6+5523_daily_bin652.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0957.6+5523'

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.692e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
394         beta:  7.829e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  7.977e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/597976/ft1_filtered_4FGL_J0957.6+5523_daily_bin652.fits
Spacecraft file(s): /scratch/kocevski/597976/ft2_4FGL_J0957.6+5523_daily_bin652.fits
Exposure map: /scratch/kocevski/597976/expmap_408326401_408585601_4FGL_J0957.6+5523_daily_bin652.fits
Exposure cube: /scratch/kocevski/597976/ltcube_408326401_408585601_4FGL_J0957.6+5523_daily_bin652.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/597976/Model_4FGL_J0957.6+5523_daily_bin652.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) = 3664.81965812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0773       1.0000         .10000E-03   10000.    
     2 'norm      '    4.1429       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.031       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.801       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .20360       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3344       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41473       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11952E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3748       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.670       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.003       1.0000         .10000E-03   10000.    
    25 'norm      '    1.4646       1.0000         .10000E-03   10000.    
    26 'norm      '    3.5850       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    43.217       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .33139       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.5773       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3664.817     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     4692 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0792        18.269        .21204E-05   -.16537E-03
   2  norm          4.1420        6.4672        .33386E-05   -.88160E-03
   3  Prefactor     21.029        18.651       -.24440E-06   -.28873E-04
   4  Prefactor     17.801        14.724       -.10458E-08   -.48812E-04
   5  Prefactor     .10000E-03    13.400        .39476E-06** at limit **
   6  Prefactor     .10001E-03    103.33       -.52884E-05** at limit **
   7  norm          .20423        .95956        .25509E-06   -.32399E-03
   8  Prefactor     .10000E-03    4.4643        .49575E-07** at limit **
   9  Prefactor     3.3320        9.3725        .25125E-06   -.87487E-04
  10  Prefactor     .10000E-03    2.1098        .10133E-07** at limit **
  11  Prefactor     .10000E-03    16.452       -.70831E-06** at limit **
  12  Prefactor     .10000E-03    8.5494        .15551E-05** at limit **
  13  Prefactor     .40048        6.4659       -.22193E-06    .53925E-04
  14  Prefactor     .10001E-03    8.1262        .11918E-05** at limit **
  15  norm          .10000E-03    3.6072        .11226E-08** at limit **
  16  Prefactor     .10000E-03    14.056       -.83024E-06** at limit **
  17  norm          2.3748        .82668        .11283E-07   -.19057E-03
  18  norm          .10000E-03    8.3613       -.15005E-05** at limit **
  19  Prefactor     .10000E-03    3.4470        .27064E-07** at limit **
  20  norm          .10000E-03    .52255        .59750E-07** at limit **
  21  norm          12.670        5.2509       -.94893E-07   -.28503E-03
  22  Prefactor     .10001E-03    35.686       -.53605E-05** at limit **
  23  norm          .10000E-03    7.2054        .89019E-07** at limit **
  24  Prefactor     24.994        35.050       -.13615E-05   -.11741E-03
  25  norm          1.4659        3.8507        .63109E-06   -.17965E-04
  26  norm          3.5850        2.4417        .34932E-07    .27690E-04
  27  Prefactor     .10000E-03    43.650       -.32107E-07** at limit **
  28  Prefactor     .10003E-03    48.441        .76923E-05** at limit **
  29  norm          .10000E-03    1.0149       -.95778E-08** at limit **
  30  Prefactor     .10000E-03    18.792        .12886E-05** at limit **
  31  Prefactor     43.217        38.625        .36444E-06   -.22746E-04
  32  Normalizat    .33140        .23175       -.66355E-06   -.10681E-03
  33  Prefactor     1.5773        .25722       -.68321E-06   -.11299E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.07919
  norm       = 4.14199
  Prefactor  = 21.0285
  Prefactor  = 17.8013
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.204229
  Prefactor  = 0.0001
  Prefactor  = 3.332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.400484
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3748
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.6702
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 24.9941
  norm       = 1.46588
  norm       = 3.58497
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 43.2168
  Normalizat = 0.331404
  Prefactor  = 1.57725
 **********
 **   18 **HESSE 
 **********

 FCN=   3664.817     FROM HESSE     STATUS=OK           695 CALLS     5387 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0792        18.457        .46540E-03   -1.5500    
   2  norm          4.1420        6.7872        .97410E-03   -1.5301    
   3  Prefactor     21.029        18.557        .87340E-04   -1.4791    
   4  Prefactor     17.801        14.482        .94929E-04   -1.4864    
   5  Prefactor     .10000E-03    13.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    105.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .20423        1.4047        .10155E-02   -1.5618    
   8  Prefactor     .10000E-03    4.6398        .24948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3320        9.2903        .22166E-03   -1.5343    
  10  Prefactor     .10000E-03    2.1244        .85778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.6981        .17420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .40048        41.383        .27403E-02   -1.5581    
  14  Prefactor     .10001E-03    22.018        .32195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.6074        .11230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3748        .82575        .31253E-04   -1.5400    
  18  norm          .10000E-03    8.4949        .17215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4615        .10970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0338        .84557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.670        5.2487        .85983E-04   -1.4996    
  22  Prefactor     .10001E-03    37.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.2065        .15873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     24.994        34.463        .80112E-04   -1.4708    
  25  norm          1.4659        3.7441        .13398E-03   -1.5466    
  26  norm          3.5850        2.4415        .75146E-04   -1.5329    
  27  Prefactor     .10000E-03    43.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10003E-03    51.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.0162        .59520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    18.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     43.217        38.443        .60982E-04   -1.4392    
  32  Normalizat    .33140        .23808        .37309E-03   -1.2101    
  33  Prefactor     1.5773        .27485        .21748E-03   -.75399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13849e-08
Minuit parameter uncertainties:
  1  8.92879
  2  6.7885
  3  18.5616
  4  14.4846
  5  5.87942e-05
  6  0.00229365
  7  1.07101
  8  3.72802e-07
  9  9.29429
  10  2.61628e-06
  11  0.000132115
  12  0.000198369
  13  8.14681
  14  0.000771687
  15  2.13064e-07
  16  0.000127238
  17  0.825757
  18  0.0001838
  19  1.58293e-06
  20  3.96991e-06
  21  5.24886
  22  0.00134435
  23  1.14097e-05
  24  34.4909
  25  3.7447
  26  2.44155
  27  1.16311e-05
  28  0.00234709
  29  1.33254e-07
  30  0.000237086
  31  38.4649
  32  0.238807
  33  0.275108
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  2.375e+00  8.258e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
394         beta:  7.829e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  7.977e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
763    Prefactor:  1.577e+00  2.751e-01  0.000e+00  1.000e+01 ( 1.000e+00)
764        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
765        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
762   Normalization:  3.314e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 45.87
Ra Dec: 149.416 55.384
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 4.05e-08
Energy Flux (Fixed Index): 8.00e-05 +/- 2.78e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3662.22550522
delta logL = 2.59115470786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3662.17499591
delta logL = 2.64166402477

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8852       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2503       1.0000          .0000       5.0000    
     3 'Normalizat'    .38766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5466       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3662.175     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8850        .79354        .69739E-02   -.97789E-04
   2  alpha         1.2502        .23774        .13431       -.23144E-04
   3  Normalizat    .38762        .19936        .78053E-01    .29130E-04
   4  Prefactor     1.5466        .23974        .49655E-01   -.25815E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88498
  alpha      = 1.25024
  Normalizat = 0.387621
  Prefactor  = 1.54665
 **********
 **   18 **HESSE 
 **********

 FCN=   3662.175     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .17E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8850        .91660        .30717E-04   -1.5433    
   2  alpha         1.2502        .27760        .58572E-03   -.52349    
   3  Normalizat    .38762        .21677        .34569E-03   -1.1795    
   4  Prefactor     1.5466        .26151        .21949E-03   -.76242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74015e-16
Minuit parameter uncertainties:
  1  0.916608
  2  0.278364
  3  0.21724
  4  0.26174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597976': 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) = 3662.17499584
delta logL = 2.64166408744

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.885e+00  9.166e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.250e+00  2.784e-01  0.000e+00  5.000e+00 ( 1.000e+00)
394         beta:  7.829e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  7.977e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
763    Prefactor:  1.547e+00  2.617e-01  0.000e+00  1.000e+01 ( 1.000e+00)
764        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
765        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
762   Normalization:  3.876e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 50.94
Ra Dec: 149.416 55.384
Photon Index (Free Index): 1.25 +/- 0.28
Photon Flux (Free Index): 6.63e-08 +/- 3.14e-08
Energy Flux (Free Index): 2.30e-04 +/- 1.43e-04

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/597976/cmap_HighResolution_408326401_408585601_4FGL_J0957.6+5523_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='2.30e-04', photon_flux_error='4.05e-08', dlogl='2.64e+00', energy_flux='8.00e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2021-09-01 07:03:01.509757', photon_index_error2='0.28', photon_index2='1.25', ts='45.87', fit_tolerance='1e-08', GAL='1.58', photon_index_error='0.00', energy_flux_error2='1.43e-04', EG='0.33', time_epoch_completed='1630504981.51', return_code='0', job_id='597976', GAL2='1.55', EG2='0.39', return_code2='0', energy_flux_error='2.78e-05', photon_flux_error2='3.14e-08', ts2='50.94', photon_index='1.90' WHERE bin_id='652' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:03:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 597976: <4FGL_J0957.6+5523_daily_bin652> in cluster <slac> Done

Job <4FGL_J0957.6+5523_daily_bin652> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 06:50:20 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:50:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 06:50:21 2021
Terminated at Wed Sep  1 07:03:02 2021
Results reported at Wed Sep  1 07:03:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin652 149.416 55.3838 408326401 408585601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0957.6+5523 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   741.04 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             320.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            762 sec.

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

