/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 9 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 = 7399
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1606
RA = 207.715, Dec = 30.5588
tmin = 655603201, tmax = 655862401
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='359384', job_status='RUN', time_executed='2021-12-08 00:45:45.950261', time_epoch_executed='1638953145.95' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359384/ft1_4FGL_J1350.8+3033_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359384/ft2_4FGL_J1350.8+3033_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359384/ft1_4FGL_J1350.8+3033_daily_bin1606.fits outfile=/scratch/kocevski/359384/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1606.fits ra=207.715 dec=30.5588 rad=12.0 tmin=655603201.0 tmax=655862401.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 4.27
user 4.02
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359384/ft1_filtered_4FGL_J1350.8+3033_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/359384/ft2_4FGL_J1350.8+3033_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/359384/ltcube_655603201_655862401_4FGL_J1350.8+3033_daily_bin1606.fits outfile=/scratch/kocevski/359384/expmap_655603201_655862401_4FGL_J1350.8+3033_daily_bin1606.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/359384/ltcube_655603201_655862401_4FGL_J1350.8+3033_daily_bin1606.fits
.....................!
real 192.04
user 186.35
sys 5.13

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/359384/ft1_filtered_4FGL_J1350.8+3033_daily_bin1606.fits scfile=/scratch/kocevski/359384/ft2_4FGL_J1350.8+3033_daily_bin1606.fits outfile=/scratch/kocevski/359384/cmap_655603201_655862401_4FGL_J1350.8+3033_daily_bin1606.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/359384/ft1_filtered_4FGL_J1350.8+3033_daily_bin1606.fits scfile=/scratch/kocevski/359384/ft2_4FGL_J1350.8+3033_daily_bin1606.fits outfile=/scratch/kocevski/359384/cmap_HighResolution_655603201_655862401_4FGL_J1350.8+3033_daily_bin1606.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30054E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7778       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.853       1.0000         .10000E-03   10000.    
     4 'norm      '    5.9183       1.0000         .10000E-03   10000.    
     5 'norm      '    14.859       1.0000         .10000E-03   10000.    
     6 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    29.164       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4407       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.189       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.312       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.256       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13089E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7146       1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9233       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8779       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .38843       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.3675       1.0000         .10000E-03   10000.    
    26 'norm      '    2.2634       1.0000         .10000E-03   10000.    
    27 'Prefactor '    55.737       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92231       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3378       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=   7394.636     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3746 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    3.4549       -.10854E-05** at limit **
   2  Prefactor     9.7826        21.105        .83312E-06    .15355E-03
   3  Prefactor     10.854        15.060       -.30979E-07    .67105E-05
   4  norm          5.9186        4.2687       -.97246E-07    .72638E-05
   5  norm          14.859        4.7028       -.19615E-06   -.42210E-03
   6  norm          .10000E-03    8.5484        .34028E-05** at limit **
   7  norm          29.163        18.208        .13545E-06    .33605E-04
   8  Prefactor     1.4413        2.8532       -.86941E-08   -.17466E-03
   9  Prefactor     .10000E-03    11.597        .36520E-07** at limit **
  10  norm          10.190        7.1791        .13890E-06   -.23976E-04
  11  Prefactor     13.313        38.698        .11392E-05    .25505E-05
  12  norm          .10000E-03    9.5791       -.55129E-05** at limit **
  13  Prefactor     14.243        13.903        .24227E-05    .10773E-03
  14  Prefactor     .10000E-03    81.069       -.55117E-05** at limit **
  15  Prefactor     .10000E-03    24.914        .89289E-05** at limit **
  16  Prefactor     .10000E-03    1.9532       -.80528E-07** at limit **
  17  Prefactor     6.7149        14.198        .42610E-06    .49419E-05
  18  norm          .10000E-03    12.968        .50536E-05** at limit **
  19  Prefactor     .10000E-03    5.2330        .15303E-06** at limit **
  20  norm          3.9248        4.2431        .26741E-06    .15978E-03
  21  Prefactor     .10000E-03    22.495       -.71630E-05** at limit **
  22  Prefactor     4.8975        17.038       -.62659E-05    .81194E-04
  23  Prefactor     .38531        1.8036       -.21692E-06    .99082E-05
  24  norm          .10000E-03    6.0737       -.24067E-06** at limit **
  25  norm          2.3676        2.1134       -.44655E-10   -.53190E-04
  26  norm          2.2630        2.6125        .71089E-06   -.21646E-02
  27  Prefactor     55.742        39.066        .32645E-05    .58584E-04
  28  Normalizat    .92230        .17228        .39675E-06    .23407E-03
  29  Prefactor     1.3377        .18577       -.29529E-06    .26079E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100095
  Prefactor  = 9.78261
  Prefactor  = 10.8536
  norm       = 5.91864
  norm       = 14.8586
  norm       = 0.0001
  norm       = 29.163
  Prefactor  = 1.44125
  Prefactor  = 0.0001
  norm       = 10.1905
  Prefactor  = 13.3126
  norm       = 0.0001
  Prefactor  = 14.243
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.71491
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.92478
  Prefactor  = 0.000100002
  Prefactor  = 4.89749
  Prefactor  = 0.38531
  norm       = 0.0001
  norm       = 2.36761
  norm       = 2.26304
  Prefactor  = 55.7423
  Normalizat = 0.922301
  Prefactor  = 1.33774
 **********
 **   18 **HESSE 
 **********

 FCN=   7394.636     FROM HESSE     STATUS=OK           559 CALLS     4305 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10009E-03    22.195        .29176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.7826        20.120        .12815E-03   -1.5082    
   3  Prefactor     10.854        15.045        .12161E-03   -1.5049    
   4  norm          5.9186        4.2585        .14365E-03   -1.5221    
   5  norm          14.859        4.6550        .97152E-04   -1.4937    
   6  norm          .10000E-03    8.7258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          29.163        18.207        .74189E-04   -1.4627    
   8  Prefactor     1.4413        2.7887        .18643E-03   -1.5468    
   9  Prefactor     .10000E-03    11.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.190        7.1983        .62764E-03   -1.5069    
  11  Prefactor     13.313        38.490        .10978E-03   -1.4978    
  12  norm          .10000E-03    9.7589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.243        13.959        .10608E-03   -1.4953    
  14  Prefactor     .10000E-03    84.227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9876        .11728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.7149        14.203        .15485E-03   -1.5190    
  18  norm          .10000E-03    13.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9248        4.2125        .17216E-03   -1.5312    
  21  Prefactor     .10000E-03    21.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.8975        16.832        .18213E-03   -1.5265    
  23  Prefactor     .38531        5.8832        .21194E-02   -1.5584    
  24  norm          .10000E-03    6.0871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.3676        2.1112        .11421E-03   -1.5400    
  26  norm          2.2630        6.2438        .13651E-02   -1.5407    
  27  Prefactor     55.742        39.096        .53730E-04   -1.4213    
  28  Normalizat    .92230        .20288        .26386E-03   -.95681    
  29  Prefactor     1.3377        .22118        .25720E-03   -.82192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2429e-08
