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


Performing analysis on: 4FGL_J1450.4+0910_daily_bin986
RA = 222.624, Dec = 9.1818
tmin = 494899201, tmax = 495158401
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='814434', job_status='RUN', time_executed='2021-09-10 11:03:29.441628', time_epoch_executed='1631297009.44' WHERE source_name='4FGL J1450.4+0910' and cadence='daily' and bin_id='986'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814434

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814434/ft1_4FGL_J1450.4+0910_daily_bin986.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814434/ft2_4FGL_J1450.4+0910_daily_bin986.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814434/ft1_4FGL_J1450.4+0910_daily_bin986.fits outfile=/scratch/kocevski/814434/ft1_filteredMKT_4FGL_J1450.4+0910_daily_bin986.fits ra=222.624 dec=9.1818 rad=12.0 tmin=494899201.0 tmax=495158401.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.68
user 3.36
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/814434/ft2_4FGL_J1450.4+0910_daily_bin986.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/814434/ft2_4FGL_J1450.4+0910_daily_bin986.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/814434/ft1_filteredMKT_4FGL_J1450.4+0910_daily_bin986.fits evtable="EVENTS" outfile="/scratch/kocevski/814434/ft1_filtered_4FGL_J1450.4+0910_daily_bin986.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.62
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814434/ft1_filtered_4FGL_J1450.4+0910_daily_bin986.fits" evtable="EVENTS" scfile=/scratch/kocevski/814434/ft2_4FGL_J1450.4+0910_daily_bin986.fits sctable="SC_DATA" outfile=/scratch/kocevski/814434/ltcube_494899201_495158401_4FGL_J1450.4+0910_daily_bin986.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/814434/ft2_4FGL_J1450.4+0910_daily_bin986.fits
.....................!
real 12.62
user 12.23
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814434/ft1_filtered_4FGL_J1450.4+0910_daily_bin986.fits evtable="EVENTS" scfile=/scratch/kocevski/814434/ft2_4FGL_J1450.4+0910_daily_bin986.fits sctable="SC_DATA" expcube=/scratch/kocevski/814434/ltcube_494899201_495158401_4FGL_J1450.4+0910_daily_bin986.fits outfile=/scratch/kocevski/814434/expmap_494899201_495158401_4FGL_J1450.4+0910_daily_bin986.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/814434/ltcube_494899201_495158401_4FGL_J1450.4+0910_daily_bin986.fits
.....................!
real 191.95
user 186.67
sys 4.59

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

Setting source of interest to:
4FGL J1450.4+0910 @ 222.624 9.1818

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/814434/ft1_filtered_4FGL_J1450.4+0910_daily_bin986.fits scfile=/scratch/kocevski/814434/ft2_4FGL_J1450.4+0910_daily_bin986.fits outfile=/scratch/kocevski/814434/cmap_494899201_495158401_4FGL_J1450.4+0910_daily_bin986.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=222.624 yref=9.1818 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814434/ft1_filtered_4FGL_J1450.4+0910_daily_bin986.fits scfile=/scratch/kocevski/814434/ft2_4FGL_J1450.4+0910_daily_bin986.fits outfile=/scratch/kocevski/814434/cmap_HighResolution_494899201_495158401_4FGL_J1450.4+0910_daily_bin986.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=222.624 yref=9.1818 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/814434/ft1_filtered_4FGL_J1450.4+0910_daily_bin986.fits evtable="EVENTS" scfile=/scratch/kocevski/814434/ft2_4FGL_J1450.4+0910_daily_bin986.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/814434/Model_4FGL_J1450.4+0910_daily_bin986.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/814434/ft1_filtered_4FGL_J1450.4+0910_daily_bin986.fits.....................!
real 56.58
user 55.12
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/814434/ft1_filtered_4FGL_J1450.4+0910_daily_bin986.fits', '/scratch/kocevski/814434/ft2_4FGL_J1450.4+0910_daily_bin986.fits', expMap='/scratch/kocevski/814434/expmap_494899201_495158401_4FGL_J1450.4+0910_daily_bin986.fits', expCube='/scratch/kocevski/814434/ltcube_494899201_495158401_4FGL_J1450.4+0910_daily_bin986.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/814434/Model_4FGL_J1450.4+0910_daily_bin986.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1450.4+0910'

