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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1580
RA = 149.471, Dec = 34.3975
tmin = 648864001, tmax = 649123201
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='613404', job_status='RUN', time_executed='2021-09-01 07:39:59.685180', time_epoch_executed='1630507199.69' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613404

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613404/ft1_4FGL_J0957.8+3423_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613404/ft2_4FGL_J0957.8+3423_daily_bin1580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613404/ft1_4FGL_J0957.8+3423_daily_bin1580.fits outfile=/scratch/kocevski/613404/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1580.fits ra=149.471 dec=34.3975 rad=12.0 tmin=648864001.0 tmax=649123201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.46
user 2.81
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/613404/ft2_4FGL_J0957.8+3423_daily_bin1580.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/613404/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1580.fits evtable="EVENTS" outfile="/scratch/kocevski/613404/ft1_filtered_4FGL_J0957.8+3423_daily_bin1580.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.44
user 0.35
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/613404/ft1_filtered_4FGL_J0957.8+3423_daily_bin1580.fits" evtable="EVENTS" scfile=/scratch/kocevski/613404/ft2_4FGL_J0957.8+3423_daily_bin1580.fits sctable="SC_DATA" outfile=/scratch/kocevski/613404/ltcube_648864001_649123201_4FGL_J0957.8+3423_daily_bin1580.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/613404/ft2_4FGL_J0957.8+3423_daily_bin1580.fits
.....................!
real 14.13
user 12.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613404/ft1_filtered_4FGL_J0957.8+3423_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/613404/ft2_4FGL_J0957.8+3423_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/613404/ltcube_648864001_649123201_4FGL_J0957.8+3423_daily_bin1580.fits outfile=/scratch/kocevski/613404/expmap_648864001_649123201_4FGL_J0957.8+3423_daily_bin1580.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/613404/ltcube_648864001_649123201_4FGL_J0957.8+3423_daily_bin1580.fits
.....................!
real 196.38
user 188.21
sys 5.28

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/613404/ft1_filtered_4FGL_J0957.8+3423_daily_bin1580.fits scfile=/scratch/kocevski/613404/ft2_4FGL_J0957.8+3423_daily_bin1580.fits outfile=/scratch/kocevski/613404/cmap_648864001_649123201_4FGL_J0957.8+3423_daily_bin1580.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613404/ft1_filtered_4FGL_J0957.8+3423_daily_bin1580.fits scfile=/scratch/kocevski/613404/ft2_4FGL_J0957.8+3423_daily_bin1580.fits outfile=/scratch/kocevski/613404/cmap_HighResolution_648864001_649123201_4FGL_J0957.8+3423_daily_bin1580.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/613404/ft1_filtered_4FGL_J0957.8+3423_daily_bin1580.fits', '/scratch/kocevski/613404/ft2_4FGL_J0957.8+3423_daily_bin1580.fits', expMap='/scratch/kocevski/613404/expmap_648864001_649123201_4FGL_J0957.8+3423_daily_bin1580.fits', expCube='/scratch/kocevski/613404/ltcube_648864001_649123201_4FGL_J0957.8+3423_daily_bin1580.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/613404/Model_4FGL_J0957.8+3423_daily_bin1580.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/613404/ft1_filtered_4FGL_J0957.8+3423_daily_bin1580.fits
Spacecraft file(s): /scratch/kocevski/613404/ft2_4FGL_J0957.8+3423_daily_bin1580.fits
Exposure map: /scratch/kocevski/613404/expmap_648864001_649123201_4FGL_J0957.8+3423_daily_bin1580.fits
Exposure cube: /scratch/kocevski/613404/ltcube_648864001_649123201_4FGL_J0957.8+3423_daily_bin1580.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/613404/Model_4FGL_J0957.8+3423_daily_bin1580.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) = 2319.40316204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.038       1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.910       1.0000         .10000E-03   10000.    
     6 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1424       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .98157E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.945       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.168       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2784       1.0000         .10000E-03   10000.    
    16 'norm      '    19.050       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28733E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.451       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4598       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.182       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.6681       1.0000         .10000E-03   10000.    
    26 'Prefactor '    66.100       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .86144       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94990       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.

 FCN=   2319.370     FROM MIGRAD    STATUS=CONVERGED   1243 CALLS     4598 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0951        23.005        .15061E-03   -.10719E-04
   2  Prefactor     .10000E-03    219.03        .18142E-02** at limit **
   3  Prefactor     30.026        36.261        .73103E-04    .47043E-04
   4  norm          .10000E-03    4.2603        .96971E-03** at limit **
   5  Prefactor     43.901        79.976        .60501E-04    .11949E-03
   6  norm          .10000E-03    13.393        .17207E-02** at limit **
   7  Prefactor     4.1401        10.076        .19805E-03   -.24882E-03
   8  Prefactor     .10000E-03    7.3343        .12715E-02** at limit **
   9  norm          .10000E-03    38.354        .18142E-02** at limit **
  10  Prefactor     .10000E-03    23.749        .18142E-02** at limit **
  11  Prefactor     .10000E-03    49.850        .18142E-02** at limit **
  12  Prefactor     .10030E-03    143.35        .14439    ** at limit **
  13  Prefactor     13.943        13.859        .10726E-03   -.57766E-05
  14  Prefactor     16.178        14.734        .99609E-04    .26022E-04
  15  Prefactor     7.2809        6.2630        .10111E-03   -.91528E-04
  16  norm          19.051        14.611        .45882E-03   -.28054E-03
  17  Prefactor     .10221E-03    10.147        .30483E-01** at limit **
  18  Prefactor     64.421        54.801        .49988E-04   -.18467E-03
  19  Prefactor     .10000E-03    3.8355        .91479E-03** at limit **
  20  norm          3.4536        10.660        .21742E-03   -.23951E-03
  21  Prefactor     .10000E-03    56.065        .18142E-02** at limit **
  22  Prefactor     30.162        30.326        .72929E-04   -.40094E-04
  23  Prefactor     .10000E-03    8.6358        .19566E-02** at limit **
  24  Prefactor     .10000E-03    4.9817        .10405E-02** at limit **
  25  Prefactor     8.6536        23.294        .13615E-03   -.78993E-04
  26  Prefactor     66.096        45.162        .49364E-04    .58727E-05
  27  Normalizat    .86120        .33889        .24862E-03   -.18642E-03
  28  Prefactor     .95020        .37209        .27961E-03   -.22521E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.09507
  Prefactor  = 0.000100002
  Prefactor  = 30.026
  norm       = 0.0001
  Prefactor  = 43.9009
  norm       = 0.0001
  Prefactor  = 4.14012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001003
  Prefactor  = 13.9432
  Prefactor  = 16.1779
  Prefactor  = 7.28087
  norm       = 19.0507
  Prefactor  = 0.000102214
  Prefactor  = 64.4206
  Prefactor  = 0.0001
  norm       = 3.45358
  Prefactor  = 0.0001
  Prefactor  = 30.1621
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 8.65356
  Prefactor  = 66.0955
  Normalizat = 0.861196
  Prefactor  = 0.950201
 **********
 **   18 **HESSE 
 **********

 FCN=   2319.370     FROM HESSE     STATUS=OK           511 CALLS     5109 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0951        23.004        .60244E-05   -1.5175    
   2  Prefactor     .10000E-03    219.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.026        36.245        .29241E-05   -1.4611    
   4  norm          .10000E-03    4.2604        .19394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.901        79.974        .12100E-04   -1.4382    
   6  norm          .10000E-03    13.393        .34413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1401        10.072        .79218E-05   -1.5301    
   8  Prefactor     .10000E-03    7.3348        .25430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    38.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.749        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.852        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10030E-03    162.49        .13423       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.943        13.859        .42903E-05   -1.4961    
  14  Prefactor     16.178        14.736        .39844E-05   -1.4903    
  15  Prefactor     7.2809        6.2628        .40443E-05   -1.5168    
  16  norm          19.051        14.610        .18353E-04   -1.4835    
  17  Prefactor     .10221E-03    7.3573        .37517E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     64.421        54.798        .99976E-05   -1.4101    
  19  Prefactor     .10000E-03    3.8359        .18296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4536        10.658        .86968E-05   -1.5336    
  21  Prefactor     .10000E-03    56.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     30.162        30.325        .14586E-04   -1.4609    
  23  Prefactor     .10000E-03    8.6642        .39133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.9821        .20809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.6536        23.293        .54460E-05   -1.5120    
  26  Prefactor     66.096        45.177        .19746E-05   -1.4080    
  27  Normalizat    .86120        .33934        .49724E-04   -.97837    
  28  Prefactor     .95020        .37194        .55922E-04   -.94408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36312e-09
