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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin33
RA = 207.715, Dec = 30.5588
tmin = 247881601, tmax = 248140801
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='618', job_status='RUN', time_executed='2021-09-08 14:39:00.364646', time_epoch_executed='1631137140.36' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/618/ft1_4FGL_J1350.8+3033_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/618/ft2_4FGL_J1350.8+3033_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/618/ft1_4FGL_J1350.8+3033_daily_bin33.fits outfile=/scratch/kocevski/618/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin33.fits ra=207.715 dec=30.5588 rad=12.0 tmin=247881601.0 tmax=248140801.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.45
user 1.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/618/ft1_filtered_4FGL_J1350.8+3033_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/618/ft2_4FGL_J1350.8+3033_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/618/ltcube_247881601_248140801_4FGL_J1350.8+3033_daily_bin33.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/618/ft2_4FGL_J1350.8+3033_daily_bin33.fits
.....................!
real 17.52
user 17.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/618/ft1_filtered_4FGL_J1350.8+3033_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/618/ft2_4FGL_J1350.8+3033_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/618/ltcube_247881601_248140801_4FGL_J1350.8+3033_daily_bin33.fits outfile=/scratch/kocevski/618/expmap_247881601_248140801_4FGL_J1350.8+3033_daily_bin33.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/618/ltcube_247881601_248140801_4FGL_J1350.8+3033_daily_bin33.fits
.....................!
real 192.26
user 186.48
sys 5.15

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/618/ft1_filtered_4FGL_J1350.8+3033_daily_bin33.fits scfile=/scratch/kocevski/618/ft2_4FGL_J1350.8+3033_daily_bin33.fits outfile=/scratch/kocevski/618/cmap_247881601_248140801_4FGL_J1350.8+3033_daily_bin33.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/618/ft1_filtered_4FGL_J1350.8+3033_daily_bin33.fits scfile=/scratch/kocevski/618/ft2_4FGL_J1350.8+3033_daily_bin33.fits outfile=/scratch/kocevski/618/cmap_HighResolution_247881601_248140801_4FGL_J1350.8+3033_daily_bin33.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16532E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.569       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.8475       1.0000         .10000E-03   10000.    
     5 'norm      '    5.0293       1.0000         .10000E-03   10000.    
     6 'norm      '    .50810       1.0000         .10000E-03   10000.    
     7 'norm      '    22.263       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62659       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8473       1.0000         .10000E-03   10000.    
    12 'norm      '    3.4184       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.348       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.721       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15076E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0562       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .73015E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .35431       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10401E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.7405       1.0000         .10000E-03   10000.    
    26 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96438       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0652       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=   6505.248     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3256 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9723       -.34011E-06** at limit **
   2  Prefactor     26.565        21.351        .90184E-06    .34232E-03
   3  Prefactor     .10000E-03    24.176        .14931E-05** at limit **
   4  norm          5.8463        5.9170        .10321E-05    .70961E-03
   5  norm          5.0270        4.1595        .40373E-06    .15601E-02
   6  norm          .51300        5.1813        .15460E-05    .40825E-03
   7  norm          22.257        16.549       -.45261E-07    .34045E-04
   8  Prefactor     .62536        2.6125       -.22776E-05    .12243E-02
   9  Prefactor     .10000E-03    6.9059        .10141E-05** at limit **
  10  norm          .10000E-03    3.1717       -.41170E-06** at limit **
  11  Prefactor     1.6662        306.23       -.11351E-04    .58408E-04
  12  norm          3.4210        7.7633       -.26584E-05    .24241E-03
  13  Prefactor     19.338        16.038        .44873E-06    .20126E-03
  14  Prefactor     22.734        20.041       -.87367E-06   -.24296E-04
  15  Prefactor     .10000E-03    63.243       -.76573E-06** at limit **
  16  Prefactor     7.0557        4.3845       -.68162E-07    .21175E-03
  17  Prefactor     .10000E-03    11.624        .22741E-06** at limit **
  18  norm          .10000E-03    5.8130        .38060E-07** at limit **
  19  Prefactor     .10000E-03    274.05        .75301E-04** at limit **
  20  norm          .35451        3.9526       -.77140E-06    .42975E-04
  21  Prefactor     .10000E-03    16.244        .10476E-05** at limit **
  22  Prefactor     .10000E-03    32.409       -.14629E-06** at limit **
  23  Prefactor     .10000E-03    2.5083       -.68226E-08** at limit **
  24  norm          .10000E-03    20.502       -.21253E-05** at limit **
  25  norm          1.7406        1.3645       -.33132E-07   -.11256E-04
  26  norm          .10000E-03    4.1502        .13074E-08** at limit **
  27  Prefactor     .10000E-03    13.124       -.48146E-06** at limit **
  28  Normalizat    .96455        .16199        .75528E-06    .70127E-03
  29  Prefactor     1.0650        .17648        .78386E-06    .65673E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 26.565
  Prefactor  = 0.0001
  norm       = 5.84629
  norm       = 5.02698
  norm       = 0.513
  norm       = 22.257
  Prefactor  = 0.625363
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.66624
  norm       = 3.42098
  Prefactor  = 19.338
  Prefactor  = 22.734
  Prefactor  = 0.0001
  Prefactor  = 7.0557
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.354515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.7406
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.964555
  Prefactor  = 1.06504
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.248     FROM HESSE     STATUS=OK           561 CALLS     3817 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8633        .21887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.565        21.296        .77720E-04   -1.4677    
   3  Prefactor     .10000E-03    24.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8463        5.9253        .16608E-03   -1.5224    
   5  norm          5.0270        5.8497        .11133E-03   -1.5260    
   6  norm          .51300        34.236        .27238E-02   -1.5565    
   7  norm          22.257        16.545        .84892E-04   -1.4764    
   8  Prefactor     .62536        2.6687        .23661E-03   -1.5550    
   9  Prefactor     .10000E-03    6.9571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.2036        .14036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6662        307.86        .30680E-03   -1.5450    
  12  norm          3.4210        7.7848        .10940E-02   -1.5338    
  13  Prefactor     19.338        16.079        .91055E-04   -1.4828    
  14  Prefactor     22.734        20.062        .84032E-04   -1.4754    
  15  Prefactor     .10000E-03    63.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.0557        4.3868        .12627E-03   -1.5177    
  17  Prefactor     .10000E-03    11.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.8297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.199        .89835E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .35451        4.0520        .30836E-03   -1.5589    
  21  Prefactor     .10000E-03    16.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6178        .24921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    20.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.7406        1.3646        .81285E-04   -1.5444    
  26  norm          .10000E-03    4.1765        .16046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96455        .19635        .23347E-03   -.94228    
  29  Prefactor     1.0650        .21287        .25140E-03   -.90592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2716e-09
