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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin19
RA = 221.591, Dec = 31.1955
tmin = 244252801, tmax = 244512001
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='767786', job_status='RUN', time_executed='2021-09-10 08:45:23.371149', time_epoch_executed='1631288723.37' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/767786

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/767786/ft1_4FGL_J1446.3+3111_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/767786/ft2_4FGL_J1446.3+3111_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/767786/ft1_4FGL_J1446.3+3111_daily_bin19.fits outfile=/scratch/kocevski/767786/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin19.fits ra=221.591 dec=31.1955 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.40
user 2.17
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/767786/ft2_4FGL_J1446.3+3111_daily_bin19.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/767786/ft2_4FGL_J1446.3+3111_daily_bin19.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/767786/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin19.fits evtable="EVENTS" outfile="/scratch/kocevski/767786/ft1_filtered_4FGL_J1446.3+3111_daily_bin19.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/767786/ft1_filtered_4FGL_J1446.3+3111_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/767786/ft2_4FGL_J1446.3+3111_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/767786/ltcube_244252801_244512001_4FGL_J1446.3+3111_daily_bin19.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/767786/ft2_4FGL_J1446.3+3111_daily_bin19.fits
.....................!
real 12.53
user 12.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/767786/ft1_filtered_4FGL_J1446.3+3111_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/767786/ft2_4FGL_J1446.3+3111_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/767786/ltcube_244252801_244512001_4FGL_J1446.3+3111_daily_bin19.fits outfile=/scratch/kocevski/767786/expmap_244252801_244512001_4FGL_J1446.3+3111_daily_bin19.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/767786/ltcube_244252801_244512001_4FGL_J1446.3+3111_daily_bin19.fits
.....................!
real 190.17
user 185.22
sys 4.58

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