4FGL J1450.4+0910
   Spectrum: PowerLaw
222    Prefactor:  4.181e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
223        Index:  2.394e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
224        Scale:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/814434/ft1_filtered_4FGL_J1450.4+0910_daily_bin986.fits
Spacecraft file(s): /scratch/kocevski/814434/ft2_4FGL_J1450.4+0910_daily_bin986.fits
Exposure map: /scratch/kocevski/814434/expmap_494899201_495158401_4FGL_J1450.4+0910_daily_bin986.fits
Exposure cube: /scratch/kocevski/814434/ltcube_494899201_495158401_4FGL_J1450.4+0910_daily_bin986.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/814434/Model_4FGL_J1450.4+0910_daily_bin986.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) = 7658.84015518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    36.087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19536E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.9118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.957       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6001       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5913       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .18685E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5252       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0672       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86043       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7658.834     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2532 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.101        23.873       -.42895E-06    .49049E-04
   2  Prefactor     .10000E-03    8.6601       -.13310E-05** at limit **
   3  norm          36.084        28.253       -.19136E-06    .18422E-04
   4  Prefactor     .10000E-03    4.2600       -.76772E-06** at limit **
   5  Prefactor     .10000E-03    4.6887        .88669E-07** at limit **
   6  norm          3.9120        2.6371       -.27554E-06   -.11899E-02
   7  Prefactor     10.925        32.382       -.27325E-04   -.40219E-05
   8  Prefactor     .10000E-03    9.9085        .63283E-05** at limit **
   9  norm          .10000E-03    10.577       -.58609E-05** at limit **
  10  Prefactor     .10000E-03    16.596        .52530E-05** at limit **
  11  Prefactor     18.225        21.387       -.24607E-06    .14627E-04
  12  Prefactor     .10000E-03    6.3263        .97863E-07** at limit **
  13  Prefactor     .10000E-03    29.255       -.23417E-04** at limit **
  14  Prefactor     .10000E-03    14.005       -.12133E-05** at limit **
  15  norm          1.6001        .26941       -.24867E-07    .69730E-03
  16  norm          1.5914        1.5181       -.68099E-07   -.46119E-03
  17  norm          .10000E-03    2.7472        .18310E-06** at limit **
  18  norm          .10000E-03    141.81       -.96304E-05** at limit **
  19  norm          .10000E-03    1.2652       -.11678E-06** at limit **
  20  Prefactor     .10000E-03    33.882        .22532E-04** at limit **
  21  Prefactor     9.5241        34.565       -.27507E-05   -.72826E-06
  22  Normalizat    1.0672        .19767        .13551E-05    .13876E-03
  23  Prefactor     .86048        .11823        .61166E-06    .21205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.1007
  Prefactor  = 0.0001
  norm       = 36.0838
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 3.912
  Prefactor  = 10.9252
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60009
  norm       = 1.59135
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.52412
  Normalizat = 1.06715
  Prefactor  = 0.860476
 **********
 **   18 **HESSE 
 **********

 FCN=   7658.834     FROM HESSE     STATUS=OK           366 CALLS     2898 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.101        23.821        .73039E-04   -1.4610    
   2  Prefactor     .10000E-03    8.6762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          36.084        28.257        .66714E-04   -1.4506    
   4  Prefactor     .10000E-03    16.619        .34790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9120        2.6432        .56842E-03   -1.5312    
   7  Prefactor     10.925        32.433        .12104E-03   -1.5047    
   8  Prefactor     .10000E-03    9.9424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.225        21.407        .93816E-04   -1.4854    
  12  Prefactor     .10000E-03    6.3376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6001        .26967        .17603E-04   -1.5455    
  16  norm          1.5914        1.5101        .10104E-03   -1.5456    
  17  norm          .10000E-03    2.7556        .14165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    148.46        .40578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2858        .96096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5241        34.631        .12985E-03   -1.5091    
  22  Normalizat    1.0672        .24242        .29732E-03   -.90814    
  23  Prefactor     .86048        .14522        .19931E-03   -.97536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26907e-10
