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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1532
RA = 221.591, Dec = 31.1955
tmin = 636422401, tmax = 636681601
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='776760', job_status='RUN', time_executed='2021-09-10 09:14:03.137443', time_epoch_executed='1631290443.14' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776760/ft1_4FGL_J1446.3+3111_daily_bin1532.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776760/ft2_4FGL_J1446.3+3111_daily_bin1532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776760/ft1_4FGL_J1446.3+3111_daily_bin1532.fits outfile=/scratch/kocevski/776760/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1532.fits ra=221.591 dec=31.1955 rad=12.0 tmin=636422401.0 tmax=636681601.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.62
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776760/ft1_filtered_4FGL_J1446.3+3111_daily_bin1532.fits" evtable="EVENTS" scfile=/scratch/kocevski/776760/ft2_4FGL_J1446.3+3111_daily_bin1532.fits sctable="SC_DATA" outfile=/scratch/kocevski/776760/ltcube_636422401_636681601_4FGL_J1446.3+3111_daily_bin1532.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/776760/ft2_4FGL_J1446.3+3111_daily_bin1532.fits
.....................!
real 11.76
user 11.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776760/ft1_filtered_4FGL_J1446.3+3111_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/776760/ft2_4FGL_J1446.3+3111_daily_bin1532.fits sctable="SC_DATA" expcube=/scratch/kocevski/776760/ltcube_636422401_636681601_4FGL_J1446.3+3111_daily_bin1532.fits outfile=/scratch/kocevski/776760/expmap_636422401_636681601_4FGL_J1446.3+3111_daily_bin1532.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/776760/ltcube_636422401_636681601_4FGL_J1446.3+3111_daily_bin1532.fits
.....................!
real 191.85
user 186.91
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/776760/ft1_filtered_4FGL_J1446.3+3111_daily_bin1532.fits scfile=/scratch/kocevski/776760/ft2_4FGL_J1446.3+3111_daily_bin1532.fits outfile=/scratch/kocevski/776760/cmap_636422401_636681601_4FGL_J1446.3+3111_daily_bin1532.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776760/ft1_filtered_4FGL_J1446.3+3111_daily_bin1532.fits scfile=/scratch/kocevski/776760/ft2_4FGL_J1446.3+3111_daily_bin1532.fits outfile=/scratch/kocevski/776760/cmap_HighResolution_636422401_636681601_4FGL_J1446.3+3111_daily_bin1532.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.54
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/776760/ft1_filtered_4FGL_J1446.3+3111_daily_bin1532.fits', '/scratch/kocevski/776760/ft2_4FGL_J1446.3+3111_daily_bin1532.fits', expMap='/scratch/kocevski/776760/expmap_636422401_636681601_4FGL_J1446.3+3111_daily_bin1532.fits', expCube='/scratch/kocevski/776760/ltcube_636422401_636681601_4FGL_J1446.3+3111_daily_bin1532.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/776760/Model_4FGL_J1446.3+3111_daily_bin1532.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/776760/ft1_filtered_4FGL_J1446.3+3111_daily_bin1532.fits
Spacecraft file(s): /scratch/kocevski/776760/ft2_4FGL_J1446.3+3111_daily_bin1532.fits
Exposure map: /scratch/kocevski/776760/expmap_636422401_636681601_4FGL_J1446.3+3111_daily_bin1532.fits
Exposure cube: /scratch/kocevski/776760/ltcube_636422401_636681601_4FGL_J1446.3+3111_daily_bin1532.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/776760/Model_4FGL_J1446.3+3111_daily_bin1532.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) = 7555.28824779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.857       1.0000         .10000E-03   10000.    
     3 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13682E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.587       1.0000         .10000E-03   10000.    
     7 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.6461       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.923       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8255       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8649       1.0000         .10000E-03   10000.    
    15 'norm      '    7.7293       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.5050       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.257       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5042       1.0000         .10000E-03   10000.    
    19 'norm      '    .17107E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.206       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8425       1.0000         .10000E-03   10000.    
    22 'norm      '    .87854E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9719       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96333       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1008       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.

 FCN=   7555.269     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3335 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0092        .67960E-06** at limit **
   2  Prefactor     22.850        18.231       -.86847E-06   -.38595E-04
   3  norm          .10000E-03    2.8101        .49860E-06** at limit **
   4  Prefactor     .10000E-03    26.736        .41287E-05** at limit **
   5  Prefactor     .10000E-03    7.4180       -.95508E-05** at limit **
   6  Prefactor     28.589        6.6451        .10726E-06    .82774E-04
   7  norm          .10000E-03    8.7779        .86658E-05** at limit **
   8  norm          6.6459        2.8881       -.72795E-07   -.84544E-06
   9  Prefactor     26.919        26.059       -.22249E-05    .14759E-04
  10  norm          .10000E-03    1.0231       -.10407E-07** at limit **
  11  norm          .10000E-03    3.0696       -.68049E-06** at limit **
  12  Prefactor     .10000E-03    47.870       -.34271E-05** at limit **
  13  norm          5.8253        3.6969        .30401E-06    .28882E-04
  14  Prefactor     5.8467        28.268       -.25460E-04   -.31242E-04
  15  norm          7.7291        6.6980       -.12033E-06    .27896E-04
  16  Prefactor     9.5055        10.425        .55595E-06    .81186E-04
  17  Prefactor     11.256        10.602        .31970E-06    .27227E-03
  18  Prefactor     1.5023        2.1027        .75388E-06   -.26128E-02
  19  norm          .10000E-03    .88443       -.23925E-06** at limit **
  20  Prefactor     34.203        41.122       -.29764E-05    .23573E-04
  21  Prefactor     2.8417        5.8988       -.26628E-06   -.44131E-04
  22  norm          .87227E-01    .64652       -.19247E-06    .35691E-03
  23  Prefactor     5.9758        8.4952        .32043E-06   -.31841E-03
  24  Prefactor     .10000E-03    11.942       -.45616E-05** at limit **
  25  Prefactor     .10000E-03    6.7388        .39943E-05** at limit **
  26  Normalizat    .96304        .18106        .21966E-05    .12387E-03
  27  Prefactor     1.1010        .15827       -.40166E-06    .24295E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.8505
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.5886
  norm       = 0.0001
  norm       = 6.64586
  Prefactor  = 26.9195
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.82531
  Prefactor  = 5.84675
  norm       = 7.72907
  Prefactor  = 9.50553
  Prefactor  = 11.2564
  Prefactor  = 1.50227
  norm       = 0.0001
  Prefactor  = 34.2033
  Prefactor  = 2.84174
  norm       = 0.0872267
  Prefactor  = 5.97581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.963045
  Prefactor  = 1.10104
 **********
 **   18 **HESSE 
 **********

 FCN=   7555.269     FROM HESSE     STATUS=OK           492 CALLS     3827 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0229        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.850        18.205        .83783E-04   -1.4752    
   3  norm          .10000E-03    2.8630        .14218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.4447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.589        6.6845        .74931E-04   -1.4638    
   7  norm          .10000E-03    8.7942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.6459        2.8919        .93872E-04   -1.5192    
   9  Prefactor     26.919        26.092        .77208E-04   -1.4670    
  10  norm          .10000E-03    1.0350        .85846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0894        .14868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8253        3.6972        .12892E-03   -1.5225    
  14  Prefactor     5.8467        28.393        .16583E-03   -1.5224    
  15  norm          7.7291        6.6975        .14424E-03   -1.5152    
  16  Prefactor     9.5055        10.414        .12999E-03   -1.5091    
  17  Prefactor     11.256        9.8249        .11941E-03   -1.5037    
  18  Prefactor     1.5023        5.6956        .17450E-02   -1.5463    
  19  norm          .10000E-03    2.8518        .14298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     34.203        40.922        .68517E-04   -1.4538    
  21  Prefactor     2.8417        5.8997        .24118E-03   -1.5371    
  22  norm          .87227E-01    4.0867        .11522E-02   -1.5649    
  23  Prefactor     5.9758        8.9684        .82157E-03   -1.5219    
  24  Prefactor     .10000E-03    11.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.7410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .96304        .21367        .27704E-03   -.94279    
  27  Prefactor     1.1010        .18927        .23997E-03   -.89433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56699e-08
