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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin177
RA = 207.715, Dec = 30.5588
tmin = 285206401, tmax = 285465601
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='2001', job_status='RUN', time_executed='2021-09-08 14:42:02.502933', time_epoch_executed='1631137322.5' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2001/ft1_4FGL_J1350.8+3033_daily_bin177.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2001/ft2_4FGL_J1350.8+3033_daily_bin177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2001/ft1_4FGL_J1350.8+3033_daily_bin177.fits outfile=/scratch/kocevski/2001/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin177.fits ra=207.715 dec=30.5588 rad=12.0 tmin=285206401.0 tmax=285465601.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.53
user 3.30
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/2001/ft2_4FGL_J1350.8+3033_daily_bin177.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2001/ft2_4FGL_J1350.8+3033_daily_bin177.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/2001/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin177.fits evtable="EVENTS" outfile="/scratch/kocevski/2001/ft1_filtered_4FGL_J1350.8+3033_daily_bin177.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2001/ft1_filtered_4FGL_J1350.8+3033_daily_bin177.fits" evtable="EVENTS" scfile=/scratch/kocevski/2001/ft2_4FGL_J1350.8+3033_daily_bin177.fits sctable="SC_DATA" outfile=/scratch/kocevski/2001/ltcube_285206401_285465601_4FGL_J1350.8+3033_daily_bin177.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/2001/ft2_4FGL_J1350.8+3033_daily_bin177.fits
.....................!
real 16.65
user 16.22
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2001/ft1_filtered_4FGL_J1350.8+3033_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/2001/ft2_4FGL_J1350.8+3033_daily_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/2001/ltcube_285206401_285465601_4FGL_J1350.8+3033_daily_bin177.fits outfile=/scratch/kocevski/2001/expmap_285206401_285465601_4FGL_J1350.8+3033_daily_bin177.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/2001/ltcube_285206401_285465601_4FGL_J1350.8+3033_daily_bin177.fits
.....................!
real 198.49
user 192.89
sys 5.06

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

Setting source of interest to:
4FGL J1350.8+3033 @ 207.715 30.5588

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/2001/ft1_filtered_4FGL_J1350.8+3033_daily_bin177.fits scfile=/scratch/kocevski/2001/ft2_4FGL_J1350.8+3033_daily_bin177.fits outfile=/scratch/kocevski/2001/cmap_285206401_285465601_4FGL_J1350.8+3033_daily_bin177.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=207.715 yref=30.5588 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2001/ft1_filtered_4FGL_J1350.8+3033_daily_bin177.fits scfile=/scratch/kocevski/2001/ft2_4FGL_J1350.8+3033_daily_bin177.fits outfile=/scratch/kocevski/2001/cmap_HighResolution_285206401_285465601_4FGL_J1350.8+3033_daily_bin177.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=207.715 yref=30.5588 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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/2001/ft1_filtered_4FGL_J1350.8+3033_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/2001/ft2_4FGL_J1350.8+3033_daily_bin177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2001/Model_4FGL_J1350.8+3033_daily_bin177.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/2001/ft1_filtered_4FGL_J1350.8+3033_daily_bin177.fits.....................!
real 44.73
user 43.32
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2001/ft1_filtered_4FGL_J1350.8+3033_daily_bin177.fits', '/scratch/kocevski/2001/ft2_4FGL_J1350.8+3033_daily_bin177.fits', expMap='/scratch/kocevski/2001/expmap_285206401_285465601_4FGL_J1350.8+3033_daily_bin177.fits', expCube='/scratch/kocevski/2001/ltcube_285206401_285465601_4FGL_J1350.8+3033_daily_bin177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2001/Model_4FGL_J1350.8+3033_daily_bin177.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1350.8+3033'

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/2001/ft1_filtered_4FGL_J1350.8+3033_daily_bin177.fits
Spacecraft file(s): /scratch/kocevski/2001/ft2_4FGL_J1350.8+3033_daily_bin177.fits
Exposure map: /scratch/kocevski/2001/expmap_285206401_285465601_4FGL_J1350.8+3033_daily_bin177.fits
Exposure cube: /scratch/kocevski/2001/ltcube_285206401_285465601_4FGL_J1350.8+3033_daily_bin177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2001/Model_4FGL_J1350.8+3033_daily_bin177.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) = 5164.85843179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.779       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.7321       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5814       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.899       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.465       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4225       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.711       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9686       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.5825       1.0000         .10000E-03   10000.    
    26 'norm      '    11.778       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96465       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1106       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5164.824     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3694 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4466        .53061E-07** at limit **
   2  Prefactor     24.780        19.975        .30288E-06    .26007E-04
   3  Prefactor     .10000E-03    6.4164       -.16449E-05** at limit **
   4  norm          4.7321        4.0327       -.24915E-07    .17539E-04
   5  norm          1.5802        3.0241       -.21912E-06   -.52845E-03
   6  norm          .10000E-03    3.0002       -.47795E-06** at limit **
   7  norm          .10000E-03    7.2296       -.16955E-05** at limit **
   8  Prefactor     .10000E-03    2.4592        .13253E-06** at limit **
   9  Prefactor     .10000E-03    11.673       -.42950E-05** at limit **
  10  norm          .10000E-03    4.6446       -.17283E-05** at limit **
  11  Prefactor     .10000E-03    17.916       -.73481E-05** at limit **
  12  norm          16.900        10.528       -.64775E-07    .77174E-04
  13  Prefactor     .10000E-03    5.6061        .18624E-05** at limit **
  14  Prefactor     .10000E-03    6.7621       -.22934E-05** at limit **
  15  Prefactor     24.465        48.974        .95424E-06   -.10471E-04
  16  Prefactor     2.4226        3.3915        .16244E-05   -.33152E-03
  17  Prefactor     24.712        16.453       -.34337E-07   -.86080E-05
  18  norm          .10000E-03    9.3683        .63588E-05** at limit **
  19  Prefactor     .10000E-03    11.127       -.66939E-07** at limit **
  20  norm          .10000E-03    1.0645       -.31614E-07** at limit **
  21  Prefactor     9.9690        11.129       -.10945E-05   -.28212E-03
  22  Prefactor     .10000E-03    19.252        .89771E-05** at limit **
  23  Prefactor     .10000E-03    1.8770        .32323E-06** at limit **
  24  norm          .10000E-03    5.4249        .23283E-05** at limit **
  25  norm          6.5825        2.8011       -.14237E-06    .62476E-04
  26  norm          11.778        10.068       -.46862E-07   -.10351E-03
  27  Prefactor     .10000E-03    64.948       -.29022E-05** at limit **
  28  Normalizat    .96457        .17836       -.40500E-06   -.84486E-04
  29  Prefactor     1.1107        .20119        .13349E-06   -.89139E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 24.78
  Prefactor  = 0.0001
  norm       = 4.73209
  norm       = 1.58022
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.8997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4654
  Prefactor  = 2.42258
  Prefactor  = 24.7116
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.96905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.58247
  norm       = 11.7785
  Prefactor  = 0.0001
  Normalizat = 0.964569
  Prefactor  = 1.11065
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.824     FROM HESSE     STATUS=OK           549 CALLS     4243 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4483        .84400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.780        19.932        .80472E-04   -1.4712    
   3  Prefactor     .10000E-03    6.4203        .17777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7321        4.0282        .12939E-03   -1.5273    
   5  norm          1.5802        2.9923        .16160E-03   -1.5457    
   6  norm          .10000E-03    3.0023        .12108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.2314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5542        .21956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.6668        .15092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.900        10.515        .97430E-04   -1.4886    
  13  Prefactor     .10000E-03    5.6137        .16615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.7659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.465        49.093        .80987E-04   -1.4718    
  16  Prefactor     2.4226        3.3422        .14853E-03   -1.5397    
  17  Prefactor     24.712        16.457        .80583E-04   -1.4713    
  18  norm          .10000E-03    9.3875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0676        .72402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.9690        11.188        .12691E-03   -1.5076    
  22  Prefactor     .10000E-03    19.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.2235        .19032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.4317        .16352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.5825        2.8047        .76290E-04   -1.5195    
  26  norm          11.778        10.068        .11673E-03   -1.5021    
  27  Prefactor     .10000E-03    65.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96457        .21241        .23354E-03   -.94227    
  29  Prefactor     1.1107        .24036        .25436E-03   -.89127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71122e-10