Setting source of interest to:
4FGL J1446.3+3111 @ 221.591 31.1955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/767786/ft1_filtered_4FGL_J1446.3+3111_daily_bin19.fits scfile=/scratch/kocevski/767786/ft2_4FGL_J1446.3+3111_daily_bin19.fits outfile=/scratch/kocevski/767786/cmap_244252801_244512001_4FGL_J1446.3+3111_daily_bin19.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=221.591 yref=31.1955 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/767786/ft1_filtered_4FGL_J1446.3+3111_daily_bin19.fits scfile=/scratch/kocevski/767786/ft2_4FGL_J1446.3+3111_daily_bin19.fits outfile=/scratch/kocevski/767786/cmap_HighResolution_244252801_244512001_4FGL_J1446.3+3111_daily_bin19.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=221.591 yref=31.1955 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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/767786/ft1_filtered_4FGL_J1446.3+3111_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/767786/ft2_4FGL_J1446.3+3111_daily_bin19.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/767786/Model_4FGL_J1446.3+3111_daily_bin19.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/767786/ft1_filtered_4FGL_J1446.3+3111_daily_bin19.fits.....................!
real 39.84
user 38.54
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/767786/ft1_filtered_4FGL_J1446.3+3111_daily_bin19.fits', '/scratch/kocevski/767786/ft2_4FGL_J1446.3+3111_daily_bin19.fits', expMap='/scratch/kocevski/767786/expmap_244252801_244512001_4FGL_J1446.3+3111_daily_bin19.fits', expCube='/scratch/kocevski/767786/ltcube_244252801_244512001_4FGL_J1446.3+3111_daily_bin19.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/767786/Model_4FGL_J1446.3+3111_daily_bin19.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1446.3+3111'

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.552e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/767786/ft1_filtered_4FGL_J1446.3+3111_daily_bin19.fits
Spacecraft file(s): /scratch/kocevski/767786/ft2_4FGL_J1446.3+3111_daily_bin19.fits
Exposure map: /scratch/kocevski/767786/expmap_244252801_244512001_4FGL_J1446.3+3111_daily_bin19.fits
Exposure cube: /scratch/kocevski/767786/ltcube_244252801_244512001_4FGL_J1446.3+3111_daily_bin19.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/767786/Model_4FGL_J1446.3+3111_daily_bin19.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) = 4688.96247086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3058       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.9852       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5451       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44049       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.0352       1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.182       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.863       1.0000         .10000E-03   10000.    
    13 'norm      '    7.6053       1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.152       1.0000         .10000E-03   10000.    
    15 'norm      '    8.0536       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .80502E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0827       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6899       1.0000         .10000E-03   10000.    
    19 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1848       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20254E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.7850       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.396       1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.391       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.6301       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1851       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65954       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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=   4688.934     FROM MIGRAD    STATUS=CONVERGED   1154 CALLS     4344 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3039        4.3712        .19217E-03   -.11649E-03
   2  Prefactor     .10000E-03    11.606        .18142E-02** at limit **
   3  norm          6.9860        4.9507        .12277E-03    .78992E-04
   4  Prefactor     8.5463        9.6507        .13713E-03   -.38467E-04
   5  Prefactor     .10000E-03    6.9630        .17637E-02** at limit **
   6  Prefactor     .43417        6.2388        .23396E-02    .63776E-03
   7  norm          .10000E-03    4.9687        .14907E-02** at limit **
   8  norm          5.0349        2.7451        .81228E-04   -.27572E-04
   9  Prefactor     45.183        37.104        .59647E-04   -.17154E-05
  10  norm          .10000E-03    1.2253        .73753E-03** at limit **
  11  norm          .10000E-03    9.4541        .18142E-02** at limit **
  12  Prefactor     38.836        52.673        .64295E-04   -.17689E-03
  13  norm          7.6049        5.5435        .13199E-03   -.35745E-04
  14  Prefactor     58.145        48.448        .52609E-04   -.13757E-03
  15  norm          8.0536        8.0959        .14128E-03   -.69525E-04
  16  Prefactor     .10003E-03    24.633        .74588E-01** at limit **
  17  Prefactor     4.0882        7.3693        .99766E-03   -.15190E-04
  18  Prefactor     8.6878        7.7603        .13598E-03   -.40550E-04
  19  norm          .10000E-03    1.0184        .10872E-02** at limit **
  20  Prefactor     2.1773        183.81        .27849E-03    .58785E-05
  21  Prefactor     .10012E-03    75.070        .31127E-02** at limit **
  22  norm          4.7850        2.1867        .51435E-04   -.13041E-03
  23  Prefactor     12.395        15.121        .11377E-03   -.20484E-04
  24  Prefactor     36.393        33.118        .66435E-04    .21322E-04
  25  Prefactor     2.6090        37.094        .25145E-03    .96755E-05
  26  Normalizat    1.1851        .23309        .22600E-03   -.35960E-03
  27  Prefactor     .65969        .19285        .26376E-03   -.10090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.30388
  Prefactor  = 0.0001
  norm       = 6.98604
  Prefactor  = 8.54625
  Prefactor  = 0.0001
  Prefactor  = 0.434172
  norm       = 0.0001
  norm       = 5.03495
  Prefactor  = 45.1833
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 38.8365
  norm       = 7.60487
  Prefactor  = 58.1454
  norm       = 8.05363
  Prefactor  = 0.000100029
  Prefactor  = 4.08821
  Prefactor  = 8.6878
  norm       = 0.000100002
  Prefactor  = 2.17733
  Prefactor  = 0.000100117
  norm       = 4.78503
  Prefactor  = 12.395
  Prefactor  = 36.3929
  Prefactor  = 2.60905
  Normalizat = 1.18509
  Prefactor  = 0.659688
 **********
 **   18 **HESSE 
 **********

 FCN=   4688.934     FROM HESSE     STATUS=OK           474 CALLS     4818 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3039        4.3710        .76867E-05   -1.5404    
   2  Prefactor     .10000E-03    11.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.9860        4.9488        .49106E-05   -1.5179    
   4  Prefactor     8.5463        9.6506        .54853E-05   -1.5123    
   5  Prefactor     .10000E-03    6.9633        .35274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .43417        6.1956        .93583E-04   -1.5576    
   7  norm          .10000E-03    4.9687        .29814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0349        2.7450        .32491E-05   -1.5259    
   9  Prefactor     45.183        37.087        .23859E-05   -1.4363    
  10  norm          .10000E-03    1.2253        .14751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.4600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     38.836        52.666        .12859E-04   -1.4461    
  13  norm          7.6049        5.5431        .52796E-05   -1.5156    
  14  Prefactor     58.145        48.453        .10522E-04   -1.4181    
  15  norm          8.0536        8.0932        .56513E-05   -1.5140    
  16  Prefactor     .10003E-03    20.834        .83129E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0882        7.3651        .39906E-04   -1.5304    
  18  Prefactor     8.6878        7.7602        .54391E-05   -1.5118    
  19  norm          .10000E-03    1.0192        .21744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.1773        183.71        .11139E-04   -1.5413    
  21  Prefactor     .10012E-03    76.605        .62255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.7850        2.1869        .20574E-05   -1.5270    
  23  Prefactor     12.395        15.121        .45510E-05   -1.5004    
  24  Prefactor     36.393        33.118        .13287E-04   -1.4501    
  25  Prefactor     2.6090        37.088        .10058E-04   -1.5385    
  26  Normalizat    1.1851        .23263        .45199E-04   -.87065    
  27  Prefactor     .65969        .19284        .10550E-04   -1.0513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02474e-09
