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


Performing analysis on: 4FGL_J1542.3+1801_daily_bin48
RA = 235.579, Dec = 18.0322
tmin = 251769601, tmax = 252028801
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='647818', job_status='RUN', time_executed='2021-09-12 10:05:18.677544', time_epoch_executed='1631466318.68' WHERE source_name='4FGL J1542.3+1801' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647818

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647818/ft1_4FGL_J1542.3+1801_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647818/ft2_4FGL_J1542.3+1801_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647818/ft1_4FGL_J1542.3+1801_daily_bin48.fits outfile=/scratch/kocevski/647818/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin48.fits ra=235.579 dec=18.0322 rad=12.0 tmin=251769601.0 tmax=252028801.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.84
user 1.65
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647818/ft2_4FGL_J1542.3+1801_daily_bin48.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/647818/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin48.fits evtable="EVENTS" outfile="/scratch/kocevski/647818/ft1_filtered_4FGL_J1542.3+1801_daily_bin48.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.46
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647818/ft1_filtered_4FGL_J1542.3+1801_daily_bin48.fits" evtable="EVENTS" scfile=/scratch/kocevski/647818/ft2_4FGL_J1542.3+1801_daily_bin48.fits sctable="SC_DATA" outfile=/scratch/kocevski/647818/ltcube_251769601_252028801_4FGL_J1542.3+1801_daily_bin48.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/647818/ft2_4FGL_J1542.3+1801_daily_bin48.fits
.....................!
real 13.51
user 13.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647818/ft1_filtered_4FGL_J1542.3+1801_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/647818/ft2_4FGL_J1542.3+1801_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/647818/ltcube_251769601_252028801_4FGL_J1542.3+1801_daily_bin48.fits outfile=/scratch/kocevski/647818/expmap_251769601_252028801_4FGL_J1542.3+1801_daily_bin48.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/647818/ltcube_251769601_252028801_4FGL_J1542.3+1801_daily_bin48.fits
.....................!
real 157.48
user 152.99
sys 4.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 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/647818/ft1_filtered_4FGL_J1542.3+1801_daily_bin48.fits scfile=/scratch/kocevski/647818/ft2_4FGL_J1542.3+1801_daily_bin48.fits outfile=/scratch/kocevski/647818/cmap_251769601_252028801_4FGL_J1542.3+1801_daily_bin48.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.49
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647818/ft1_filtered_4FGL_J1542.3+1801_daily_bin48.fits scfile=/scratch/kocevski/647818/ft2_4FGL_J1542.3+1801_daily_bin48.fits outfile=/scratch/kocevski/647818/cmap_HighResolution_251769601_252028801_4FGL_J1542.3+1801_daily_bin48.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.50
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647818/ft1_filtered_4FGL_J1542.3+1801_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/647818/ft2_4FGL_J1542.3+1801_daily_bin48.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647818/Model_4FGL_J1542.3+1801_daily_bin48.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/647818/ft1_filtered_4FGL_J1542.3+1801_daily_bin48.fits.....................!
real 72.05
user 70.77
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647818/ft1_filtered_4FGL_J1542.3+1801_daily_bin48.fits', '/scratch/kocevski/647818/ft2_4FGL_J1542.3+1801_daily_bin48.fits', expMap='/scratch/kocevski/647818/expmap_251769601_252028801_4FGL_J1542.3+1801_daily_bin48.fits', expCube='/scratch/kocevski/647818/ltcube_251769601_252028801_4FGL_J1542.3+1801_daily_bin48.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647818/Model_4FGL_J1542.3+1801_daily_bin48.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/647818/ft1_filtered_4FGL_J1542.3+1801_daily_bin48.fits
Spacecraft file(s): /scratch/kocevski/647818/ft2_4FGL_J1542.3+1801_daily_bin48.fits
Exposure map: /scratch/kocevski/647818/expmap_251769601_252028801_4FGL_J1542.3+1801_daily_bin48.fits
Exposure cube: /scratch/kocevski/647818/ltcube_251769601_252028801_4FGL_J1542.3+1801_daily_bin48.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647818/Model_4FGL_J1542.3+1801_daily_bin48.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) = 12291.4309937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.384       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2776       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6183       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1640       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.617       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.219       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0716       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.5926       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12041E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.8207       1.0000         .10000E-03   10000.    
    15 'norm      '    6.6497       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.769       1.0000         .10000E-03   10000.    
    17 'norm      '    25.859       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3320       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91471       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=   12291.38     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2040 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5766        .61177E-07** at limit **
   2  Prefactor     11.398        20.562       -.34510E-05   -.11150E-04
   3  Prefactor     5.2810        4.4374        .27886E-07    .49628E-04
   4  norm          3.6182        .41354        .23900E-07    .10995E-03
   5  norm          .10000E-03    10.702       -.15147E-06** at limit **
   6  Prefactor     2.0523        84.905       -.20940E-04   -.31857E-04
   7  Prefactor     13.615        7.9197        .21347E-05   -.60978E-04
   8  Prefactor     10.219        22.964       -.35087E-06   -.14806E-04
   9  Prefactor     3.0712        2.2457       -.15869E-06   -.45938E-03
  10  Prefactor     .10000E-03    7.1732        .17149E-06** at limit **
  11  norm          3.5928        1.8439        .22662E-07   -.46483E-04
  12  Prefactor     .10000E-03    51.748        .98927E-05** at limit **
  13  Prefactor     .10000E-03    38.807       -.59894E-05** at limit **
  14  norm          8.8244        7.4729       -.10880E-05   -.12638E-03
  15  norm          6.6497        1.9010        .76153E-07    .11178E-03
  16  Prefactor     10.762        10.128        .88023E-05   -.82997E-04
  17  norm          25.850        15.556       -.70307E-06   -.19825E-04
  18  Prefactor     .10000E-03    8.6662       -.16466E-06** at limit **
  19  Normalizat    1.3322        .19263       -.58578E-06    .14083E-04
  20  Prefactor     .91462        .10087       -.32827E-06    .49104E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.3979
  Prefactor  = 5.28099
  norm       = 3.61816
  norm       = 0.0001
  Prefactor  = 2.05229
  Prefactor  = 13.6145
  Prefactor  = 10.2187
  Prefactor  = 3.07118
  Prefactor  = 0.0001
  norm       = 3.59283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.82444
  norm       = 6.64968
  Prefactor  = 10.7619
  norm       = 25.8504
  Prefactor  = 0.0001
  Normalizat = 1.33223
  Prefactor  = 0.914624
 **********
 **   18 **HESSE 
 **********

 FCN=   12291.38     FROM HESSE     STATUS=OK           299 CALLS     2339 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.398        20.569        .11874E-03   -1.5033    
   3  Prefactor     5.2810        4.4372        .17496E-03   -1.5248    
   4  norm          3.6182        .41439        .23270E-04   -1.5328    
   5  norm          .10000E-03    10.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0523        86.568        .27998E-03   -1.5421    
   7  Prefactor     13.615        7.9225        .10855E-03   -1.4970    
   8  Prefactor     10.219        23.021        .12535E-03   -1.5069    
   9  Prefactor     3.0712        2.2550        .13617E-03   -1.5357    
  10  Prefactor     .10000E-03    7.1809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5928        1.8423        .10429E-03   -1.5329    
  12  Prefactor     .10000E-03    53.179        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.8244        7.4771        .13496E-03   -1.5114    
  15  norm          6.6497        1.9013        .78378E-04   -1.5192    
  16  Prefactor     10.762        10.059        .12209E-03   -1.5052    
  17  norm          25.850        15.567        .78777E-04   -1.4691    
  18  Prefactor     .10000E-03    8.7854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3322        .23378        .33231E-03   -.82609    
  20  Prefactor     .91462        .12227        .21293E-03   -.95632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22755e-10
