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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1615
RA = 149.471, Dec = 34.3975
tmin = 657936001, tmax = 658195201
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='290241', job_status='RUN', time_executed='2021-12-07 20:43:10.677480', time_epoch_executed='1638938590.68' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290241

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290241/ft1_4FGL_J0957.8+3423_daily_bin1615.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290241/ft2_4FGL_J0957.8+3423_daily_bin1615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290241/ft1_4FGL_J0957.8+3423_daily_bin1615.fits outfile=/scratch/kocevski/290241/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1615.fits ra=149.471 dec=34.3975 rad=12.0 tmin=657936001.0 tmax=658195201.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.15
user 3.92
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/290241/ft2_4FGL_J0957.8+3423_daily_bin1615.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/290241/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1615.fits evtable="EVENTS" outfile="/scratch/kocevski/290241/ft1_filtered_4FGL_J0957.8+3423_daily_bin1615.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290241/ft1_filtered_4FGL_J0957.8+3423_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/290241/ft2_4FGL_J0957.8+3423_daily_bin1615.fits sctable="SC_DATA" expcube=/scratch/kocevski/290241/ltcube_657936001_658195201_4FGL_J0957.8+3423_daily_bin1615.fits outfile=/scratch/kocevski/290241/expmap_657936001_658195201_4FGL_J0957.8+3423_daily_bin1615.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/290241/ltcube_657936001_658195201_4FGL_J0957.8+3423_daily_bin1615.fits
.....................!
real 193.14
user 187.01
sys 5.53

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/290241/ft1_filtered_4FGL_J0957.8+3423_daily_bin1615.fits scfile=/scratch/kocevski/290241/ft2_4FGL_J0957.8+3423_daily_bin1615.fits outfile=/scratch/kocevski/290241/cmap_657936001_658195201_4FGL_J0957.8+3423_daily_bin1615.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.55
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3968       1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.582       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9496       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0036       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.6120       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15719       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1128       1.0000         .10000E-03   10000.    
     9 'norm      '    11.408       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8807       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3724       1.0000         .10000E-03   10000.    
    16 'norm      '    24.038       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7625       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.837       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7865       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.8615       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .75412       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99829       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=   4881.929     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3497 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3969        2.9380       -.94016E-07   -.28756E-03
   2  Prefactor     64.585        42.800       -.54491E-07    .10966E-03
   3  Prefactor     2.9509        3.1001       -.26345E-06   -.89856E-04
   4  norm          1.0037        1.3961        .20759E-07   -.35188E-04
   5  Prefactor     .10000E-03    5.5554        .14862E-06** at limit **
   6  norm          4.6129        5.7501        .36241E-05   -.74451E-03
   7  Prefactor     .15144        1.4134       -.70541E-06    .29784E-03
   8  Prefactor     2.1128        2.6278       -.27082E-08   -.65308E-04
   9  norm          11.394        15.582       -.37408E-06   -.61438E-04
  10  Prefactor     7.8769        19.540       -.91961E-06   -.64083E-04
  11  Prefactor     .10000E-03    5.7341       -.55266E-07** at limit **
  12  Prefactor     .10000E-03    40.151       -.40874E-06** at limit **
  13  Prefactor     .10000E-03    4.6766        .24174E-07** at limit **
  14  Prefactor     .10000E-03    5.0935        .49119E-06** at limit **
  15  Prefactor     1.3725        1.8356        .66911E-07   -.90194E-04
  16  norm          24.038        10.286       -.78926E-07   -.28362E-04
  17  Prefactor     4.7625        3.4316       -.48089E-07    .16853E-04
  18  Prefactor     34.813        36.514       -.48919E-05   -.46853E-03
  19  Prefactor     .10000E-03    1.6368        .74618E-08** at limit **
  20  norm          .10000E-03    3.6798       -.21730E-06** at limit **
  21  Prefactor     4.7873        21.827        .35237E-06    .60713E-05
  22  Prefactor     .10000E-03    9.2621        .14792E-05** at limit **
  23  Prefactor     .10000E-03    1.5774       -.15432E-06** at limit **
  24  Prefactor     .10000E-03    2.1566       -.61392E-06** at limit **
  25  Prefactor     .10000E-03    8.5007       -.16614E-05** at limit **
  26  Prefactor     4.8610        21.413       -.12677E-06   -.98014E-05
  27  Normalizat    .75429        .16688        .23706E-05    .37411E-04
  28  Prefactor     .99807        .19503       -.20372E-05    .23717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39689
  Prefactor  = 64.5851
  Prefactor  = 2.95088
  norm       = 1.00368
  Prefactor  = 0.0001
  norm       = 4.61289
  Prefactor  = 0.151438
  Prefactor  = 2.11281
  norm       = 11.3941
  Prefactor  = 7.87689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.37248
  norm       = 24.0381
  Prefactor  = 4.76251
  Prefactor  = 34.8128
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.78732
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 4.86096
  Normalizat = 0.754287
  Prefactor  = 0.99807
 **********
 **   18 **HESSE 
 **********

 FCN=   4881.929     FROM HESSE     STATUS=OK           523 CALLS     4020 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3969        2.9329        .12868E-03   -1.5398    
   2  Prefactor     64.585        42.826        .49937E-04   -1.4099    
   3  Prefactor     2.9509        3.1157        .11682E-03   -1.5364    
   4  norm          1.0037        1.3963        .54250E-04   -1.5508    
   5  Prefactor     .10000E-03    5.5590        .16083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.6129        6.0078        .92642E-03   -1.5278    
   7  Prefactor     .15144        6.7051        .14956E-02   -1.5630    
   8  Prefactor     2.1128        2.6150        .12121E-03   -1.5417    
   9  norm          11.394        15.591        .11861E-03   -1.5033    
  10  Prefactor     7.8769        19.588        .14283E-03   -1.5147    
  11  Prefactor     .10000E-03    5.7354        .16340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.8032        .29493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1210        .15403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3725        1.8086        .10483E-03   -1.5474    
  16  norm          24.038        10.292        .81701E-04   -1.4727    
  17  Prefactor     4.7625        3.4331        .10464E-03   -1.5271    
  18  Prefactor     34.813        38.778        .67896E-04   -1.4527    
  19  Prefactor     .10000E-03    1.6484        .87200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.6893        .13084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.7873        21.801        .18389E-03   -1.5270    
  22  Prefactor     .10000E-03    9.3910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.5864        .85633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.6775        .19780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.6389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.8610        21.438        .18244E-03   -1.5267    
  27  Normalizat    .75429        .19291        .22599E-03   -1.0179    
  28  Prefactor     .99807        .22570        .24259E-03   -.92794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89576e-09
