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


Performing analysis on: 4FGL_J1312.6+4828_monthly_bin118
RA = 198.169, Dec = 48.4701
tmin = 542851201, tmax = 545443201
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='100377', job_status='RUN', time_executed='2021-10-24 11:24:12.657874', time_epoch_executed='1635099852.66' WHERE source_name='4FGL J1312.6+4828' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100377

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100377/ft1_4FGL_J1312.6+4828_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100377/ft2_4FGL_J1312.6+4828_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100377/ft1_4FGL_J1312.6+4828_monthly_bin118.fits outfile=/scratch/kocevski/100377/ft1_filteredMKT_4FGL_J1312.6+4828_monthly_bin118.fits ra=198.169 dec=48.4701 rad=12.0 tmin=542851201.0 tmax=545443201.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 15.28
user 14.51
sys 0.45

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/100377/ft2_4FGL_J1312.6+4828_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100377/ft2_4FGL_J1312.6+4828_monthly_bin118.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/100377/ft1_filteredMKT_4FGL_J1312.6+4828_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/100377/ft1_filtered_4FGL_J1312.6+4828_monthly_bin118.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.52
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100377/ft1_filtered_4FGL_J1312.6+4828_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/100377/ft2_4FGL_J1312.6+4828_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/100377/ltcube_542851201_545443201_4FGL_J1312.6+4828_monthly_bin118.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/100377/ft2_4FGL_J1312.6+4828_monthly_bin118.fits
.....................!
real 37.53
user 37.05
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100377/ft1_filtered_4FGL_J1312.6+4828_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/100377/ft2_4FGL_J1312.6+4828_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/100377/ltcube_542851201_545443201_4FGL_J1312.6+4828_monthly_bin118.fits outfile=/scratch/kocevski/100377/expmap_542851201_545443201_4FGL_J1312.6+4828_monthly_bin118.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/100377/ltcube_542851201_545443201_4FGL_J1312.6+4828_monthly_bin118.fits
.....................!
real 156.88
user 152.28
sys 4.09

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

Setting source of interest to:
4FGL J1312.6+4828 @ 198.169 48.4701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/100377/ft1_filtered_4FGL_J1312.6+4828_monthly_bin118.fits scfile=/scratch/kocevski/100377/ft2_4FGL_J1312.6+4828_monthly_bin118.fits outfile=/scratch/kocevski/100377/cmap_542851201_545443201_4FGL_J1312.6+4828_monthly_bin118.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=198.169 yref=48.4701 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/100377/ft1_filtered_4FGL_J1312.6+4828_monthly_bin118.fits scfile=/scratch/kocevski/100377/ft2_4FGL_J1312.6+4828_monthly_bin118.fits outfile=/scratch/kocevski/100377/cmap_HighResolution_542851201_545443201_4FGL_J1312.6+4828_monthly_bin118.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=198.169 yref=48.4701 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100377/ft1_filtered_4FGL_J1312.6+4828_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/100377/ft2_4FGL_J1312.6+4828_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100377/Model_4FGL_J1312.6+4828_monthly_bin118.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/100377/ft1_filtered_4FGL_J1312.6+4828_monthly_bin118.fits.......................!
real 18.25
user 17.10
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/100377/ft1_filtered_4FGL_J1312.6+4828_monthly_bin118.fits', '/scratch/kocevski/100377/ft2_4FGL_J1312.6+4828_monthly_bin118.fits', expMap='/scratch/kocevski/100377/expmap_542851201_545443201_4FGL_J1312.6+4828_monthly_bin118.fits', expCube='/scratch/kocevski/100377/ltcube_542851201_545443201_4FGL_J1312.6+4828_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/100377/Model_4FGL_J1312.6+4828_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1312.6+4828'

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  4.452e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/100377/ft1_filtered_4FGL_J1312.6+4828_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/100377/ft2_4FGL_J1312.6+4828_monthly_bin118.fits
Exposure map: /scratch/kocevski/100377/expmap_542851201_545443201_4FGL_J1312.6+4828_monthly_bin118.fits
Exposure cube: /scratch/kocevski/100377/ltcube_542851201_545443201_4FGL_J1312.6+4828_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/100377/Model_4FGL_J1312.6+4828_monthly_bin118.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) = 1157.58490479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14463E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43996E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10413E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11729E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.964       1.0000         .10000E-03   10000.    
    12 'norm      '    10.824       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .44134E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10684E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.680       1.0000         .10000E-03   10000.    
    17 'Prefactor '    905.82       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11121E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .12272E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10287E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .95489E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10744E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11038E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1667       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .34319       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1157.376     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3856 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    58.257        .16262E-04** at limit **
   2  norm          .10000E-03    22.617       -.27296E-05** at limit **
   3  Prefactor     .10000E-03    59.887        .21159E-04** at limit **
   4  Prefactor     .10000E-03    121.12       -.38900E-04** at limit **
   5  norm          .10000E-03    55.278        .28002E-05** at limit **
   6  Prefactor     .10000E-03    322.08        .41010E-04** at limit **
   7  norm          .10000E-03    20.282        .13822E-05** at limit **
   8  Prefactor     .10000E-03    87.452       -.38360E-04** at limit **
   9  Prefactor     .10000E-03    181.32        .13547E-03** at limit **
  10  Prefactor     .10000E-03    12.753        .23959E-06** at limit **
  11  norm          18.938        24.391       -.80648E-06    .33415E-05
  12  norm          10.817        15.331       -.12363E-06   -.87061E-04
  13  Prefactor     .10000E-03    68.417        .21195E-04** at limit **
  14  Prefactor     .10004E-03    274.90        .14245E-03** at limit **
  15  Prefactor     .10000E-03    108.58       -.57770E-04** at limit **
  16  norm          20.684        33.700       -.16008E-04   -.10750E-03
  17  Prefactor     906.88        1122.3        .36936E-03   -.27773E-04
  18  Prefactor     .10000E-03    42.026       -.53755E-04** at limit **
  19  Prefactor     .10000E-03    509.72       -.11639E-03** at limit **
  20  norm          .10000E-03    2.2242        .23067E-06** at limit **
  21  norm          .10000E-03    1049.7       -.78780E-03** at limit **
  22  norm          .10001E-03    37.082        .28712E-04** at limit **
  23  norm          .10000E-03    9.7284        .37810E-07** at limit **
  24  Prefactor     .10000E-03    181.16        .16492E-05** at limit **
  25  Prefactor     .10000E-03    71.334        .13820E-04** at limit **
  26  Prefactor     .10000E-03    6.5454        .13932E-06** at limit **
  27  Prefactor     .10000E-03    76.895       -.52818E-05** at limit **
  28  Prefactor     .10000E-03    17.132       -.55220E-06** at limit **
  29  Normalizat    1.1668        .37843       -.72442E-05    .11158E-03
  30  Prefactor     .34321        .42876        .84529E-05   -.51963E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.9383
  norm       = 10.8173
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 0.000100001
  norm       = 20.6843
  Prefactor  = 906.883
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.16678
  Prefactor  = 0.343206
 **********
 **   18 **HESSE 
 **********

 FCN=   1157.376     FROM HESSE     STATUS=OK           562 CALLS     4418 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    58.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    22.617        .15809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    59.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    121.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    55.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    323.58        .21219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    20.292        .14970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    87.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    181.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.770        .11867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.938        24.364        .91972E-04   -1.4837    
  12  norm          10.817        15.309        .12178E-03   -1.5050    
  13  Prefactor     .10000E-03    68.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    273.94        .19369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    108.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.684        33.674        .88077E-04   -1.4798    
  17  Prefactor     906.88        1120.4        .69683E-04   -.95901    
  18  Prefactor     .10000E-03    42.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    509.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2620        .49457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1052.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    37.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.7327        .10366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    181.14        .20792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    71.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.5462        .85024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    77.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    17.131        .13758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1668        .43147        .18115E-03   -.87636    
  30  Prefactor     .34321        .48426        .35767E-03   -1.1981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44746e-09
