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


Performing analysis on: 4FGL_J0957.6+5523_daily_bin75
RA = 149.416, Dec = 55.3838
tmin = 258768001, tmax = 259027201
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='594720', job_status='RUN', time_executed='2021-09-01 06:44:39.083183', time_epoch_executed='1630503879.08' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594720

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594720/ft1_4FGL_J0957.6+5523_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594720/ft2_4FGL_J0957.6+5523_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594720/ft1_4FGL_J0957.6+5523_daily_bin75.fits outfile=/scratch/kocevski/594720/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin75.fits ra=149.416 dec=55.3838 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.12
user 0.96
sys 0.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594720/ft1_filtered_4FGL_J0957.6+5523_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/594720/ft2_4FGL_J0957.6+5523_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/594720/ltcube_258768001_259027201_4FGL_J0957.6+5523_daily_bin75.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/594720/ft2_4FGL_J0957.6+5523_daily_bin75.fits
.....................!
real 9.11
user 8.69
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594720/ft1_filtered_4FGL_J0957.6+5523_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/594720/ft2_4FGL_J0957.6+5523_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/594720/ltcube_258768001_259027201_4FGL_J0957.6+5523_daily_bin75.fits outfile=/scratch/kocevski/594720/expmap_258768001_259027201_4FGL_J0957.6+5523_daily_bin75.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/594720/ltcube_258768001_259027201_4FGL_J0957.6+5523_daily_bin75.fits
.....................!
real 193.08
user 186.31
sys 5.61

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/594720/ft1_filtered_4FGL_J0957.6+5523_daily_bin75.fits scfile=/scratch/kocevski/594720/ft2_4FGL_J0957.6+5523_daily_bin75.fits outfile=/scratch/kocevski/594720/cmap_258768001_259027201_4FGL_J0957.6+5523_daily_bin75.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 0.81
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594720/ft1_filtered_4FGL_J0957.6+5523_daily_bin75.fits scfile=/scratch/kocevski/594720/ft2_4FGL_J0957.6+5523_daily_bin75.fits outfile=/scratch/kocevski/594720/cmap_HighResolution_258768001_259027201_4FGL_J0957.6+5523_daily_bin75.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.56
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/594720/ft1_filtered_4FGL_J0957.6+5523_daily_bin75.fits', '/scratch/kocevski/594720/ft2_4FGL_J0957.6+5523_daily_bin75.fits', expMap='/scratch/kocevski/594720/expmap_258768001_259027201_4FGL_J0957.6+5523_daily_bin75.fits', expCube='/scratch/kocevski/594720/ltcube_258768001_259027201_4FGL_J0957.6+5523_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/594720/Model_4FGL_J0957.6+5523_daily_bin75.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/594720/ft1_filtered_4FGL_J0957.6+5523_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/594720/ft2_4FGL_J0957.6+5523_daily_bin75.fits
Exposure map: /scratch/kocevski/594720/expmap_258768001_259027201_4FGL_J0957.6+5523_daily_bin75.fits
Exposure cube: /scratch/kocevski/594720/ltcube_258768001_259027201_4FGL_J0957.6+5523_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/594720/Model_4FGL_J0957.6+5523_daily_bin75.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) = 3221.82085625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.383       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5264       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13838E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3457       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.436       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2568       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.079       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .67849       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .54547E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.620       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10841E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3021       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6013       1.0000         .10000E-03   10000.    
    20 'norm      '    .83307       1.0000         .10000E-03   10000.    
    21 'norm      '    4.7908       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.051       1.0000         .10000E-03   10000.    
    25 'norm      '    .10310E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.2388       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    9.8598       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96092       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0074       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=   3221.812     FROM MIGRAD    STATUS=CONVERGED    896 CALLS     4583 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.379        9.8296       -.68754E-06    .22449E-03
   2  norm          2.5344        9.2129        .91929E-05    .56316E-03
   3  Prefactor     .10145E-03    25.176       -.87453E-05** at limit **
   4  Prefactor     9.3439        16.696        .58192E-06    .21556E-05
   5  Prefactor     19.374        38.660        .29478E-05    .10561E-03
   6  Prefactor     .10000E-03    51.944        .52687E-05** at limit **
   7  norm          2.2565        1.5670        .40028E-07   -.55773E-03
   8  Prefactor     14.084        7.8385       -.20041E-06    .24415E-03
   9  Prefactor     .10000E-03    31.041       -.25132E-05** at limit **
  10  Prefactor     .10000E-03    2.0152       -.16362E-06** at limit **
  11  Prefactor     .64442        36.256       -.60898E-05    .17112E-03
  12  Prefactor     .10000E-03    13.849        .10847E-06** at limit **
  13  Prefactor     .10046E-03    14.420        .35827E-05** at limit **
  14  Prefactor     .10000E-03    5.9960       -.76727E-07** at limit **
  15  norm          16.615        15.049        .37517E-06    .82743E-04
  16  Prefactor     .10000E-03    84.524       -.35813E-05** at limit **
  17  norm          1.3020        .75479        .29357E-07    .32210E-03
  18  norm          .10000E-03    20.628       -.72144E-06** at limit **
  19  Prefactor     7.6056        11.204        .18753E-05    .45563E-03
  20  norm          .83262        1.1692        .18153E-06   -.11574E-03
  21  norm          4.7922        4.3782       -.33956E-07    .53458E-04
  22  Prefactor     .10000E-03    108.97       -.50638E-05** at limit **
  23  norm          .10000E-03    11.298       -.13917E-07** at limit **
  24  Prefactor     38.060        30.774        .29734E-06   -.37472E-05
  25  norm          .10000E-03    3.1545       -.85999E-07** at limit **
  26  norm          4.2392        3.1825        .72316E-07    .52726E-04
  27  Prefactor     .10000E-03    35.646       -.14814E-05** at limit **
  28  Prefactor     .10000E-03    75.290       -.57493E-06** at limit **
  29  norm          9.8613        4.5196        .47238E-08   -.36275E-04
  30  Prefactor     .10000E-03    23.958        .18693E-05** at limit **
  31  Prefactor     .10000E-03    25.480        .10004E-05** at limit **
  32  Normalizat    .96006        .26752        .84618E-06    .36880E-03
  33  Prefactor     1.0081        .27361       -.30704E-05    .22079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3788
  norm       = 2.53442
  Prefactor  = 0.000101446
  Prefactor  = 9.34389
  Prefactor  = 19.3738
  Prefactor  = 0.000100001
  norm       = 2.25651
  Prefactor  = 14.084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.644422
  Prefactor  = 0.0001
  Prefactor  = 0.000100456
  Prefactor  = 0.0001
  norm       = 16.6153
  Prefactor  = 0.0001
  norm       = 1.30202
  norm       = 0.0001
  Prefactor  = 7.60559
  norm       = 0.832621
  norm       = 4.7922
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 38.0601
  norm       = 0.0001
  norm       = 4.23921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.86133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.960063
  Prefactor  = 1.00812
 **********
 **   18 **HESSE 
 **********

 FCN=   3221.812     FROM HESSE     STATUS=OK           699 CALLS     5282 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.379        9.7816        .12435E-03   -1.5064    
   2  norm          2.5344        9.3794        .12850E-02   -1.5390    
   3  Prefactor     .10145E-03    143.15        .46309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3439        16.692        .13109E-03   -1.5097    
   5  Prefactor     19.374        38.777        .90851E-04   -1.4827    
   6  Prefactor     .10000E-03    51.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2565        1.5366        .54417E-04   -1.5408    
   8  Prefactor     14.084        7.8602        .10675E-03   -1.4957    
   9  Prefactor     .10000E-03    31.797        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0258        .78674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .64442        346.20        .58083E-02   -1.5547    
  12  Prefactor     .10000E-03    13.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10046E-03    127.40        .38480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.0081        .13555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.615        15.038        .98245E-04   -1.4893    
  16  Prefactor     .10000E-03    84.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3020        .75610        .36366E-04   -1.5480    
  18  norm          .10000E-03    20.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.6056        11.347        .72728E-03   -1.5156    
  20  norm          .83262        1.1326        .68260E-03   -1.5525    
  21  norm          4.7922        4.3791        .10893E-03   -1.5270    
  22  Prefactor     .10000E-03    109.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    11.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.060        30.774        .64974E-04   -1.4473    
  25  norm          .10000E-03    3.1761        .97774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.2392        3.1805        .84537E-04   -1.5296    
  27  Prefactor     .10000E-03    35.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    75.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          9.8613        4.5237        .79085E-04   -1.5080    
  30  Prefactor     .10000E-03    23.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    25.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .96006        .31204        .26299E-03   -.94381    
  33  Prefactor     1.0081        .31899        .28176E-03   -.92459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86026e-08
