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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin304
RA = 149.471, Dec = 34.3975
tmin = 318124801, tmax = 318384001
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='604657', job_status='RUN', time_executed='2021-09-01 07:11:35.455162', time_epoch_executed='1630505495.46' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604657

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604657/ft1_4FGL_J0957.8+3423_daily_bin304.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604657/ft2_4FGL_J0957.8+3423_daily_bin304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604657/ft1_4FGL_J0957.8+3423_daily_bin304.fits outfile=/scratch/kocevski/604657/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin304.fits ra=149.471 dec=34.3975 rad=12.0 tmin=318124801.0 tmax=318384001.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 4.37
user 3.13
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/604657/ft2_4FGL_J0957.8+3423_daily_bin304.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604657/ft2_4FGL_J0957.8+3423_daily_bin304.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/604657/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin304.fits evtable="EVENTS" outfile="/scratch/kocevski/604657/ft1_filtered_4FGL_J0957.8+3423_daily_bin304.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 1.20
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604657/ft1_filtered_4FGL_J0957.8+3423_daily_bin304.fits" evtable="EVENTS" scfile=/scratch/kocevski/604657/ft2_4FGL_J0957.8+3423_daily_bin304.fits sctable="SC_DATA" outfile=/scratch/kocevski/604657/ltcube_318124801_318384001_4FGL_J0957.8+3423_daily_bin304.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/604657/ft2_4FGL_J0957.8+3423_daily_bin304.fits
.....................!
real 13.58
user 11.65
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604657/ft1_filtered_4FGL_J0957.8+3423_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/604657/ft2_4FGL_J0957.8+3423_daily_bin304.fits sctable="SC_DATA" expcube=/scratch/kocevski/604657/ltcube_318124801_318384001_4FGL_J0957.8+3423_daily_bin304.fits outfile=/scratch/kocevski/604657/expmap_318124801_318384001_4FGL_J0957.8+3423_daily_bin304.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/604657/ltcube_318124801_318384001_4FGL_J0957.8+3423_daily_bin304.fits
.....................!
real 195.28
user 186.21
sys 4.98

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

