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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin201
RA = 207.715, Dec = 30.5588
tmin = 291427201, tmax = 291686401
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='2036', job_status='RUN', time_executed='2021-09-08 14:42:15.829262', time_epoch_executed='1631137335.83' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2036

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2036/ft1_4FGL_J1350.8+3033_daily_bin201.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2036/ft2_4FGL_J1350.8+3033_daily_bin201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2036/ft1_4FGL_J1350.8+3033_daily_bin201.fits outfile=/scratch/kocevski/2036/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin201.fits ra=207.715 dec=30.5588 rad=12.0 tmin=291427201.0 tmax=291686401.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.49
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2036/ft2_4FGL_J1350.8+3033_daily_bin201.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/2036/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin201.fits evtable="EVENTS" outfile="/scratch/kocevski/2036/ft1_filtered_4FGL_J1350.8+3033_daily_bin201.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2036/ft1_filtered_4FGL_J1350.8+3033_daily_bin201.fits" evtable="EVENTS" scfile=/scratch/kocevski/2036/ft2_4FGL_J1350.8+3033_daily_bin201.fits sctable="SC_DATA" outfile=/scratch/kocevski/2036/ltcube_291427201_291686401_4FGL_J1350.8+3033_daily_bin201.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/2036/ft2_4FGL_J1350.8+3033_daily_bin201.fits
.....................!
real 14.73
user 13.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2036/ft1_filtered_4FGL_J1350.8+3033_daily_bin201.fits evtable="EVENTS" scfile=/scratch/kocevski/2036/ft2_4FGL_J1350.8+3033_daily_bin201.fits sctable="SC_DATA" expcube=/scratch/kocevski/2036/ltcube_291427201_291686401_4FGL_J1350.8+3033_daily_bin201.fits outfile=/scratch/kocevski/2036/expmap_291427201_291686401_4FGL_J1350.8+3033_daily_bin201.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/2036/ltcube_291427201_291686401_4FGL_J1350.8+3033_daily_bin201.fits
.....................!
real 194.33
user 187.97
sys 5.54

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/2036/ft1_filtered_4FGL_J1350.8+3033_daily_bin201.fits scfile=/scratch/kocevski/2036/ft2_4FGL_J1350.8+3033_daily_bin201.fits outfile=/scratch/kocevski/2036/cmap_291427201_291686401_4FGL_J1350.8+3033_daily_bin201.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2036/ft1_filtered_4FGL_J1350.8+3033_daily_bin201.fits scfile=/scratch/kocevski/2036/ft2_4FGL_J1350.8+3033_daily_bin201.fits outfile=/scratch/kocevski/2036/cmap_HighResolution_291427201_291686401_4FGL_J1350.8+3033_daily_bin201.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2036/ft1_filtered_4FGL_J1350.8+3033_daily_bin201.fits', '/scratch/kocevski/2036/ft2_4FGL_J1350.8+3033_daily_bin201.fits', expMap='/scratch/kocevski/2036/expmap_291427201_291686401_4FGL_J1350.8+3033_daily_bin201.fits', expCube='/scratch/kocevski/2036/ltcube_291427201_291686401_4FGL_J1350.8+3033_daily_bin201.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2036/Model_4FGL_J1350.8+3033_daily_bin201.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/2036/ft1_filtered_4FGL_J1350.8+3033_daily_bin201.fits
Spacecraft file(s): /scratch/kocevski/2036/ft2_4FGL_J1350.8+3033_daily_bin201.fits
Exposure map: /scratch/kocevski/2036/expmap_291427201_291686401_4FGL_J1350.8+3033_daily_bin201.fits
Exposure cube: /scratch/kocevski/2036/ltcube_291427201_291686401_4FGL_J1350.8+3033_daily_bin201.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2036/Model_4FGL_J1350.8+3033_daily_bin201.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) = 5114.33061826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.0536       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9908       1.0000         .10000E-03   10000.    
     6 'norm      '    .28594E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .75535       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.0080       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.5318       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5833       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19453E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6615       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8508       1.0000         .10000E-03   10000.    
    18 'norm      '    11.900       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.896       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .63323       1.0000         .10000E-03   10000.    
    24 'norm      '    .17613E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    11.112       1.0000         .10000E-03   10000.    
    26 'norm      '    8.9625       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .73117       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0629       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=   5114.248     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3149 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0992       -.26628E-08** at limit **
   2  Prefactor     .10000E-03    7.3035        .15368E-06** at limit **
   3  Prefactor     .10000E-03    7.1100       -.17596E-06** at limit **
   4  norm          8.0534        5.3279        .11205E-06    .20767E-03
   5  norm          1.9862        3.2490        .19186E-06    .23811E-06
   6  norm          .10000E-03    4.9922       -.37115E-06** at limit **
   7  norm          .10000E-03    8.7524       -.21738E-06** at limit **
   8  Prefactor     .75508        2.6517        .72465E-06   -.28122E-03
   9  Prefactor     .10000E-03    15.850       -.10676E-06** at limit **
  10  norm          8.0083        9.1183        .80360E-07   -.76137E-04
  11  Prefactor     .10000E-03    34.139       -.25719E-05** at limit **
  12  norm          5.5336        9.7826        .19954E-06   -.68532E-04
  13  Prefactor     .10000E-03    8.0700        .28007E-06** at limit **
  14  Prefactor     1.5372        43.890        .66856E-05    .90640E-04
  15  Prefactor     .10000E-03    84.345       -.13842E-05** at limit **
  16  Prefactor     2.6609        2.7366        .85301E-07   -.10356E-03
  17  Prefactor     6.8483        8.6101        .13197E-05   -.51025E-03
  18  norm          11.905        14.317        .39252E-06    .25310E-04
  19  Prefactor     .10000E-03    6.5046        .11196E-06** at limit **
  20  norm          .10000E-03    1.1580       -.67074E-08** at limit **
  21  Prefactor     10.910        11.345        .74480E-06    .28304E-03
  22  Prefactor     .10000E-03    6.5119        .25108E-07** at limit **
  23  Prefactor     .63546        3.3819        .13007E-05   -.36127E-03
  24  norm          .10000E-03    42.757       -.20622E-06** at limit **
  25  norm          11.114        3.8516        .46430E-07   -.80861E-06
  26  norm          8.9592        9.3275       -.36921E-08   -.76210E-04
  27  Prefactor     .10001E-03    35.706        .27414E-05** at limit **
  28  Normalizat    .73119        .16958       -.13561E-05   -.10138E-03
  29  Prefactor     1.0628        .18870       -.11651E-06   -.12493E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.0534
  norm       = 1.98621
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.755084
  Prefactor  = 0.0001
  norm       = 8.00833
  Prefactor  = 0.000100004
  norm       = 5.53359
  Prefactor  = 0.0001
  Prefactor  = 1.53723
  Prefactor  = 0.000100001
  Prefactor  = 2.66088
  Prefactor  = 6.84831
  norm       = 11.9048
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9105
  Prefactor  = 0.0001
  Prefactor  = 0.635465
  norm       = 0.000100001
  norm       = 11.1138
  norm       = 8.95918
  Prefactor  = 0.000100005
  Normalizat = 0.731191
  Prefactor  = 1.06278
 **********
 **   18 **HESSE 
 **********

 FCN=   5114.248     FROM HESSE     STATUS=OK           553 CALLS     3702 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1006        .73212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.0534        5.3058        .12706E-03   -1.5140    
   5  norm          1.9862        2.8451        .13672E-03   -1.5426    
   6  norm          .10000E-03    9.6032        .27342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.7697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .75508        2.6357        .20052E-03   -1.5534    
   9  Prefactor     .10000E-03    16.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.0083        9.0576        .14169E-03   -1.5142    
  11  Prefactor     .10000E-03    35.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.5336        9.7128        .17082E-03   -1.5237    
  13  Prefactor     .10000E-03    8.0936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5372        45.701        .33745E-03   -1.5460    
  15  Prefactor     .10000E-03    84.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6609        2.7270        .11578E-03   -1.5382    
  17  Prefactor     6.8483        9.0173        .76644E-03   -1.5185    
  18  norm          11.905        14.335        .11612E-03   -1.5018    
  19  Prefactor     .10000E-03    6.5094        .17810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1615        .75129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.910        11.456        .12138E-03   -1.5047    
  22  Prefactor     .10000E-03    6.5264        .17814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .63546        3.6501        .25219E-03   -1.5549    
  24  norm          .10000E-03    44.637        .40679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.114        3.8592        .79617E-04   -1.5041    
  26  norm          8.9592        9.3310        .13388E-03   -1.5109    
  27  Prefactor     .10001E-03    37.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .73119        .19563        .23498E-03   -1.0267    
  29  Prefactor     1.0628        .22011        .23178E-03   -.90665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15513e-09