Minuit parameter uncertainties:
  1  9.78308
  2  9.38488
  3  0.0288392
  4  16.6999
  5  38.8279
  6  0.00035154
  7  1.5366
  8  7.86077
  9  0.000157492
  10  8.8052e-06
  11  30.0466
  12  1.38503e-05
  13  0.0152682
  14  4.78118e-06
  15  15.0411
  16  0.000114242
  17  0.756104
  18  7.23137e-05
  19  11.3498
  20  1.1326
  21  4.37941
  22  0.000495855
  23  1.7934e-06
  24  30.7871
  25  5.8815e-06
  26  3.18058
  27  2.51747e-05
  28  2.14126e-05
  29  4.52382
  30  6.85629e-06
  31  2.06274e-05
  32  0.312629
  33  0.319587
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.302e+00  7.561e-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.008e+00  3.196e-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:  9.601e-01  3.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.63
Ra Dec: 149.416 55.384
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 6.39e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 4.39e-05 +/- 2.55e-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) = 3221.49004752
delta logL = 0.321563044103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3221.47654016
delta logL = 0.335070396573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2344       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5343       1.0000          .0000       5.0000    
     3 'Normalizat'    .97442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0016       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=   3221.477     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      198 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2343        .74432        .83760E-02   -.49975E-04
   2  alpha         1.5343        .39037        .22250       -.12585E-04
   3  Normalizat    .97439        .23920        .45846E-01    .67343E-05
   4  Prefactor     1.0016        .26274        .45127E-01    .57330E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2343
  alpha      = 1.5343
  Normalizat = 0.974391
  Prefactor  = 1.0016
 **********
 **   18 **HESSE 
 **********

 FCN=   3221.477     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2343        .79078        .36930E-04   -1.5486    
   2  alpha         1.5343        .43322        .93888E-02   -.39660    
   3  Normalizat    .97439        .26764        .26130E-03   -.93893    
   4  Prefactor     1.0016        .29402        .28250E-03   -.92676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06e-11