Setting source of interest to:
4FGL J0957.8+3423 @ 149.471 34.3975

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/604657/ft1_filtered_4FGL_J0957.8+3423_daily_bin304.fits scfile=/scratch/kocevski/604657/ft2_4FGL_J0957.8+3423_daily_bin304.fits outfile=/scratch/kocevski/604657/cmap_318124801_318384001_4FGL_J0957.8+3423_daily_bin304.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.471 yref=34.3975 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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604657/ft1_filtered_4FGL_J0957.8+3423_daily_bin304.fits scfile=/scratch/kocevski/604657/ft2_4FGL_J0957.8+3423_daily_bin304.fits outfile=/scratch/kocevski/604657/cmap_HighResolution_318124801_318384001_4FGL_J0957.8+3423_daily_bin304.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.471 yref=34.3975 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.68
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/604657/ft1_filtered_4FGL_J0957.8+3423_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/604657/ft2_4FGL_J0957.8+3423_daily_bin304.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/604657/Model_4FGL_J0957.8+3423_daily_bin304.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/604657/ft1_filtered_4FGL_J0957.8+3423_daily_bin304.fits.....................!
real 44.35
user 42.18
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/604657/ft1_filtered_4FGL_J0957.8+3423_daily_bin304.fits', '/scratch/kocevski/604657/ft2_4FGL_J0957.8+3423_daily_bin304.fits', expMap='/scratch/kocevski/604657/expmap_318124801_318384001_4FGL_J0957.8+3423_daily_bin304.fits', expCube='/scratch/kocevski/604657/ltcube_318124801_318384001_4FGL_J0957.8+3423_daily_bin304.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/604657/Model_4FGL_J0957.8+3423_daily_bin304.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0957.8+3423'

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.465e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.164e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/604657/ft1_filtered_4FGL_J0957.8+3423_daily_bin304.fits
Spacecraft file(s): /scratch/kocevski/604657/ft2_4FGL_J0957.8+3423_daily_bin304.fits
Exposure map: /scratch/kocevski/604657/expmap_318124801_318384001_4FGL_J0957.8+3423_daily_bin304.fits
Exposure cube: /scratch/kocevski/604657/ltcube_318124801_318384001_4FGL_J0957.8+3423_daily_bin304.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/604657/Model_4FGL_J0957.8+3423_daily_bin304.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) = 5174.46903449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3735       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18642       1.0000         .10000E-03   10000.    
     4 'norm      '    .88869       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1255       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7647       1.0000         .10000E-03   10000.    
     9 'norm      '    .18046       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .45031       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3532       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7258       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3986       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21408E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    10.702       1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.573       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41006       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.0514       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.244       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3732       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .62824       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3078       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+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=   5174.464     FROM MIGRAD    STATUS=FAILED      1309 CALLS     4232 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3708        4.2125        .13844E-03    .54529E-04
   2  Prefactor     .10000E-03    14.217        .18142E-02** at limit **
   3  Prefactor     .17808        8.5015        .17719E-02    .21832E-02
   4  norm          .88923        1.6074        .12945E-02    .34653E-02
   5  Prefactor     .10000E-03    4.9119        .15557E-02** at limit **
   6  norm          .10000E-03    7.0010        .36285E-03** at limit **
   7  Prefactor     2.1269        2.3330        .10630E-03   -.14887E-03
   8  Prefactor     1.7625        3.0506        .15765E-03    .17660E-03
   9  norm          .92930E-01    24.778        .84563E-01   -.48312E-04
  10  Prefactor     .10000E-03    10.971        .18142E-02** at limit **
  11  Prefactor     .21349        41.861        .91858E-01   -.19863E-04
  12  Prefactor     .10000E-03    22.569        .18142E-02** at limit **
  13  Prefactor     7.3494        5.9953        .14791E-03    .20576E-03
  14  Prefactor     .10000E-03    10.185        .36285E-02** at limit **
  15  Prefactor     .10000E-03    1.0070        .13907E-03** at limit **
  16  norm          3.7153        5.4892        .19834E-03   -.22354E-05
  17  Prefactor     1.7254        3.3164        .15271E-03    .17733E-03
  18  Prefactor     3.3920        49.950        .10973E-02    .20804E-04
  19  Prefactor     .10000E-03    7.1606        .32948E-01** at limit **
  20  norm          10.704        8.8137        .12247E-03    .12235E-03
  21  Prefactor     31.543        45.681        .71309E-04   -.63772E-05
  22  Prefactor     .10000E-03    16.138        .18142E-02** at limit **
  23  Prefactor     .39083        9.7351        .21318E-02    .26440E-03
  24  Prefactor     6.0502        4.9403        .13585E-03    .77127E-03
  25  Prefactor     20.264        41.359        .89020E-04    .62578E-05
  26  Prefactor     7.3520        23.736        .14771E-03   -.33866E-05
  27  Normalizat    .62852        .20303        .25538E-03    .18617E-03
  28  Prefactor     1.3079        .24163        .23026E-03   -.11201E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5174.464     FROM SIMPLEX   STATUS=UNCHANGED   1568 CALLS     5800 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3708        4.2125        .98941E-06   -1.5290    
   2  Prefactor     .10000E-03    14.217        .67510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .17808        8.5015        .99884E-06   -1.5624    
   4  norm          .88923        1.6074        .97713E-06   -1.5519    
   5  Prefactor     .10000E-03    4.9119        .31539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.0010        .27178E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1269        2.3330        .97018E-06   -1.5416    
   8  Prefactor     1.7625        3.0506        .97200E-06   -1.5442    
   9  norm          .92930E-01    24.778        .98900E-06   -1.5647    
  10  Prefactor     .10000E-03    10.971        .45102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .21349        41.861        .98631E-06   -1.5616    
  12  Prefactor     .10000E-03    22.569        .36746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3494        5.9953        .95422E-06   -1.5166    
  14  Prefactor     .10000E-03    10.185        .36168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.0070        .41703E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7153        5.4892        .96417E-06   -1.5322    
  17  Prefactor     1.7254        3.3164        .97203E-06   -1.5445    
  18  Prefactor     3.3920        49.950        .97212E-06   -1.5340    
  19  Prefactor     .10000E-03    7.1606        .14211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.704        8.8137        .94847E-06   -1.5054    
  21  Prefactor     31.543        45.681        .92041E-06   -1.4584    
  22  Prefactor     .10000E-03    16.138        .42493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .39083        9.7351        .98402E-06   -1.5583    
  24  Prefactor     6.0502        4.9403        .95788E-06   -1.5216    
  25  Prefactor     20.264        41.359        .93299E-06   -1.4807    
  26  Prefactor     7.3520        23.736        .95624E-06   -1.5166    
  27  Normalizat    .62852        .20303        .67306E-06   -1.0679    
  28  Prefactor     1.3079        .24163        .52277E-06   -.83072    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5174.464     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     6333 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3708        4.2119        .55374E-05   -.18478E-04
   2  Prefactor     .10000E-03    14.217        .36285E-03** at limit **
   3  Prefactor     .17809        8.4456        .35437E-03    .45235E-05
   4  norm          .88923        1.6061        .25890E-03    .16028E-04
   5  Prefactor     .10000E-03    4.9121        .31115E-03** at limit **
   6  norm          .10000E-03    7.0014        .72569E-04** at limit **
   7  Prefactor     2.1269        2.3222        .42521E-05   -.15935E-03
   8  Prefactor     1.7624        3.0489        .63061E-05   -.45431E-04
   9  norm          .92945E-01    22.907        .87520E-01   -.44196E-04
  10  Prefactor     .10000E-03    10.972        .36285E-03** at limit **
  11  Prefactor     .21359        36.830        .97652E-01   -.26740E-04
  12  Prefactor     .10000E-03    22.571        .36285E-03** at limit **
  13  Prefactor     7.3494        5.9940        .59164E-05   -.53035E-04
  14  Prefactor     .10000E-03    10.264        .72569E-03** at limit **
  15  Prefactor     .10000E-03    1.0070        .27815E-04** at limit **
  16  norm          3.7152        5.4891        .79337E-05    .34391E-06
  17  Prefactor     1.7254        3.2895        .61084E-05   -.20175E-03
  18  Prefactor     3.3920        49.739        .43891E-04   -.15541E-04
  19  Prefactor     .10000E-03    5.0285        .40955E-01** at limit **
  20  norm          10.704        8.7976        .48988E-05   -.57089E-04
  21  Prefactor     31.543        45.706        .28523E-05   -.39857E-05
  22  Prefactor     .10000E-03    16.138        .36285E-03** at limit **
  23  Prefactor     .39079        9.5665        .85271E-04   -.49863E-04
  24  Prefactor     6.0501        4.9394        .54338E-05   -.23726E-03
  25  Prefactor     20.264        41.160        .35608E-05   -.38313E-05
  26  Prefactor     7.3520        23.738        .59083E-05   -.38484E-06
  27  Normalizat    .62852        .20272        .10215E-04   -.22058E-03
  28  Prefactor     1.3079        .24177        .46052E-04   -.13321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.37078
  Prefactor  = 0.0001
  Prefactor  = 0.178091
  norm       = 0.88923
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.12691
  Prefactor  = 1.76245
  norm       = 0.0929452
  Prefactor  = 0.0001
  Prefactor  = 0.213588
  Prefactor  = 0.0001
  Prefactor  = 7.34941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.71525
  Prefactor  = 1.72539
  Prefactor  = 3.39201
  Prefactor  = 0.000100004
  norm       = 10.7036
  Prefactor  = 31.5426
  Prefactor  = 0.0001
  Prefactor  = 0.390788
  Prefactor  = 6.05013
  Prefactor  = 20.2644
  Prefactor  = 7.35203
  Normalizat = 0.628519
  Prefactor  = 1.30793
 **********
 **   18 **HESSE 
 **********

 FCN=   5174.464     FROM HESSE     STATUS=OK           525 CALLS     6858 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3708        4.2110        .11075E-05   -1.5290    
   2  Prefactor     .10000E-03    14.218        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .17809        8.4216        .14175E-04   -1.5624    
   4  norm          .88923        1.6059        .10356E-04   -1.5519    
   5  Prefactor     .10000E-03    4.9121        .62229E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.0014        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1269        2.3195        .85042E-06   -1.5416    
   8  Prefactor     1.7624        3.0490        .12612E-05   -1.5442    
   9  norm          .92945E-01    23.372        .86832E-01   -1.5647    
  10  Prefactor     .10000E-03    10.972        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .21359        38.402        .95646E-01   -1.5616    
  12  Prefactor     .10000E-03    22.571        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3494        5.9935        .11833E-05   -1.5166    
  14  Prefactor     .10000E-03    10.268        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.0070        .55630E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7152        5.4890        .79337E-05   -1.5322    
  17  Prefactor     1.7254        3.2997        .12217E-05   -1.5445    
  18  Prefactor     3.3920        49.879        .17557E-05   -1.5340    
  19  Prefactor     .10000E-03    5.6810        .37969E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.704        8.7944        .97977E-06   -1.5054    
  21  Prefactor     31.543        45.615        .57047E-06   -1.4584    
  22  Prefactor     .10000E-03    16.138        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .39079        9.5802        .34108E-05   -1.5583    
  24  Prefactor     6.0501        4.9409        .10868E-05   -1.5216    
  25  Prefactor     20.264        41.482        .71216E-06   -1.4807    
  26  Prefactor     7.3520        23.820        .11817E-05   -1.5166    
  27  Normalizat    .62852        .20265        .20430E-05   -1.0679    
  28  Prefactor     1.3079        .24171        .92105E-05   -.83072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72633e-10
