/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 1 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_J1542.3+1801_daily_bin33
RA = 235.579, Dec = 18.0322
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='647795', job_status='RUN', time_executed='2021-09-12 10:02:26.714386', time_epoch_executed='1631466146.71' WHERE source_name='4FGL J1542.3+1801' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647795

Creating custom pfile directory:
/scratch/kocevski/647795/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/647795/ft1_4FGL_J1542.3+1801_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/647795/ft2_4FGL_J1542.3+1801_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647795/ft1_4FGL_J1542.3+1801_daily_bin33.fits outfile=/scratch/kocevski/647795/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin33.fits ra=235.579 dec=18.0322 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.24
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/647795/ft2_4FGL_J1542.3+1801_daily_bin33.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647795/ft2_4FGL_J1542.3+1801_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/647795/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin33.fits evtable="EVENTS" outfile="/scratch/kocevski/647795/ft1_filtered_4FGL_J1542.3+1801_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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647795/ft1_filtered_4FGL_J1542.3+1801_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/647795/ft2_4FGL_J1542.3+1801_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/647795/ltcube_247881601_248140801_4FGL_J1542.3+1801_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/647795/ft2_4FGL_J1542.3+1801_daily_bin33.fits
.....................!
real 16.55
user 16.06
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647795/ft1_filtered_4FGL_J1542.3+1801_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/647795/ft2_4FGL_J1542.3+1801_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/647795/ltcube_247881601_248140801_4FGL_J1542.3+1801_daily_bin33.fits outfile=/scratch/kocevski/647795/expmap_247881601_248140801_4FGL_J1542.3+1801_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/647795/ltcube_247881601_248140801_4FGL_J1542.3+1801_daily_bin33.fits
.....................!
real 192.57
user 186.29
sys 4.93

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1542.3+1801 @ 235.579 18.0322

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/647795/ft1_filtered_4FGL_J1542.3+1801_daily_bin33.fits scfile=/scratch/kocevski/647795/ft2_4FGL_J1542.3+1801_daily_bin33.fits outfile=/scratch/kocevski/647795/cmap_247881601_248140801_4FGL_J1542.3+1801_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=235.579 yref=18.0322 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647795/ft1_filtered_4FGL_J1542.3+1801_daily_bin33.fits scfile=/scratch/kocevski/647795/ft2_4FGL_J1542.3+1801_daily_bin33.fits outfile=/scratch/kocevski/647795/cmap_HighResolution_247881601_248140801_4FGL_J1542.3+1801_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=235.579 yref=18.0322 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647795/ft1_filtered_4FGL_J1542.3+1801_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/647795/ft2_4FGL_J1542.3+1801_daily_bin33.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647795/Model_4FGL_J1542.3+1801_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/647795/ft1_filtered_4FGL_J1542.3+1801_daily_bin33.fits.....................!
real 64.79
user 63.41
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647795/ft1_filtered_4FGL_J1542.3+1801_daily_bin33.fits', '/scratch/kocevski/647795/ft2_4FGL_J1542.3+1801_daily_bin33.fits', expMap='/scratch/kocevski/647795/expmap_247881601_248140801_4FGL_J1542.3+1801_daily_bin33.fits', expCube='/scratch/kocevski/647795/ltcube_247881601_248140801_4FGL_J1542.3+1801_daily_bin33.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647795/Model_4FGL_J1542.3+1801_daily_bin33.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1542.3+1801'

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  4.061e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/647795/ft1_filtered_4FGL_J1542.3+1801_daily_bin33.fits
Spacecraft file(s): /scratch/kocevski/647795/ft2_4FGL_J1542.3+1801_daily_bin33.fits
Exposure map: /scratch/kocevski/647795/expmap_247881601_248140801_4FGL_J1542.3+1801_daily_bin33.fits
Exposure cube: /scratch/kocevski/647795/ltcube_247881601_248140801_4FGL_J1542.3+1801_daily_bin33.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647795/Model_4FGL_J1542.3+1801_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) = 8778.73923941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3237       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5898       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0884       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9368       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.578       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    128.79       1.0000         .10000E-03   10000.    
    14 'norm      '    34.203       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4239       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11461E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0399       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97744       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8778.706     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2064 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3303        22.229        .10357E-05   -.21190E-04
   2  Prefactor     .10000E-03    163.01        .35954E-05** at limit **
   3  Prefactor     2.5898        5.3848       -.17205E-05    .56021E-04
   4  norm          2.0884        .37178        .84251E-08   -.11065E-03
   5  norm          .10000E-03    14.154        .25684E-06** at limit **
   6  Prefactor     .10000E-03    23.937        .10284E-05** at limit **
   7  Prefactor     4.9366        7.9688       -.96732E-06    .40874E-04
   8  Prefactor     22.573        33.941       -.19829E-06    .51465E-05
   9  Prefactor     .10000E-03    .70775       -.74027E-07** at limit **
  10  Prefactor     .10000E-03    21.582       -.27366E-05** at limit **
  11  norm          .10000E-03    1.1479       -.48239E-07** at limit **
  12  Prefactor     .10000E-03    25.764        .27811E-05** at limit **
  13  Prefactor     128.76        69.153        .90957E-06    .13353E-04
  14  norm          34.202        11.310       -.15251E-07    .24190E-04
  15  norm          5.4240        1.8473        .27753E-07   -.44713E-05
  16  Prefactor     .10000E-03    11.865       -.68612E-06** at limit **
  17  norm          .10000E-03    34.578        .81666E-05** at limit **
  18  Prefactor     .10000E-03    4.6203       -.17516E-06** at limit **
  19  Normalizat    1.0401        .20909        .26116E-06    .72164E-04
  20  Prefactor     .97733        .11244        .32404E-06    .14377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.33033
  Prefactor  = 0.000100001
  Prefactor  = 2.5898
  norm       = 2.08844
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.9366
  Prefactor  = 22.5727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 128.765
  norm       = 34.2019
  norm       = 5.42397
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04011
  Prefactor  = 0.977326
 **********
 **   18 **HESSE 
 **********

 FCN=   8778.706     FROM HESSE     STATUS=OK           293 CALLS     2357 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3303        22.163        .14821E-03   -1.5166    
   2  Prefactor     .10000E-03    164.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5898        5.4039        .25356E-03   -1.5386    
   4  norm          2.0884        .37210        .23206E-04   -1.5419    
   5  norm          .10000E-03    14.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9366        7.9894        .18101E-03   -1.5264    
   8  Prefactor     22.573        34.232        .84297E-04   -1.4757    
   9  Prefactor     .10000E-03    .71834        .76958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1651        .97971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     128.76        69.247        .17738E-03   -1.3434    
  14  norm          34.202        11.298        .68520E-04   -1.4538    
  15  norm          5.4240        1.8477        .71510E-04   -1.5242    
  16  Prefactor     .10000E-03    12.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    33.572        .38430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0401        .25503        .33685E-03   -.91699    
  20  Prefactor     .97733        .13694        .19325E-03   -.93489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85853e-11