Minuit parameter uncertainties:
  1  0.79079
  2  0.435811
  3  0.268007
  4  0.294491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594720': 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) = 3221.47654015
delta logL = 0.335070408694

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.234e+00  7.908e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.534e+00  4.358e-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.002e+00  2.945e-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:  9.744e-01  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.26
Ra Dec: 149.416 55.384
Photon Index (Free Index): 1.53 +/- 0.44
Photon Flux (Free Index): 4.62e-08 +/- 3.42e-08
Energy Flux (Free Index): 7.42e-05 +/- 6.92e-05

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/594720/cmap_HighResolution_258768001_259027201_4FGL_J0957.6+5523_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.39e-08', energy_flux2='7.42e-05', photon_flux_error='3.71e-08', dlogl='3.35e-01', energy_flux='4.39e-05', photon_flux2='4.62e-08', job_status='DONE', time_completed='2021-09-01 06:55:44.693755', photon_index_error2='0.44', photon_index2='1.53', ts='15.63', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='6.92e-05', EG='0.96', time_epoch_completed='1630504544.69', return_code='0', job_id='594720', GAL2='1.00', EG2='0.97', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='3.42e-08', ts2='16.26', photon_index='1.90' WHERE bin_id='75' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:55:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 594720: <4FGL_J0957.6+5523_daily_bin75> in cluster <slac> Done

Job <4FGL_J0957.6+5523_daily_bin75> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 06:40:56 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:40:58 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:40:58 2021
Terminated at Wed Sep  1 06:55:45 2021
Results reported at Wed Sep  1 06:55:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin75 149.416 55.3838 258768001 259027201 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 :                                   661.23 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             249.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            889 sec.

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

