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


Performing analysis on: 4FGL_J0045.7+1217_weekly_bin684
RA = 11.4309, Dec = 12.292
tmin = 652665601, tmax = 653270401
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='139693', job_status='RUN', time_executed='2021-12-07 12:08:14.749898', time_epoch_executed='1638907694.75' WHERE source_name='4FGL J0045.7+1217' and cadence='weekly' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139693

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139693/ft1_4FGL_J0045.7+1217_weekly_bin684.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139693/ft2_4FGL_J0045.7+1217_weekly_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139693/ft1_4FGL_J0045.7+1217_weekly_bin684.fits outfile=/scratch/kocevski/139693/ft1_filteredMKT_4FGL_J0045.7+1217_weekly_bin684.fits ra=11.4309 dec=12.292 rad=12.0 tmin=652665601.0 tmax=653270401.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 6.69
user 6.35
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/139693/ft2_4FGL_J0045.7+1217_weekly_bin684.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/139693/ft2_4FGL_J0045.7+1217_weekly_bin684.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/139693/ft1_filteredMKT_4FGL_J0045.7+1217_weekly_bin684.fits evtable="EVENTS" outfile="/scratch/kocevski/139693/ft1_filtered_4FGL_J0045.7+1217_weekly_bin684.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.55
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/139693/ft1_filtered_4FGL_J0045.7+1217_weekly_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/139693/ft2_4FGL_J0045.7+1217_weekly_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/139693/ltcube_652665601_653270401_4FGL_J0045.7+1217_weekly_bin684.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/139693/ft2_4FGL_J0045.7+1217_weekly_bin684.fits
.....................!
real 32.03
user 31.41
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139693/ft1_filtered_4FGL_J0045.7+1217_weekly_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/139693/ft2_4FGL_J0045.7+1217_weekly_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/139693/ltcube_652665601_653270401_4FGL_J0045.7+1217_weekly_bin684.fits outfile=/scratch/kocevski/139693/expmap_652665601_653270401_4FGL_J0045.7+1217_weekly_bin684.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/139693/ltcube_652665601_653270401_4FGL_J0045.7+1217_weekly_bin684.fits
.....................!
real 192.73
user 186.34
sys 5.37

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

Setting source of interest to:
4FGL J0045.7+1217 @ 11.4309 12.292

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/139693/ft1_filtered_4FGL_J0045.7+1217_weekly_bin684.fits scfile=/scratch/kocevski/139693/ft2_4FGL_J0045.7+1217_weekly_bin684.fits outfile=/scratch/kocevski/139693/cmap_652665601_653270401_4FGL_J0045.7+1217_weekly_bin684.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=11.4309 yref=12.292 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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139693/ft1_filtered_4FGL_J0045.7+1217_weekly_bin684.fits scfile=/scratch/kocevski/139693/ft2_4FGL_J0045.7+1217_weekly_bin684.fits outfile=/scratch/kocevski/139693/cmap_HighResolution_652665601_653270401_4FGL_J0045.7+1217_weekly_bin684.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=11.4309 yref=12.292 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.59
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/139693/ft1_filtered_4FGL_J0045.7+1217_weekly_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/139693/ft2_4FGL_J0045.7+1217_weekly_bin684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/139693/Model_4FGL_J0045.7+1217_weekly_bin684.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/139693/ft1_filtered_4FGL_J0045.7+1217_weekly_bin684.fits.....................!
real 83.46
user 81.94
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/139693/ft1_filtered_4FGL_J0045.7+1217_weekly_bin684.fits', '/scratch/kocevski/139693/ft2_4FGL_J0045.7+1217_weekly_bin684.fits', expMap='/scratch/kocevski/139693/expmap_652665601_653270401_4FGL_J0045.7+1217_weekly_bin684.fits', expCube='/scratch/kocevski/139693/ltcube_652665601_653270401_4FGL_J0045.7+1217_weekly_bin684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/139693/Model_4FGL_J0045.7+1217_weekly_bin684.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0045.7+1217'

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  1.915e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
186        Index:  1.982e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
187        Scale:  2.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/139693/ft1_filtered_4FGL_J0045.7+1217_weekly_bin684.fits
Spacecraft file(s): /scratch/kocevski/139693/ft2_4FGL_J0045.7+1217_weekly_bin684.fits
Exposure map: /scratch/kocevski/139693/expmap_652665601_653270401_4FGL_J0045.7+1217_weekly_bin684.fits
Exposure cube: /scratch/kocevski/139693/ltcube_652665601_653270401_4FGL_J0045.7+1217_weekly_bin684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/139693/Model_4FGL_J0045.7+1217_weekly_bin684.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) = 8295.20780325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1378       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16853E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11483E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.113       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .82120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.673       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13513E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .58477       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8295.205     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1779 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1782        30.608        .47031E-05    .17947E-03
   2  Prefactor     .10000E-03    3.8123       -.70630E-06** at limit **
   3  norm          .10000E-03    2.0876        .46823E-07** at limit **
   4  Prefactor     .10000E-03    16.064       -.79450E-06** at limit **
   5  Prefactor     .10003E-03    2.3437       -.22055E-05** at limit **
   6  norm          .10000E-03    3.6681        .34665E-06** at limit **
   7  Prefactor     33.073        22.773       -.24927E-05   -.28058E-03
   8  Prefactor     .10000E-03    3.9542        .43488E-06** at limit **
   9  norm          .10000E-03    4.7374        .87266E-06** at limit **
  10  Prefactor     .82027        3.5676        .28186E-05    .43584E-03
  11  Prefactor     23.678        12.516        .31124E-06    .43192E-03
  12  Prefactor     .10000E-03    2.3488       -.66318E-06** at limit **
  13  norm          .10000E-03    7.6975        .31767E-06** at limit **
  14  Prefactor     .10000E-03    17.254        .40732E-06** at limit **
  15  Prefactor     .10000E-03    55.408        .14039E-05** at limit **
  16  Prefactor     .10000E-03    16.238        .13076E-06** at limit **
  17  Normalizat    .58453        .19806        .23311E-05    .60227E-03
  18  Prefactor     1.2302        .13136       -.45831E-06    .10457E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17816
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  norm       = 0.0001
  Prefactor  = 33.073
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.820271
  Prefactor  = 23.6783
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.584527
  Prefactor  = 1.23018
 **********
 **   18 **HESSE 
 **********

 FCN=   8295.205     FROM HESSE     STATUS=OK           240 CALLS     2019 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1782        32.598        .43641E-03   -1.5491    
   2  Prefactor     .10000E-03    3.8503        .17409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0906        .12851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    4.5315        .20094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.365        .33712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.073        23.370        .69636E-04   -1.4557    
   8  Prefactor     .10000E-03    3.9622        .17694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.8997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .82027        3.7229        .34285E-03   -1.5527    
  11  Prefactor     23.678        12.516        .82327E-04   -1.4734    
  12  Prefactor     .10000E-03    6.2006        .26840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.7124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .58453        .21758        .38066E-03   -1.0864    
  18  Prefactor     1.2302        .14630        .18931E-03   -.85408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99206e-09