Minuit parameter uncertainties:
  1  0.00290021
  2  20.1336
  3  15.0502
  4  4.2587
  5  4.65511
  6  3.43636e-05
  7  18.2109
  8  2.78892
  9  1.40246e-05
  10  7.19886
  11  38.5622
  12  2.6293e-05
  13  13.9623
  14  0.000488356
  15  0.000138989
  16  4.09292e-06
  17  14.2097
  18  6.78639e-05
  19  1.77889e-05
  20  4.21281
  21  0.000414335
  22  16.8484
  23  3.01119
  24  2.40236e-05
  25  2.1113
  26  6.24558
  27  39.1138
  28  0.20305
  29  0.221333
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  4.093e-06  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.338e+00  2.213e-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.223e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/359384/likelihoodResults_655603201_655862401_4FGL_J1350.8+3033_daily_bin1606.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): 102
logL (Free Index) = 7394.63845619
delta logL = -0.00239454859548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7394.63606172
delta logL = -8.04193405202e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4223       1.0000          .0000       10.000    
     3 'Normalizat'    .92233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3378       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=   7394.634     FROM MIGRAD    STATUS=CONVERGED    220 CALLS      371 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20070E-02    .17020        .46166E-02** at limit **
   2  Index         5.5692        2.9199        .50000        .87198E-05
   3  Normalizat    .91879        .10756E-01    .26386E-03   -.19177E-03
   4  Prefactor     1.3403        .12392E-01    .25720E-03   -.11540E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00200703
  Index      = 5.56923
  Normalizat = 0.918794
  Prefactor  = 1.34026
 **********
 **   18 **HESSE 
 **********

 FCN=   7394.634     FROM HESSE     STATUS=OK            31 CALLS      402 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20070E-02    .18693        .26224E-03   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.5692        7.6956        .19970E-01    .11409    
   3  Normalizat    .91879        .19606        .10554E-04   -.95803    
   4  Prefactor     1.3403        .21984        .51440E-04   -.82118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27925e-10
Minuit parameter uncertainties:
  1  0.037762
  2  9.6989
  3  0.196217
  4  0.219989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359384': 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) = 7394.63415507
delta logL = 0.00190657688199

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.007e-03  3.776e-02  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  5.569e+00  9.699e+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.340e+00  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.188e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.715 30.559

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/359384/cmap_HighResolution_655603201_655862401_4FGL_J1350.8+3033_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2021-12-08 01:00:48.611028', job_id='359384', GAL2='1.34', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1638954048.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='1.91e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1606' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 01:00:48 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 359384: <4FGL_J1350.8+3033_daily_bin1606> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin1606> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 00:45:18 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 00:45:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 00:45:31 2021
Terminated at Wed Dec  8 01:00:49 2021
Results reported at Wed Dec  8 01:00:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1606 207.715 30.5588 655603201 655862401 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 :                                   900.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            931 sec.

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

