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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1608
RA = 149.471, Dec = 34.3975
tmin = 656121601, tmax = 656380801
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='290231', job_status='RUN', time_executed='2021-12-07 20:41:02.612469', time_epoch_executed='1638938462.61' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290231

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290231/ft1_4FGL_J0957.8+3423_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290231/ft2_4FGL_J0957.8+3423_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290231/ft1_4FGL_J0957.8+3423_daily_bin1608.fits outfile=/scratch/kocevski/290231/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1608.fits ra=149.471 dec=34.3975 rad=12.0 tmin=656121601.0 tmax=656380801.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.54
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290231/ft1_filtered_4FGL_J0957.8+3423_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/290231/ft2_4FGL_J0957.8+3423_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/290231/ltcube_656121601_656380801_4FGL_J0957.8+3423_daily_bin1608.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/290231/ft2_4FGL_J0957.8+3423_daily_bin1608.fits
.....................!
real 14.15
user 13.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290231/ft1_filtered_4FGL_J0957.8+3423_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/290231/ft2_4FGL_J0957.8+3423_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/290231/ltcube_656121601_656380801_4FGL_J0957.8+3423_daily_bin1608.fits outfile=/scratch/kocevski/290231/expmap_656121601_656380801_4FGL_J0957.8+3423_daily_bin1608.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/290231/ltcube_656121601_656380801_4FGL_J0957.8+3423_daily_bin1608.fits
.....................!
real 192.03
user 186.09
sys 5.48

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/290231/ft1_filtered_4FGL_J0957.8+3423_daily_bin1608.fits scfile=/scratch/kocevski/290231/ft2_4FGL_J0957.8+3423_daily_bin1608.fits outfile=/scratch/kocevski/290231/cmap_656121601_656380801_4FGL_J0957.8+3423_daily_bin1608.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.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290231/ft1_filtered_4FGL_J0957.8+3423_daily_bin1608.fits scfile=/scratch/kocevski/290231/ft2_4FGL_J0957.8+3423_daily_bin1608.fits outfile=/scratch/kocevski/290231/cmap_HighResolution_656121601_656380801_4FGL_J0957.8+3423_daily_bin1608.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3442       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.295       1.0000         .10000E-03   10000.    
     4 'norm      '    .31129E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.621       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .83297       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5099       1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.612       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3107       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.153       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3251       1.0000         .10000E-03   10000.    
    16 'norm      '    24.205       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8896       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.085       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6426       1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.008       1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.759       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13742E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .50081       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .82952       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0218       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88655       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=   6780.895     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3564 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3441        3.6308       -.11044E-06   -.10448E-03
   2  Prefactor     .10000E-03    8.7089        .55878E-07** at limit **
   3  Prefactor     11.295        4.6041       -.44871E-06   -.44589E-03
   4  norm          .10000E-03    .79274        .11999E-06** at limit **
   5  Prefactor     .10000E-03    6.5032        .13121E-06** at limit **
   6  norm          12.621        8.2388       -.54472E-06   -.18464E-03
   7  Prefactor     .83368        2.4132        .53453E-06    .11582E-03
   8  Prefactor     3.5092        3.0703       -.21278E-06   -.18155E-03
   9  norm          .10000E-03    4.6114        .78699E-07** at limit **
  10  Prefactor     .10000E-03    24.498        .11096E-05** at limit **
  11  Prefactor     .10000E-03    7.5793        .22015E-06** at limit **
  12  Prefactor     35.611        32.420       -.89295E-06   -.18321E-04
  13  Prefactor     7.3098        5.4972       -.57421E-06   -.26411E-03
  14  Prefactor     24.152        11.995       -.68082E-07    .19966E-04
  15  Prefactor     5.3249        2.9017       -.48188E-06   -.50985E-03
  16  norm          24.205        9.1445        .63407E-07   -.16728E-04
  17  Prefactor     5.8890        4.4306       -.86201E-07    .21205E-03
  18  Prefactor     31.082        24.820       -.38789E-06    .41587E-04
  19  Prefactor     .10000E-03    2.2553        .42844E-06** at limit **
  20  norm          1.6483        10.311       -.95975E-06    .10620E-05
  21  Prefactor     54.010        51.604       -.17804E-07    .22275E-04
  22  Prefactor     40.836        40.727        .32808E-05    .10049E-03
  23  Prefactor     .10000E-03    2.4044        .90649E-07** at limit **
  24  Prefactor     .47145        24.321       -.34905E-05    .18281E-03
  25  Prefactor     .10000E-03    11.902       -.10518E-06** at limit **
  26  Prefactor     .73828        29.582        .11876E-05    .16559E-03
  27  Normalizat    1.0216        .19147        .38524E-05   -.11434E-03
  28  Prefactor     .88678        .20124       -.47176E-05    .60261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.34407
  Prefactor  = 0.0001
  Prefactor  = 11.2947
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6207
  Prefactor  = 0.833676
  Prefactor  = 3.50922
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6112
  Prefactor  = 7.30982
  Prefactor  = 24.1523
  Prefactor  = 5.32488
  norm       = 24.2048
  Prefactor  = 5.88896
  Prefactor  = 31.0818
  Prefactor  = 0.0001
  norm       = 1.64828
  Prefactor  = 54.0096
  Prefactor  = 40.8359
  Prefactor  = 0.0001
  Prefactor  = 0.471454
  Prefactor  = 0.0001
  Prefactor  = 0.73828
  Normalizat = 1.02157
  Prefactor  = 0.886782
 **********
 **   18 **HESSE 
 **********

 FCN=   6780.895     FROM HESSE     STATUS=OK           533 CALLS     4097 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3441        3.6290        .13776E-03   -1.5291    
   2  Prefactor     .10000E-03    8.7100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.295        4.5565        .10203E-03   -1.5036    
   4  norm          .10000E-03    14.040        .14090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.621        8.2183        .11275E-03   -1.4997    
   7  Prefactor     .83368        2.3915        .19495E-03   -1.5525    
   8  Prefactor     3.5092        3.0464        .12852E-03   -1.5333    
   9  norm          .10000E-03    4.6135        .17270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.611        32.424        .67155E-04   -1.4514    
  13  Prefactor     7.3098        5.5119        .74171E-03   -1.5167    
  14  Prefactor     24.152        11.995        .81508E-04   -1.4725    
  15  Prefactor     5.3249        2.9108        .48937E-03   -1.5246    
  16  norm          24.205        9.1456        .81419E-04   -1.4724    
  17  Prefactor     5.8890        4.4228        .13851E-03   -1.5223    
  18  Prefactor     31.082        24.702        .71865E-04   -1.4592    
  19  Prefactor     .10000E-03    2.2761        .12069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6483        9.9464        .32963E-03   -1.5451    
  21  Prefactor     54.010        51.617        .54579E-04   -1.4237    
  22  Prefactor     40.836        44.775        .31394E-03   -1.4429    
  23  Prefactor     .10000E-03    6.1267        .24325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .47145        33.324        .26004E-02   -1.5571    
  25  Prefactor     .10000E-03    11.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .73828        98.739        .59629E-02   -1.5536    
  27  Normalizat    1.0216        .20238        .24040E-03   -.92311    
  28  Prefactor     .88678        .21410        .29392E-03   -.96604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50808e-09