Minuit parameter uncertainties:
  1  22.1874
  2  0.000888403
  3  5.40497
  4  0.372097
  5  6.46107e-07
  6  5.9473e-06
  7  7.99114
  8  34.2616
  9  1.45177e-07
  10  2.95011e-05
  11  1.54937e-06
  12  7.48416e-06
  13  69.291
  14  11.2986
  15  1.84777
  16  4.36488e-06
  17  0.000126985
  18  2.45465e-06
  19  0.255334
  20  0.136984
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.000e-04  2.950e-05  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.773e-01  1.370e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.040e+00  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 235.579 18.032
Photon Flux Upper Limit: 8.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647795/likelihoodResults_247881601_248140801_4FGL_J1542.3+1801_daily_bin33.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) = 8778.70613658
delta logL = -0.000218517554458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8778.7059189
delta logL = -8.42448571348e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3939       1.0000          .0000       10.000    
     3 'Normalizat'    1.0401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97733       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8778.706     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      247 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    326.09        .90712E-02** at limit **
   2  Index         3.3765        8.2572        .50000        .10473E-04
   3  Normalizat    1.0401        .23478E-01    .76110E-01    .12653E-03
   4  Prefactor     .97733        .13162E-01    .45983E-01    .12675E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.3765
  Normalizat = 1.04011
  Prefactor  = 0.977327
 **********
 **   18 **HESSE 
 **********

 FCN=   8778.706     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3765        6.6184        .50000       -.33069    
   3  Normalizat    1.0401        .24034        .33685E-03   -.91699    
   4  Prefactor     .97733        .13512        .19325E-03   -.93489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23552e-10
Minuit parameter uncertainties:
  1  0.000292317
  2  4.74392
  3  0.240595
  4  0.135171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647795': 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) = 8778.70591886
delta logL = -7.99025656306e-07

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.000e-04  2.923e-04  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  3.377e+00  4.744e+00  0.000e+00  1.000e+01 (-1.000e+00)
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.773e-01  1.352e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.040e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.579 18.032

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/647795/cmap_HighResolution_247881601_248140801_4FGL_J1542.3+1801_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', job_status='DONE', photon_flux_upper_limit='8.66e-08', time_completed='2021-09-12 10:13:36.357015', job_id='647795', GAL2='0.98', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631466816.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-7.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='33' AND source_name='4FGL J1542.3+1801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:13:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 647795: <4FGL_J1542.3+1801_daily_bin33> in cluster <slac> Done

Job <4FGL_J1542.3+1801_daily_bin33> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 10:00:32 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 10:02:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 10:02:15 2021
Terminated at Sun Sep 12 10:13:36 2021
Results reported at Sun Sep 12 10:13:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1542.3+1801_daily_bin33 235.579 18.0322 247881601 248140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1542.3+1801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            784 sec.

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