Minuit parameter uncertainties:
  1  9.37552e-09
  2  2.255e-05
  3  2.61571e-05
  4  5.30608
  5  2.84525
  6  1.56073e-05
  7  3.23845e-05
  8  2.63615
  9  7.41183e-06
  10  9.05915
  11  0.000770743
  12  9.71555
  13  1.69179e-05
  14  16.7769
  15  0.000587121
  16  2.72716
  17  9.01906
  18  14.3396
  19  5.37696e-06
  20  1.51737e-06
  21  11.4582
  22  1.91481e-05
  23  3.04604
  24  0.000459426
  25  3.85931
  26  9.33247
  27  0.000880932
  28  0.195815
  29  0.2203
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.661e+00  2.727e+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.063e+00  2.203e-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:  7.312e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 2.21e-08
Energy Flux (Fixed Index): 6.94e-06 +/- 7.11e-06

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

Saving results to:
/scratch/kocevski/2036/likelihoodResults_291427201_291686401_4FGL_J1350.8+3033_daily_bin201.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) = 5114.05298812
delta logL = 0.195097775589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5114.03913287
delta logL = 0.208953027451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4712       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9935       1.0000          .0000       10.000    
     3 'Normalizat'    .73795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0565       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.

 FCN=   5114.039     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      253 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4741        165.03        .54262E-02    .12291E-03
   2  Index         1.9941        5.1465        .23700        .40010E-05
   3  Normalizat    .73773        .10220        .42795E-01    .14983E-04
   4  Prefactor     1.0568        .12460        .39541E-01    .63490E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47411
  Index      = 1.99412
  Normalizat = 0.737733
  Prefactor  = 1.05677
 **********
 **   18 **HESSE 
 **********

 FCN=   5114.039     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .21E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4741        3.3810        .12557E-03   -1.5335    
   2  Index         1.9941        .60247        .86540E-02   -.64497    
   3  Normalizat    .73773        .18410        .23397E-03   -1.0242    
   4  Prefactor     1.0568        .21632        .23228E-03   -.90860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08995e-14
