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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin43
RA = 207.715, Dec = 30.5588
tmin = 250473601, tmax = 250732801
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='1796', job_status='RUN', time_executed='2021-09-08 14:40:35.833778', time_epoch_executed='1631137235.83' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1796

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1796/ft1_4FGL_J1350.8+3033_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1796/ft2_4FGL_J1350.8+3033_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1796/ft1_4FGL_J1350.8+3033_daily_bin43.fits outfile=/scratch/kocevski/1796/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin43.fits ra=207.715 dec=30.5588 rad=12.0 tmin=250473601.0 tmax=250732801.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 1.35
user 1.17
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1796/ft1_filtered_4FGL_J1350.8+3033_daily_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/1796/ft2_4FGL_J1350.8+3033_daily_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/1796/ltcube_250473601_250732801_4FGL_J1350.8+3033_daily_bin43.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/1796/ft2_4FGL_J1350.8+3033_daily_bin43.fits
.....................!
real 16.99
user 16.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1796/ft1_filtered_4FGL_J1350.8+3033_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/1796/ft2_4FGL_J1350.8+3033_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/1796/ltcube_250473601_250732801_4FGL_J1350.8+3033_daily_bin43.fits outfile=/scratch/kocevski/1796/expmap_250473601_250732801_4FGL_J1350.8+3033_daily_bin43.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/1796/ltcube_250473601_250732801_4FGL_J1350.8+3033_daily_bin43.fits
.....................!
real 192.54
user 187.00
sys 4.79

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/1796/ft1_filtered_4FGL_J1350.8+3033_daily_bin43.fits scfile=/scratch/kocevski/1796/ft2_4FGL_J1350.8+3033_daily_bin43.fits outfile=/scratch/kocevski/1796/cmap_250473601_250732801_4FGL_J1350.8+3033_daily_bin43.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1796/ft1_filtered_4FGL_J1350.8+3033_daily_bin43.fits scfile=/scratch/kocevski/1796/ft2_4FGL_J1350.8+3033_daily_bin43.fits outfile=/scratch/kocevski/1796/cmap_HighResolution_250473601_250732801_4FGL_J1350.8+3033_daily_bin43.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5620       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4758       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.2704       1.0000         .10000E-03   10000.    
     6 'norm      '    .74684E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    27.881       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.949       1.0000         .10000E-03   10000.    
    12 'norm      '    10.002       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.680       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9361       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.353       1.0000         .10000E-03   10000.    
    18 'norm      '    .47404       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5915       1.0000         .10000E-03   10000.    
    24 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.1588       1.0000         .10000E-03   10000.    
    26 'norm      '    .86954E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    55.988       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0039       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95294       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=   7188.222     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3686 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5612        3.5909        .63762E-02    .21205E-03
   2  Prefactor     .10000E-03    11.507        .90712E-02** at limit **
   3  Prefactor     2.4704        11.377        .64962E-02    .19179E-03
   4  norm          .10000E-03    1.8395        .90712E-02** at limit **
   5  norm          7.2647        4.1062        .37189E-02    .49297E-03
   6  norm          .10005E-03    5.1080        .53750E-01** at limit **
   7  norm          27.882        14.244        .18968E-02    .44940E-03
   8  Prefactor     .10000E-03    1.0827        .90712E-02** at limit **
   9  Prefactor     .10000E-03    4.4263        .90712E-02** at limit **
  10  norm          .10000E-03    1.6195        .90712E-02** at limit **
  11  Prefactor     21.945        29.978        .21374E-02    .13454E-02
  12  norm          10.005        6.3701        .31675E-02    .27848E-03
  13  Prefactor     .10000E-03    6.9823        .90712E-02** at limit **
  14  Prefactor     10.668        20.495        .30650E-02    .26440E-03
  15  Prefactor     .10000E-03    23.084        .90712E-02** at limit **
  16  Prefactor     3.9364        3.9270        .50833E-02    .36049E-03
  17  Prefactor     12.354        12.842        .28493E-02   -.99481E-04
  18  norm          .45821        5.7691        .76697E-01    .13179E-02
  19  Prefactor     .10000E-03    5.5018        .90712E-02** at limit **
  20  norm          .10000E-03    2.2718        .90712E-02** at limit **
  21  Prefactor     .10000E-03    4.2883        .90712E-02** at limit **
  22  Prefactor     .10000E-03    4.2384        .90712E-02** at limit **
  23  Prefactor     5.5923        3.7947        .42474E-02   -.20804E-03
  24  norm          .10001E-03    11.227        .90712E-02** at limit **
  25  norm          5.1584        2.3024        .44250E-02    .11802E-03
  26  norm          .10000E-03    5.5400        .91654E-01** at limit **
  27  Prefactor     55.988        45.118        .13403E-02   -.47171E-03
  28  Normalizat    1.0037        .15884        .46216E-01   -.29995E-03
  29  Prefactor     .95319        .16739        .45676E-01   -.14195E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.5612
  Prefactor  = 0.000100004
  Prefactor  = 2.47036
  norm       = 0.0001
  norm       = 7.26474
  norm       = 0.000100049
  norm       = 27.8824
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 21.9452
  norm       = 10.0047
  Prefactor  = 0.000100003
  Prefactor  = 10.6684
  Prefactor  = 0.000100002
  Prefactor  = 3.93637
  Prefactor  = 12.3539
  norm       = 0.458209
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.59227
  norm       = 0.000100006
  norm       = 5.15842
  norm       = 0.0001
  Prefactor  = 55.9884
  Normalizat = 1.00372
  Prefactor  = 0.953187
 **********
 **   18 **HESSE 
 **********

 FCN=   7188.222     FROM HESSE     STATUS=OK           553 CALLS     4239 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5612        3.5726        .18282E-03   -1.5388    
   2  Prefactor     .10000E-03    11.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4704        11.321        .25985E-03   -1.5394    
   4  norm          .10000E-03    1.8511        .11223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.2647        3.5480        .10573E-03   -1.5169    
   6  norm          .10005E-03    11.141        .32104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          27.882        14.244        .75873E-04   -1.4651    
   8  Prefactor     .10000E-03    1.0996        .86060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.4366        .17417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.6283        .10531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.945        29.973        .85495E-04   -1.4771    
  12  norm          10.005        6.3668        .12670E-03   -1.5075    
  13  Prefactor     .10000E-03    7.0035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.668        20.512        .12260E-03   -1.5055    
  15  Prefactor     .10000E-03    23.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9364        3.9295        .15790E-03   -1.5311    
  17  Prefactor     12.354        12.844        .11397E-03   -1.5005    
  18  norm          .45821        21.346        .39484E-02   -1.5573    
  19  Prefactor     .10000E-03    5.5065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3146        .12469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.2996        .17145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2442        .17046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.5923        3.8019        .12808E-03   -1.5235    
  24  norm          .10001E-03    11.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.1584        2.3073        .82941E-04   -1.5254    
  26  norm          .10000E-03    82.322        .38364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     55.988        45.149        .53611E-04   -1.4210    
  28  Normalizat    1.0037        .18753        .22945E-03   -.92906    
  29  Prefactor     .95319        .19798        .25930E-03   -.94307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09167e-08