Minuit parameter uncertainties:
  1  23.0328
  2  0.00128722
  3  36.2715
  4  3.8046e-06
  5  80.1702
  6  6.60376e-05
  7  10.076
  8  1.56538e-05
  9  0.000258437
  10  3.38761e-05
  11  3.09126e-05
  12  0.0139943
  13  13.8622
  14  14.7391
  15  6.26338
  16  14.6132
  17  0.00807312
  18  54.8413
  19  1.23145e-05
  20  10.6636
  21  0.000270123
  22  30.3401
  23  0.000241168
  24  8.88077e-06
  25  23.3178
  26  45.2002
  27  0.340184
  28  0.37294
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.618e+01  1.474e+01  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:  9.502e-01  3.729e-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:  8.612e-01  3.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.70
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.64e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 2.03e-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) = 2318.70832299
delta logL = 0.661842441909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2318.70326788
delta logL = 0.666897545394

Fit tolerance = 1e-08

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

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

 FCN=   2318.703     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.330        19.783       -.22845E-05   -.10991E-03
   2  Index         1.3661        .64907       -.16144E-04    .18555E-04
   3  Normalizat    .89387        .26599        .59718E-06    .84083E-04
   4  Prefactor     .93210        .31420       -.45965E-08    .59377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3297
  Index      = 1.36607
  Normalizat = 0.893865
  Prefactor  = 0.932096
 **********
 **   18 **HESSE 
 **********

 FCN=   2318.703     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.330        19.548        .96201E-04   -1.4875    
   2  Index         1.3661        .64077        .72722E-02   -.81363    
   3  Normalizat    .89387        .30449        .24437E-03   -.96676    
   4  Prefactor     .93210        .35964        .28197E-03   -.95028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19668e-11