Minuit parameter uncertainties:
  1  2.1716e-05
  2  3.6148e-07
  3  6.38218e-06
  4  0.000159809
  5  6.91061e-05
  6  0.000335479
  7  0.000187559
  8  9.36217e-05
  9  0.000387968
  10  3.423e-05
  11  24.3768
  12  15.3149
  13  0.000136653
  14  0.00681773
  15  0.000520727
  16  33.7052
  17  1150.98
  18  7.54119e-05
  19  0.00212863
  20  3.08066e-05
  21  0.000133194
  22  0.000989268
  23  1.83041e-05
  24  0.000925956
  25  0.000145368
  26  3.44007e-06
  27  4.02023e-05
  28  0.000190735
  29  0.43279
  30  0.490165
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.082e+01  1.531e+01  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  3.432e-01  4.902e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.167e+00  4.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 198.169 48.470
Photon Flux Upper Limit: 3.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.69e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/100377/likelihoodResults_542851201_545443201_4FGL_J1312.6+4828_monthly_bin118.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) = 1157.34697193
delta logL = 0.0291027652181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1157.34589518
delta logL = 0.0301795073672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.213       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2985       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34327       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+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=   1157.346     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      253 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.213        14.945        .12538E-03    .32211E-04
   2  alpha         2.2985        .94283        .11376E-01    .30351E-05
   3  Normalizat    1.1645        .42919        .18126E-03    .22265E-05
   4  Prefactor     .34338        .47862        .35744E-03    .43574E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2126
  alpha      = 2.29851
  Normalizat = 1.16446
  Prefactor  = 0.34338
 **********
 **   18 **HESSE 
 **********

 FCN=   1157.346     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.213        14.799        .50153E-05   -1.5069    
   2  alpha         2.2985        .93408        .45503E-03   -.80683E-01
   3  Normalizat    1.1645        .42943        .72506E-05   -.87708    
   4  Prefactor     .34338        .47888        .14298E-04   -1.1980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68161e-12
Minuit parameter uncertainties:
  1  14.8042
  2  0.957468
  3  0.430739
  4  0.48458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100377': 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) = 1157.34589516
delta logL = 0.0301795341356

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.021e+01  1.480e+01  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.299e+00  9.575e-01  0.000e+00  5.000e+00 ( 1.000e+00)
362         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  3.434e-01  4.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.164e+00  4.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.76
Ra Dec: 198.169 48.470

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/100377/cmap_HighResolution_542851201_545443201_4FGL_J1312.6+4828_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-04', job_status='DONE', photon_flux_upper_limit='3.26e-07', time_completed='2021-10-24 11:32:26.358610', job_id='100377', GAL2='0.34', fit_tolerance='1e-08', EG2='1.16', EG='1.17', time_epoch_completed='1635100346.36', return_code2='0', ts='0.76', comment='SUCCESS', return_code='0', GAL='0.34', dlogl='3.02e-02', ts2='0.82', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='118' AND source_name='4FGL J1312.6+4828' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 24 11:32:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 100377: <4FGL_J1312.6+4828_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1312.6+4828_monthly_bin118> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Oct 24 11:20:14 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 24 11:20:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 24 11:20:47 2021
Terminated at Sun Oct 24 11:32:27 2021
Results reported at Sun Oct 24 11:32:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_monthly_bin118 198.169 48.4701 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1312.6+4828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   465.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             216.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            733 sec.

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