Minuit parameter uncertainties:
  1  3.38123
  2  0.604775
  3  0.184251
  4  0.216502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2036': 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) = 5114.03913125
delta logL = 0.208954646133

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  3.474e+00  3.381e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  1.994e+00  6.048e-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.057e+00  2.165e-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:  7.377e-01  1.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 207.715 30.559
Photon Index (Free Index): 1.99 +/- 0.60
Photon Flux (Free Index): 1.75e-08 +/- 1.91e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/2036/cmap_HighResolution_291427201_291686401_4FGL_J1350.8+3033_daily_bin201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='1.23e-05', photon_flux_error='2.21e-08', dlogl='2.09e-01', energy_flux='6.94e-06', photon_flux2='1.75e-08', job_status='DONE', time_completed='2021-09-08 14:53:33.423600', photon_index_error2='0.60', photon_index2='1.99', ts='1.61', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='7.84e-08', energy_flux_error2='1.72e-05', EG='0.73', time_epoch_completed='1631138013.42', return_code='0', job_id='2036', GAL2='1.06', EG2='0.74', return_code2='0', energy_flux_error='7.11e-06', photon_flux_error2='1.91e-08', ts2='2.03', photon_index='2.42' WHERE bin_id='201' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:53:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 2036: <4FGL_J1350.8+3033_daily_bin201> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin201> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  8 14:40:35 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:41:59 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:59 2021
Terminated at Wed Sep  8 14:53:34 2021
Results reported at Wed Sep  8 14:53:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin201 207.715 30.5588 291427201 291686401 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 :                                   672.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            779 sec.

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