Minuit parameter uncertainties:
  1  3.57288
  2  0.000418133
  3  10.5798
  4  1.1802e-05
  5  3.54813
  6  0.00147987
  7  14.2454
  8  1.30367e-05
  9  0.000134945
  10  9.73153e-06
  11  29.9934
  12  6.36723
  13  0.000287227
  14  20.5257
  15  0.000398285
  16  3.92977
  17  12.8468
  18  6.25663
  19  0.000140568
  20  5.13098e-06
  21  1.73573e-05
  22  0.000108508
  23  3.80208
  24  0.000539434
  25  2.30732
  26  0.000362133
  27  45.1767
  28  0.187655
  29  0.198128
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  3.936e+00  3.930e+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:  9.532e-01  1.981e-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:  1.004e+00  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.19e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/1796/likelihoodResults_250473601_250732801_4FGL_J1350.8+3033_daily_bin43.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) = 7187.9013359
delta logL = 0.320347273962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7187.89212608
delta logL = 0.329557092506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6459       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4679       1.0000          .0000       10.000    
     3 'Normalizat'    .95524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99306       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=   7187.892     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      249 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6372        22.388        .82305E-02    .37675E-03
   2  Index         3.4713        3.6059        .13467        .10862E-03
   3  Normalizat    .95536        .43984E-01    .45604E-01   -.26749E-04
   4  Prefactor     .99286        .47454E-01    .46180E-01   -.13074E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.63716
  Index      = 3.47135
  Normalizat = 0.955358
  Prefactor  = 0.992862
 **********
 **   18 **HESSE 
 **********

 FCN=   7187.892     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6372        43.890        .78789E-04   -1.5452    
   2  Index         3.4713        6.6660        .71445E-02   -.31071    
   3  Normalizat    .95536        .20057        .23455E-03   -.94541    
   4  Prefactor     .99286        .21984        .25479E-03   -.92968    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.3312e-07
Minuit parameter uncertainties:
  1  16.9668
  2  7.12524
  3  0.200723
  4  0.220036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1796': 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): 102
logL (Free Index) = 7187.89212304
delta logL = 0.329560130851

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.637e+00  1.697e+01  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  3.471e+00  7.125e+00  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:  9.929e-01  2.200e-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.554e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.14
Ra Dec: 207.715 30.559
Photon Index (Free Index): 3.47 +/- 7.13
Photon Flux (Free Index): 6.06e-08 +/- 6.60e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.43e-05

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/1796/cmap_HighResolution_250473601_250732801_4FGL_J1350.8+3033_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', comment='SUCCESS', photon_flux='3.19e-08', energy_flux2='1.02e-05', photon_flux_error='3.19e-08', dlogl='3.30e-01', energy_flux='1.03e-05', photon_flux2='6.06e-08', job_status='DONE', time_completed='2021-09-08 14:55:07.736500', photon_index_error2='7.13', photon_index2='3.47', ts='1.38', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.88e-08', energy_flux_error2='1.43e-05', EG='1.00', time_epoch_completed='1631138107.74', return_code='0', job_id='1796', GAL2='0.99', EG2='0.96', return_code2='102', energy_flux_error='1.02e-05', photon_flux_error2='6.60e-08', ts2='2.14', photon_index='2.42' WHERE bin_id='43' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:55:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 1796: <4FGL_J1350.8+3033_daily_bin43> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin43> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  8 14:40:17 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:40:20 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:40:20 2021
Terminated at Wed Sep  8 14:55:08 2021
Results reported at Wed Sep  8 14:55:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin43 207.715 30.5588 250473601 250732801 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 :                                   869.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