Minuit parameter uncertainties:
  1  12.4014
  2  5.24836e-05
  3  1.46267e-06
  4  0.000147087
  5  0.00072115
  6  0.000142681
  7  23.3764
  8  3.44703e-05
  9  8.09215e-05
  10  3.49515
  11  12.5176
  12  0.000123205
  13  3.44181e-05
  14  5.99102e-05
  15  0.000438912
  16  4.78041e-05
  17  0.217895
  18  0.146348
Done.

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

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  8.203e-01  3.495e+00  1.000e-04  1.000e+04 ( 1.000e-13)
186        Index:  1.982e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
187        Scale:  2.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.230e+00  1.463e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  5.845e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 11.431 12.292
Photon Flux Upper Limit: 5.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/139693/likelihoodResults_652665601_653270401_4FGL_J0045.7+1217_weekly_bin684.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) = 8295.19081189
delta logL = 0.0137522777513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8295.18722084
delta logL = 0.0173433240307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1359       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7179       1.0000          .0000       10.000    
     3 'Normalizat'    .58586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2293       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+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=   8295.187     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      266 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1345        4.0109        .33475E-03    .48240E-04
   2  Index         1.7180        1.2932        .83056E-02    .17986E-05
   3  Normalizat    .58589        .20566        .38023E-03   -.63387E-05
   4  Prefactor     1.2293        .14542        .18936E-03   -.25216E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13451
  Index      = 1.718
  Normalizat = 0.585885
  Prefactor  = 1.22931
 **********
 **   18 **HESSE 
 **********

 FCN=   8295.187     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .50E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1345        3.9912        .66949E-04   -1.5495    
   2  Index         1.7180        1.2874        .33223E-03   -.71604    
   3  Normalizat    .58589        .20579        .15209E-04   -1.0859    
   4  Prefactor     1.2293        .14552        .75745E-05   -.85434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0339e-13
Minuit parameter uncertainties:
  1  3.99214
  2  1.31383
  3  0.206062
  4  0.145564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139693': 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) = 8295.18722076
delta logL = 0.0173434051339

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  1.135e+00  3.992e+00  1.000e-04  1.000e+04 ( 1.000e-13)
186        Index:  1.718e+00  1.314e+00  0.000e+00  1.000e+01 (-1.000e+00)
187        Scale:  2.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.229e+00  1.456e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  5.859e-01  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 11.431 12.292

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/139693/cmap_HighResolution_652665601_653270401_4FGL_J0045.7+1217_weekly_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2021-12-07 12:19:11.733196', job_id='139693', GAL2='1.23', fit_tolerance='1e-08', EG2='0.59', EG='0.58', time_epoch_completed='1638908351.73', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.73e-02', ts2='0.10', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='684' AND source_name='4FGL J0045.7+1217' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:19:11 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 139693: <4FGL_J0045.7+1217_weekly_bin684> in cluster <slac> Done

Job <4FGL_J0045.7+1217_weekly_bin684> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 12:05:41 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:08:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:08:08 2021
Terminated at Tue Dec  7 12:19:12 2021
Results reported at Tue Dec  7 12:19:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.7+1217_weekly_bin684 11.4309 12.292 652665601 653270401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0045.7+1217 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   654.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            811 sec.

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