Minuit parameter uncertainties:
  1  3.91273e-05
  2  21.302
  3  4.97449e-05
  4  5.92591
  5  5.85037
  6  8.38584
  7  16.5488
  8  2.58372
  9  0.000231398
  10  1.84026e-05
  11  45.5358
  12  7.7871
  13  16.0823
  14  20.0681
  15  7.77445e-06
  16  4.38702
  17  4.15069e-05
  18  4.85075e-06
  19  7.78297e-05
  20  2.39695
  21  3.59639e-05
  22  0.0001455
  23  1.69451e-05
  24  0.000180369
  25  1.36462
  26  5.24302e-06
  27  3.98131e-05
  28  0.196493
  29  0.213037
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  7.056e+00  4.387e+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.065e+00  2.130e-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  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 5.73e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.14e-05

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) = 6505.24688895
delta logL = 0.000945125112594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6505.24655158
delta logL = 0.00128249169575

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6505.247     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1734        5.0901        .12762E-03   -.45815E-03
   2  Index         2.3901        .50578        .67295E-02   -.93803E-04
   3  Normalizat    .96581        .18838        .23333E-03    .72159E-04
   4  Prefactor     1.0640        .21065        .25150E-03    .85389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.17345
  Index      = 2.39006
  Normalizat = 0.965806
  Prefactor  = 1.064
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.247     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1734        4.9862        .51048E-05   -1.5172    
   2  Index         2.3901        .49523        .26918E-03   -.54918    
   3  Normalizat    .96581        .18854        .93333E-05   -.94185    
   4  Prefactor     1.0640        .21081        .10060E-04   -.90625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39834e-10
Minuit parameter uncertainties:
  1  4.9865
  2  0.496345
  3  0.188667
  4  0.210974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/618': 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) = 6505.24655106
delta logL = 0.00128301410496

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  7.173e+00  4.986e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.390e+00  4.963e-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.064e+00  2.110e-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.658e-01  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 207.715 30.559
Photon Index (Free Index): 2.39 +/- 0.50
Photon Flux (Free Index): 5.64e-08 +/- 3.89e-08
Energy Flux (Free Index): 1.87e-05 +/- 1.35e-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/618/cmap_HighResolution_247881601_248140801_4FGL_J1350.8+3033_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.73e-08', energy_flux2='1.87e-05', photon_flux_error='3.56e-08', dlogl='1.28e-03', energy_flux='1.84e-05', photon_flux2='5.64e-08', job_status='DONE', time_completed='2021-09-08 14:50:16.605396', photon_index_error2='0.50', photon_index2='2.39', ts='4.70', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.96', time_epoch_completed='1631137816.61', return_code='0', job_id='618', GAL2='1.06', EG2='0.97', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.89e-08', ts2='4.69', photon_index='2.42' WHERE bin_id='33' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:50:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 618: <4FGL_J1350.8+3033_daily_bin33> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin33> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:35:36 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:35:48 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:35:48 2021
Terminated at Wed Sep  8 14:50:17 2021
Results reported at Wed Sep  8 14:50:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin33 207.715 30.5588 247881601 248140801 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            881 sec.

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