Minuit parameter uncertainties:
  1  4.8736e-06
  2  18.2092
  3  7.35794e-06
  4  1.51284e-05
  5  4.23875e-05
  6  6.68467
  7  3.16635e-05
  8  2.89193
  9  26.1032
  10  1.36151e-06
  11  3.43141e-06
  12  3.05776e-05
  13  3.69732
  14  25.7883
  15  6.69817
  16  10.4159
  17  9.82633
  18  5.69761
  19  5.10495e-05
  20  40.956
  21  5.90088
  22  1.1935
  23  8.97038
  24  2.94478e-05
  25  1.4407e-05
  26  0.213862
  27  0.189385
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.847e+00  2.579e+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:  1.101e+00  1.894e-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:  9.630e-01  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 221.591 31.195
Photon Flux Upper Limit: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/776760/likelihoodResults_636422401_636681601_4FGL_J1446.3+3111_daily_bin1532.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) = 7555.24485854
delta logL = 0.024044398675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7555.24419477
delta logL = 0.0247081680282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4794       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9712       1.0000          .0000       10.000    
     3 'Normalizat'    .95726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1039       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7555.244     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      304 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4217        22.698        .85825E-03    .46524E-04
   2  Index         2.9825        2.0060        .75008E-02    .38119E-04
   3  Normalizat    .95778        .20099        .27772E-03   -.32749E-06
   4  Prefactor     1.1037        .18306        .23971E-03   -.14228E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.42169
  Index      = 2.98253
  Normalizat = 0.957778
  Prefactor  = 1.10372
 **********
 **   18 **HESSE 
 **********

 FCN=   7555.244     FROM HESSE     STATUS=OK            27 CALLS      331 TOTAL
                     EDM=   .86E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4217        20.914        .17165E-03   -1.5242    
   2  Index         2.9825        1.8996        .15002E-02   -.41533    
   3  Normalizat    .95778        .20125        .11109E-04   -.94459    
   4  Prefactor     1.1037        .18326        .95883E-05   -.89348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61831e-15
Minuit parameter uncertainties:
  1  20.942
  2  1.95891
  3  0.201409
  4  0.183363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776760': 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) = 7555.24416936
delta logL = 0.0247335777922

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.422e+00  2.094e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.983e+00  1.959e+00  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:  1.104e+00  1.834e-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:  9.578e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 221.591 31.195

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/776760/cmap_HighResolution_636422401_636681601_4FGL_J1446.3+3111_daily_bin1532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2021-09-10 09:27:07.255256', job_id='776760', GAL2='1.10', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631291227.26', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.47e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1532' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 09:27:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 776760: <4FGL_J1446.3+3111_daily_bin1532> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin1532> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 09:11:17 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 09:11:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 09:11:19 2021
Terminated at Fri Sep 10 09:27:10 2021
Results reported at Fri Sep 10 09:27:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1532 221.591 31.1955 636422401 636681601 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 :                                   781.17 sec.
    Max Memory :                                 1081 MB
    Average Memory :                             279.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            953 sec.

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