Minuit parameter uncertainties:
  1  3.91451e-06
  2  20.582
  3  4.43746
  4  0.414394
  5  2.59647e-06
  6  26.6988
  7  7.92307
  8  23.0413
  9  2.25508
  10  1.02412e-06
  11  1.84238
  12  0.000162553
  13  4.51632e-05
  14  7.4779
  15  1.90136
  16  10.061
  17  15.5692
  18  6.36226e-05
  19  0.233966
  20  0.122303
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.000e-04  1.024e-06  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.146e-01  1.223e-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.332e+00  2.340e-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: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647818/likelihoodResults_251769601_252028801_4FGL_J1542.3+1801_daily_bin48.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) = 12291.3803673
delta logL = -0.000663402179271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12291.379704
delta logL = -8.89431248652e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12291.38     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10130E-03    124.07        .18142E-02** at limit **
   2  Index         2.4362        5.6428        .50000        .11635E-04
   3  Normalizat    1.3322        .19269E-01    .33231E-03    .80738E-05
   4  Prefactor     .91462        .10524E-01    .21293E-03    .11960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101304
  Index      = 2.43619
  Normalizat = 1.33223
  Prefactor  = 0.914624
 **********
 **   18 **HESSE 
 **********

 FCN=   12291.38     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10130E-03    500.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4362        8.4604        .50000       -.53840    
   3  Normalizat    1.3322        .41569E-01    .13292E-04   -.82609    
   4  Prefactor     .91462        .22703E-01    .85172E-05   -.95632    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.91174e-08
Minuit parameter uncertainties:
  1  0.0515107
  2  1256.41
  3  0.0415696
  4  0.0227029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647818': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12291.3797037
delta logL = 1.76691173692e-07

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.013e-04  5.151e-02  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  2.436e+00  1.256e+03  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.146e-01  2.270e-02  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.332e+00  4.157e-02  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/647818/cmap_HighResolution_251769601_252028801_4FGL_J1542.3+1801_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-03', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-12 10:16:34.242035', job_id='647818', GAL2='0.91', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631466994.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='48' AND source_name='4FGL J1542.3+1801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:16:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 647818: <4FGL_J1542.3+1801_daily_bin48> in cluster <slac> Done

Job <4FGL_J1542.3+1801_daily_bin48> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 10:00:34 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 10:02:23 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:23 2021
Terminated at Sun Sep 12 10:16:35 2021
Results reported at Sun Sep 12 10:16:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1542.3+1801_daily_bin48 235.579 18.0322 251769601 252028801 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 :                                   673.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            961 sec.

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