Minuit parameter uncertainties:
  1  23.8281
  2  2.99526e-06
  3  28.2673
  4  0.000564882
  5  6.47028e-06
  6  2.64331
  7  32.4854
  8  1.03351e-05
  9  1.69558e-05
  10  1.03687e-05
  11  21.4157
  12  1.3491e-06
  13  1.68607e-08
  14  1.40387e-06
  15  0.26967
  16  1.51009
  17  1.73045e-06
  18  0.000381085
  19  2.70424e-06
  20  0.000128929
  21  34.7045
  22  0.242667
  23  0.145282
Done.

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

Extracting fit parameters...

4FGL J1450.4+0910
   Spectrum: PowerLaw
222    Prefactor:  1.823e+01  2.142e+01  1.000e-04  1.000e+04 ( 1.000e-13)
223        Index:  2.394e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
224        Scale:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
480    Prefactor:  8.605e-01  1.453e-01  0.000e+00  1.000e+01 ( 1.000e+00)
481        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
482        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
479   Normalization:  1.067e+00  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 222.624 9.182
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.32e-05

TS (Fixed Index): 1.03
Ra Dec: 222.624 9.182
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814434/likelihoodResults_494899201_495158401_4FGL_J1450.4+0910_daily_bin986.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) = 7658.82651515
delta logL = 0.00733951024995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7658.82318584
delta logL = 0.0106688145979

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.370       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5158       1.0000          .0000       10.000    
     3 'Normalizat'    1.0630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86225       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4830E+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=   7658.823     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      243 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.353        25.298        .98991E-04   -.22671E-03
   2  Index         2.5174        .92246        .80383E-02   -.13341E-03
   3  Normalizat    1.0625        .24001        .29788E-03   -.28946E-02
   4  Prefactor     .86255        .14548        .19910E-03   -.44179E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3532
  Index      = 2.51745
  Normalizat = 1.06246
  Prefactor  = 0.862549
 **********
 **   18 **HESSE 
 **********

 FCN=   7658.823     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.353        23.738        .39596E-05   -1.4899    
   2  Index         2.5174        .86559        .32153E-03   -.51957    
   3  Normalizat    1.0625        .24004        .59576E-04   -.90966    
   4  Prefactor     .86255        .14549        .39819E-04   -.97462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12901e-08
Minuit parameter uncertainties:
  1  23.7517
  2  0.871438
  3  0.240282
  4  0.145559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814434': 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) = 7658.82318196
delta logL = 0.0106727025332

Extracting fit parameters...

4FGL J1450.4+0910
   Spectrum: PowerLaw
222    Prefactor:  1.635e+01  2.375e+01  1.000e-04  1.000e+04 ( 1.000e-13)
223        Index:  2.517e+00  8.714e-01  0.000e+00  1.000e+01 (-1.000e+00)
224        Scale:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
480    Prefactor:  8.625e-01  1.456e-01  0.000e+00  1.000e+01 ( 1.000e+00)
481        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
482        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
479   Normalization:  1.062e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 222.624 9.182
Photon Index (Free Index): 2.52 +/- 0.87
Photon Flux (Free Index): 3.72e-08 +/- 4.73e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/814434/cmap_HighResolution_494899201_495158401_4FGL_J1450.4+0910_daily_bin986.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.52e-03', comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='1.06e-05', photon_flux_error='3.98e-08', dlogl='1.07e-02', energy_flux='1.12e-05', photon_flux2='3.72e-08', job_status='DONE', time_completed='2021-09-10 11:14:59.876148', photon_index_error2='0.87', photon_index2='2.52', ts='1.03', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.28e-05', EG='1.07', time_epoch_completed='1631297699.88', return_code='0', job_id='814434', GAL2='0.86', EG2='1.06', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='4.73e-08', ts2='1.07', photon_index='2.39' WHERE bin_id='986' AND source_name='4FGL J1450.4+0910' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 11:14:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 814434: <4FGL_J1450.4+0910_daily_bin986> in cluster <slac> Done

Job <4FGL_J1450.4+0910_daily_bin986> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 11:01:25 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 11:01:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 11:01:26 2021
Terminated at Fri Sep 10 11:15:00 2021
Results reported at Fri Sep 10 11:15:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1450.4+0910_daily_bin986 222.624 9.1818 494899201 495158401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1450.4+0910 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   656.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