Minuit parameter uncertainties:
  1  3.4129e-07
  2  19.9373
  3  1.34466e-06
  4  4.02843
  5  2.99256
  6  5.87837e-06
  7  1.2918e-06
  8  7.763e-06
  9  2.48788e-05
  10  6.30219e-06
  11  3.3437e-06
  12  10.5162
  13  2.26842e-06
  14  8.08981e-07
  15  49.1742
  16  3.34251
  17  16.4596
  18  5.79569e-06
  19  8.30976e-06
  20  2.55079e-07
  21  11.1905
  22  4.52947e-05
  23  4.04065e-05
  24  2.5489e-06
  25  2.8048
  26  10.0693
  27  2.22966e-05
  28  0.212599
  29  0.240595
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.423e+00  3.343e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.111e+00  2.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.646e-01  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.78
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 8.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2001/likelihoodResults_285206401_285465601_4FGL_J1350.8+3033_daily_bin177.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) = 5164.8201827
delta logL = 0.00427165321253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5164.81920209
delta logL = 0.00525225652564

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2732       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5102       1.0000          .0000       10.000    
     3 'Normalizat'    .96293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1119       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+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=   5164.819     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      242 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2733        3.7185        .71233E-03   -.43912E-03
   2  Index         2.5105        .98559        .10085E-01    .87692E-05
   3  Normalizat    .96297        .20553        .23371E-03    .53508E-06
   4  Prefactor     1.1118        .23785        .25425E-03   -.44715E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.27328
  Index      = 2.51053
  Normalizat = 0.962972
  Prefactor  = 1.11184
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2733        3.5309        .28493E-04   -1.5406    
   2  Index         2.5105        .93676        .40340E-03   -.52117    
   3  Normalizat    .96297        .20577        .93486E-05   -.94281    
   4  Prefactor     1.1118        .23807        .10170E-04   -.89089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17251e-10
Minuit parameter uncertainties:
  1  3.53126
  2  0.944202
  3  0.205935
  4  0.238303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2001': 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) = 5164.81920199
delta logL = 0.00525236280737

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.273e+00  3.531e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.511e+00  9.442e-01  0.000e+00  1.000e+01 (-1.000e+00)
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.112e+00  2.383e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.630e-01  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.78
Ra Dec: 207.715 30.559

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/2001/cmap_HighResolution_285206401_285465601_4FGL_J1350.8+3033_daily_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.92e-03', job_status='DONE', photon_flux_upper_limit='8.95e-08', time_completed='2021-09-08 14:54:23.486410', job_id='2001', GAL2='1.11', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631138063.49', return_code2='0', ts='0.78', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.25e-03', ts2='0.79', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='177' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:54:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 2001: <4FGL_J1350.8+3033_daily_bin177> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin177> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  8 14:40:33 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:41:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 14:41:52 2021
Terminated at Wed Sep  8 14:54:24 2021
Results reported at Wed Sep  8 14:54:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin177 207.715 30.5588 285206401 285465601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1350.8+3033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   737.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            831 sec.

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