Minuit parameter uncertainties:
  1  3.62922
  2  1.84849e-05
  3  4.55667
  4  0.000110986
  5  8.24307e-07
  6  8.21901
  7  2.39174
  8  3.04657
  9  3.6173e-06
  10  0.000160936
  11  9.5694e-06
  12  32.4398
  13  5.51227
  14  11.9962
  15  2.91091
  16  9.14609
  17  4.42305
  18  24.7099
  19  5.90714e-06
  20  8.09978
  21  51.6593
  22  44.8121
  23  4.7267e-05
  24  7.9311
  25  2.85335e-05
  26  17.1036
  27  0.202533
  28  0.214305
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  2.415e+01  1.200e+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:  8.868e-01  2.143e-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:  1.022e+00  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.06
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 6.93e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 1.66e-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) = 6780.79651903
delta logL = 0.0984892867436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6780.78077344
delta logL = 0.114234878492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.697       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3747       1.0000          .0000       10.000    
     3 'Normalizat'    1.0027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90077       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=   6780.781     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      286 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.698        15.013        .90245E-04   -.73361E-03
   2  Index         2.3746        .48489        .44630E-02   -.29997E-03
   3  Normalizat    1.0026        .18916        .24234E-03    .40439E-04
   4  Prefactor     .90078        .21308        .29190E-03    .40533E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6983
  Index      = 2.37457
  Normalizat = 1.00261
  Prefactor  = 0.900781
 **********
 **   18 **HESSE 
 **********

 FCN=   6780.781     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.698        14.031        .18049E-04   -1.4820    
   2  Index         2.3746        .45273        .17852E-03   -.55282    
   3  Normalizat    1.0026        .18878        .96934E-05   -.92943    
   4  Prefactor     .90078        .21286        .58379E-04   -.96114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14469e-09
Minuit parameter uncertainties:
  1  14.0337
  2  0.453586
  3  0.188901
  4  0.213061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290231': 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) = 6780.78077256
delta logL = 0.114235763042

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.970e+01  1.403e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.375e+00  4.536e-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.008e-01  2.131e-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:  1.003e+00  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 149.471 34.398
Photon Index (Free Index): 2.37 +/- 0.45
Photon Flux (Free Index): 8.43e-08 +/- 4.96e-08
Energy Flux (Free Index): 2.86e-05 +/- 1.56e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/290231/cmap_HighResolution_656121601_656380801_4FGL_J0957.8+3423_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.93e-08', energy_flux2='2.86e-05', photon_flux_error='3.44e-08', dlogl='1.14e-01', energy_flux='3.33e-05', photon_flux2='8.43e-08', job_status='DONE', time_completed='2021-12-07 20:53:45.839016', photon_index_error2='0.45', photon_index2='2.37', ts='8.06', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='1.02', time_epoch_completed='1638939225.84', return_code='0', job_id='290231', GAL2='0.90', EG2='1.00', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='4.96e-08', ts2='8.26', photon_index='2.16' WHERE bin_id='1608' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 20:53:45 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 290231: <4FGL_J0957.8+3423_daily_bin1608> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1608> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Dec  7 20:40:14 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:40:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:40:48 2021
Terminated at Tue Dec  7 20:53:46 2021
Results reported at Tue Dec  7 20:53:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1608 149.471 34.3975 656121601 656380801 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 :                                   762.20 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             302.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            812 sec.

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