Minuit parameter uncertainties:
  1  19.5555
  2  0.644546
  3  0.30508
  4  0.360562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613404': 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) = 2318.70326707
delta logL = 0.666898355353

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.733e+01  1.956e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.366e+00  6.445e-01  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:  9.321e-01  3.606e-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:  8.939e-01  3.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.03
Ra Dec: 149.471 34.398
Photon Index (Free Index): 1.37 +/- 0.64
Photon Flux (Free Index): 1.71e-08 +/- 2.28e-08
Energy Flux (Free Index): 8.44e-05 +/- 1.33e-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/613404/cmap_HighResolution_648864001_649123201_4FGL_J0957.8+3423_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.64e-08', energy_flux2='8.44e-05', photon_flux_error='4.23e-08', dlogl='6.67e-01', energy_flux='2.23e-05', photon_flux2='1.71e-08', job_status='DONE', time_completed='2021-09-01 07:48:30.441700', photon_index_error2='0.64', photon_index2='1.37', ts='6.70', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.33e-04', EG='0.86', time_epoch_completed='1630507710.44', return_code='0', job_id='613404', GAL2='0.93', EG2='0.89', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='2.28e-08', ts2='8.03', photon_index='2.16' WHERE bin_id='1580' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:48:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 613404: <4FGL_J0957.8+3423_daily_bin1580> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1580> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep  1 07:36:22 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:36:24 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:36:24 2021
Terminated at Wed Sep  1 07:48:31 2021
Results reported at Wed Sep  1 07:48:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1580 149.471 34.3975 648864001 649123201 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 :                                   498.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            729 sec.

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