Minuit parameter uncertainties:
  1  2.93309
  2  42.8462
  3  3.11586
  4  1.39634
  5  1.1302e-05
  6  6.00859
  7  2.01492
  8  2.61518
  9  15.5966
  10  19.6041
  11  1.49435e-06
  12  4.57729e-05
  13  1.55813e-05
  14  3.42737e-05
  15  1.80869
  16  10.2927
  17  3.43328
  18  38.8059
  19  2.58297e-06
  20  2.38257e-05
  21  20.4442
  22  0.000217328
  23  6.4048e-06
  24  0.000169625
  25  0.000216467
  26  20.4288
  27  0.193083
  28  0.225914
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.427e-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:  9.981e-01  2.259e-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:  7.543e-01  1.931e-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: 5.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/290241/likelihoodResults_657936001_658195201_4FGL_J0957.8+3423_daily_bin1615.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): 0
logL (Free Index) = 4881.93014163
delta logL = -0.000930168139348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4881.92921149
delta logL = -2.58532963926e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1655       1.0000          .0000       10.000    
     3 'Normalizat'    .75429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99809       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=   4881.929     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    147.52        .90712E-02** at limit **
   2  Index         2.1667        7.1112        .50000       -.21435E-05
   3  Normalizat    .75429        .21624E-01    .43011E-01   -.60167E-05
   4  Prefactor     .99807        .26517E-01    .46243E-01   -.47876E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16672
  Normalizat = 0.754289
  Prefactor  = 0.998066
 **********
 **   18 **HESSE 
 **********

 FCN=   4881.929     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      232 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1070.9        .15404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1667        5.5354        .50000       -.60244    
   3  Normalizat    .75429        .10250        .22599E-03   -1.0179    
   4  Prefactor     .99807        .12562        .24259E-03   -.92794    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.249e-10
Minuit parameter uncertainties:
  1  8.90485e-05
  2  60.7472
  3  0.102525
  4  0.125661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290241': 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) = 4881.92921146
delta logL = 1.37333699968e-09

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  8.905e-05  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.167e+00  6.075e+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.981e-01  1.257e-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:  7.543e-01  1.025e-01  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/290241/cmap_HighResolution_657936001_658195201_4FGL_J0957.8+3423_daily_bin1615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2021-12-07 20:54:58.171778', job_id='290241', GAL2='1.00', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1638939298.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.37e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1615' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 20:54:58 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 290241: <4FGL_J0957.8+3423_daily_bin1615> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1615> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Dec  7 20:40:15 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:40:51 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:51 2021
Terminated at Tue Dec  7 20:54:58 2021
Results reported at Tue Dec  7 20:54:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1615 149.471 34.3975 657936001 658195201 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 :                                   706.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            883 sec.

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

