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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin329
RA = 207.715, Dec = 30.5588
tmin = 324604801, tmax = 324864001
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='3729', job_status='RUN', time_executed='2021-09-08 14:47:14.112965', time_epoch_executed='1631137634.11' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3729/ft1_4FGL_J1350.8+3033_daily_bin329.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3729/ft2_4FGL_J1350.8+3033_daily_bin329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3729/ft1_4FGL_J1350.8+3033_daily_bin329.fits outfile=/scratch/kocevski/3729/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin329.fits ra=207.715 dec=30.5588 rad=12.0 tmin=324604801.0 tmax=324864001.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 9.54
user 9.13
sys 0.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3729/ft1_filtered_4FGL_J1350.8+3033_daily_bin329.fits" evtable="EVENTS" scfile=/scratch/kocevski/3729/ft2_4FGL_J1350.8+3033_daily_bin329.fits sctable="SC_DATA" outfile=/scratch/kocevski/3729/ltcube_324604801_324864001_4FGL_J1350.8+3033_daily_bin329.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/3729/ft2_4FGL_J1350.8+3033_daily_bin329.fits
.....................!
real 15.97
user 15.41
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3729/ft1_filtered_4FGL_J1350.8+3033_daily_bin329.fits evtable="EVENTS" scfile=/scratch/kocevski/3729/ft2_4FGL_J1350.8+3033_daily_bin329.fits sctable="SC_DATA" expcube=/scratch/kocevski/3729/ltcube_324604801_324864001_4FGL_J1350.8+3033_daily_bin329.fits outfile=/scratch/kocevski/3729/expmap_324604801_324864001_4FGL_J1350.8+3033_daily_bin329.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/3729/ltcube_324604801_324864001_4FGL_J1350.8+3033_daily_bin329.fits
.....................!
real 192.14
user 185.44
sys 4.71

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/3729/ft1_filtered_4FGL_J1350.8+3033_daily_bin329.fits scfile=/scratch/kocevski/3729/ft2_4FGL_J1350.8+3033_daily_bin329.fits outfile=/scratch/kocevski/3729/cmap_324604801_324864001_4FGL_J1350.8+3033_daily_bin329.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3729/ft1_filtered_4FGL_J1350.8+3033_daily_bin329.fits scfile=/scratch/kocevski/3729/ft2_4FGL_J1350.8+3033_daily_bin329.fits outfile=/scratch/kocevski/3729/cmap_HighResolution_324604801_324864001_4FGL_J1350.8+3033_daily_bin329.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0642       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.601       1.0000         .10000E-03   10000.    
     4 'norm      '    8.1280       1.0000         .10000E-03   10000.    
     5 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16281E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0494       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .33789E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    98.087       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13966E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.732       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.290       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2939       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.6403       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7424       1.0000         .10000E-03   10000.    
    24 'norm      '    7.9796       1.0000         .10000E-03   10000.    
    25 'norm      '    5.1135       1.0000         .10000E-03   10000.    
    26 'norm      '    21.954       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .67629       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0487       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=   2633.177     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3708 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0660        7.9392        .18485E-06   -.75127E-04
   2  Prefactor     .10000E-03    36.484       -.18494E-06** at limit **
   3  Prefactor     35.602        34.883        .50772E-07   -.83111E-04
   4  norm          8.1296        10.016        .36412E-06   -.30810E-03
   5  norm          .10000E-03    3.9571        .45921E-07** at limit **
   6  norm          .10000E-03    6.8959       -.15368E-06** at limit **
   7  norm          .10000E-03    15.000        .23759E-06** at limit **
   8  Prefactor     .10001E-03    4.9425        .20464E-05** at limit **
   9  Prefactor     .10000E-03    7.0802        .23269E-06** at limit **
  10  norm          .10000E-03    5.8809       -.45146E-06** at limit **
  11  Prefactor     .10000E-03    41.779        .14504E-06** at limit **
  12  norm          5.0494        11.699        .62311E-05    .49927E-04
  13  Prefactor     .10000E-03    240.50        .12916E-04** at limit **
  14  Prefactor     98.129        54.345        .27202E-06    .90387E-04
  15  Prefactor     .10011E-03    468.76       -.84961E-05** at limit **
  16  Prefactor     10.736        10.790        .43978E-06   -.20873E-03
  17  Prefactor     18.294        21.298        .30507E-06   -.15147E-04
  18  norm          2.2903        38.504        .15314E-05    .69316E-05
  19  Prefactor     .10000E-03    8.9182       -.12659E-06** at limit **
  20  norm          9.6399        7.1989        .13463E-06   -.29597E-04
  21  Prefactor     .10000E-03    13.568       -.15421E-06** at limit **
  22  Prefactor     .10000E-03    12.583       -.10858E-06** at limit **
  23  Prefactor     1.7408        4.3745        .60747E-06    .23909E-04
  24  norm          7.9802        14.909       -.82609E-07   -.43563E-05
  25  norm          5.1129        3.6125        .59962E-07   -.60240E-06
  26  norm          21.952        16.331        .29878E-06   -.41297E-05
  27  Prefactor     .10000E-03    161.06        .89025E-06** at limit **
  28  Normalizat    .67600        .26853       -.46189E-05   -.15532E-03
  29  Prefactor     1.0491        .26846        .11259E-05   -.22298E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.06604
  Prefactor  = 0.0001
  Prefactor  = 35.6023
  norm       = 8.12957
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.04937
  Prefactor  = 0.0001
  Prefactor  = 98.1295
  Prefactor  = 0.000100106
  Prefactor  = 10.7362
  Prefactor  = 18.2937
  norm       = 2.29035
  Prefactor  = 0.0001
  norm       = 9.63985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74077
  norm       = 7.98023
  norm       = 5.11285
  norm       = 21.9516
  Prefactor  = 0.000100002
  Normalizat = 0.675998
  Prefactor  = 1.04914
 **********
 **   18 **HESSE 
 **********

 FCN=   2633.177     FROM HESSE     STATUS=OK           551 CALLS     4259 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0660        7.9232        .15955E-03   -1.5215    
   2  Prefactor     .10000E-03    36.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.602        34.950        .67165E-04   -1.4514    
   4  norm          8.1296        9.8699        .14063E-03   -1.5138    
   5  norm          .10000E-03    4.0223        .99573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.9479        .13156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    15.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    10.166        .20506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0845        .13338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.9174        .12172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    41.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0494        11.834        .89471E-03   -1.5259    
  13  Prefactor     .10000E-03    248.22        .42678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     98.129        54.197        .20294E-03   -1.3724    
  15  Prefactor     .10011E-03    471.44        .20526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.736        10.879        .12230E-03   -1.5053    
  17  Prefactor     18.294        21.312        .93653E-04   -1.4852    
  18  norm          2.2903        38.684        .27100E-03   -1.5405    
  19  Prefactor     .10000E-03    8.9199        .14968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.6399        7.1902        .11200E-03   -1.5087    
  21  Prefactor     .10000E-03    13.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.604        .17777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7408        4.3340        .16146E-03   -1.5444    
  24  norm          7.9802        14.890        .14194E-03   -1.5143    
  25  norm          5.1129        3.6180        .79326E-04   -1.5256    
  26  norm          21.952        16.380        .85485E-04   -1.4771    
  27  Prefactor     .10000E-03    161.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .67600        .30896        .26869E-03   -1.0485    
  29  Prefactor     1.0491        .31174        .24050E-03   -.91109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59848e-09