Minuit parameter uncertainties:
  1  4.37162
  2  1.39028e-05
  3  4.94907
  4  9.65232
  5  2.41357e-05
  6  3.28024
  7  5.48401e-06
  8  2.7451
  9  37.1059
  10  5.2854e-06
  11  0.000216407
  12  52.7295
  13  5.5435
  14  48.4858
  15  8.09434
  16  0.00154602
  17  7.3667
  18  7.76108
  19  8.90727e-05
  20  40.1273
  21  0.00599875
  22  2.1869
  23  15.1255
  24  33.1352
  25  19.6881
  26  0.232828
  27  0.193035
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.815e+01  4.849e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  6.597e-01  1.930e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.185e+00  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 6.31e-08 +/- 5.26e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.44e-05

TS (Fixed Index): 2.03
Ra Dec: 221.591 31.195
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/767786/likelihoodResults_244252801_244512001_4FGL_J1446.3+3111_daily_bin19.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) = 4688.44893131
delta logL = 0.485273584914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4688.43957974
delta logL = 0.494625156862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.046       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3527       1.0000          .0000       10.000    
     3 'Normalizat'    1.1446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68384       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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=   4688.440     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      290 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.041        50.133        .77032E-04   -.11792E-03
   2  Index         3.3528        1.1542        .49495E-02   -.56158E-04
   3  Normalizat    1.1447        .21937        .22916E-03   -.27410E-03
   4  Prefactor     .68383        .19164        .25952E-03   -.17772E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0414
  Index      = 3.35276
  Normalizat = 1.14472
  Prefactor  = 0.683826
 **********
 **   18 **HESSE 
 **********

 FCN=   4688.440     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.041        39.778        .30813E-05   -1.4667    
   2  Index         3.3528        .91761        .19798E-03   -.33572    
   3  Normalizat    1.1447        .21953        .45833E-04   -.88329    
   4  Prefactor     .68383        .19156        .10381E-04   -1.0416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23601e-10
Minuit parameter uncertainties:
  1  39.817
  2  0.923488
  3  0.219703
  4  0.191743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/767786': 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) = 4688.43957952
delta logL = 0.494625383669

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  2.704e+01  3.982e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.353e+00  9.235e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  6.838e-01  1.917e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.145e+00  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 221.591 31.195
Photon Index (Free Index): 3.35 +/- 0.92
Photon Flux (Free Index): 9.61e-08 +/- 6.75e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.16e-05

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/767786/cmap_HighResolution_244252801_244512001_4FGL_J1446.3+3111_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='6.31e-08', energy_flux2='1.67e-05', photon_flux_error='5.26e-08', dlogl='4.95e-01', energy_flux='1.73e-05', photon_flux2='9.61e-08', job_status='DONE', time_completed='2021-09-10 08:56:34.660757', photon_index_error2='0.92', photon_index2='3.35', ts='2.03', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.16e-05', EG='1.19', time_epoch_completed='1631289394.66', return_code='0', job_id='767786', GAL2='0.68', EG2='1.14', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.75e-08', ts2='3.09', photon_index='2.56' WHERE bin_id='19' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 08:56:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 767786: <4FGL_J1446.3+3111_daily_bin19> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin19> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 08:41:30 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 08:41:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 08:41:33 2021
Terminated at Fri Sep 10 08:56:35 2021
Results reported at Fri Sep 10 08:56:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin19 221.591 31.1955 244252801 244512001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1446.3+3111 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   671.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            905 sec.

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