Minuit parameter uncertainties:
  1  4.21125
  2  1.15382e-05
  3  2.44902
  4  1.60596
  5  8.6629e-08
  6  6.90076e-06
  7  2.31963
  8  3.0493
  9  2.94734
  10  3.05341e-06
  11  5.73027
  12  1.81259e-05
  13  5.99395
  14  1.02326e-05
  15  1.05338e-06
  16  5.48975
  17  3.30006
  18  26.0404
  19  0.000303922
  20  8.79541
  21  45.6659
  22  3.69492e-05
  23  3.87
  24  4.94127
  25  41.5406
  26  23.8507
  27  0.202886
  28  0.241914
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.023e-05  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.164e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.308e+00  2.419e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  6.285e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 4.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604657/likelihoodResults_318124801_318384001_4FGL_J0957.8+3423_daily_bin304.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) = 5174.46457993
delta logL = -0.000465349864498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5174.46411446
delta logL = 1.17974195746e-07

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.1889       1.0000          .0000       10.000    
     3 'Normalizat'    .62852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3079       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5174.464     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      228 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .12429        .54700E-01** at limit **
   2  Index         2.2133        8.3881        .50000       -.19217E-04
   3  Normalizat    .62852        .66042E-03    .41328E-01   -.55807E-05
   4  Prefactor     1.3079        .83394E-03    .52083E-01    .60292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21331
  Normalizat = 0.628519
  Prefactor  = 1.30793
 **********
 **   18 **HESSE 
 **********

 FCN=   5174.464     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.276        .29335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2133        6.0965        .50000       -.59118    
   3  Normalizat    .62852        .79815E-02    .25538E-03   -1.0679    
   4  Prefactor     1.3079        .10081E-01    .23026E-03   -.83072    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20214e-06
Minuit parameter uncertainties:
  1  0.000159213
  2  238.451
  3  0.00798155
  4  0.0100813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604657': 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) = 5174.46411435
delta logL = 2.34016624745e-07

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.592e-04  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.213e+00  2.385e+02  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.308e+00  1.008e-02  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  6.285e-01  7.982e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.471 34.398

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/604657/cmap_HighResolution_318124801_318384001_4FGL_J0957.8+3423_daily_bin304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-03', job_status='DONE', photon_flux_upper_limit='4.83e-08', time_completed='2021-09-01 07:27:03.604217', job_id='604657', GAL2='1.31', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630506423.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='2.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='304' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:27:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 604657: <4FGL_J0957.8+3423_daily_bin304> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin304> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 07:11:17 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:11:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 07:11:18 2021
Terminated at Wed Sep  1 07:27:05 2021
Results reported at Wed Sep  1 07:27:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin304 149.471 34.3975 318124801 318384001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0957.8+3423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   908.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            948 sec.

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