Minuit parameter uncertainties:
  1  7.92458
  2  0.000113908
  3  34.9699
  4  9.87191
  5  2.54708e-06
  6  3.82927e-05
  7  6.82676e-05
  8  0.000655462
  9  4.75651e-05
  10  6.29071e-05
  11  8.40165e-05
  12  11.8392
  13  0.000471907
  14  54.2241
  15  0.0142745
  16  10.8806
  17  21.321
  18  18.8394
  19  3.59015e-05
  20  7.19086
  21  3.94507e-05
  22  2.69829e-05
  23  4.33475
  24  14.8967
  25  3.61816
  26  16.3838
  27  0.00116583
  28  0.309752
  29  0.312285
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.074e+01  1.088e+01  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.049e+00  3.123e-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:  6.760e-01  3.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 8.71e-08 +/- 8.82e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 2.84e-05

TS (Fixed Index): 1.34
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 2.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/3729/likelihoodResults_324604801_324864001_4FGL_J1350.8+3033_daily_bin329.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) = 2631.22168349
delta logL = 1.95550017058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2631.21218822
delta logL = 1.96499543532

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4513       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0649       1.0000          .0000       10.000    
     3 'Normalizat'    .49886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1815       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=   2631.212     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      260 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4432        22.254        .65317E-02   -.44963E-04
   2  Index         4.0670        3.2186        .67893E-01    .40098E-04
   3  Normalizat    .49893        .10324        .69653E-01    .41393E-04
   4  Prefactor     1.1813        .11418        .51581E-01   -.20151E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.44317
  Index      = 4.067
  Normalizat = 0.498931
  Prefactor  = 1.18127
 **********
 **   18 **HESSE 
 **********

 FCN=   2631.212     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4432        7.8145        .38312E-04   -1.5395    
   2  Index         4.0670        1.8736        .29003E-02   -.18770    
   3  Normalizat    .49893        .29727        .30834E-03   -1.1246    
   4  Prefactor     1.1813        .31687        .22803E-03   -.86910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72679e-11
Minuit parameter uncertainties:
  1  7.8178
  2  1.9223
  3  0.29822
  4  0.317377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3729': 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) = 2631.21218595
delta logL = 1.96499771235

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.443e+00  7.818e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  4.067e+00  1.922e+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:  1.181e+00  3.174e-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:  4.989e-01  2.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.03
Ra Dec: 207.715 30.559
Photon Index (Free Index): 4.07 +/- 1.92
Photon Flux (Free Index): 2.35e-07 +/- 1.26e-07
Energy Flux (Free Index): 3.48e-05 +/- 2.16e-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/3729/cmap_HighResolution_324604801_324864001_4FGL_J1350.8+3033_daily_bin329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-02', comment='SUCCESS', photon_flux='8.71e-08', energy_flux2='3.48e-05', photon_flux_error='8.82e-08', dlogl='1.96e+00', energy_flux='2.80e-05', photon_flux2='2.35e-07', job_status='DONE', time_completed='2021-09-08 14:56:29.430956', photon_index_error2='1.92', photon_index2='4.07', ts='1.34', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='2.53e-07', energy_flux_error2='2.16e-05', EG='0.68', time_epoch_completed='1631138189.43', return_code='0', job_id='3729', GAL2='1.18', EG2='0.50', return_code2='0', energy_flux_error='2.84e-05', photon_flux_error2='1.26e-07', ts2='6.03', photon_index='2.42' WHERE bin_id='329' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 3729: <4FGL_J1350.8+3033_daily_bin329> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin329> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:45:20 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:47:02 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:47:02 2021
Terminated at Wed Sep  8 14:56:30 2021
Results reported at Wed Sep  8 14:56:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin329 207.715 30.5588 324604801 324864001 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 :                                   547.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            670 sec.

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

