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


Performing analysis on: 4FGL_J0742.6+5443_daily_bin653
RA = 115.672, Dec = 54.727
tmin = 408585601, tmax = 408844801
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='694937', job_status='RUN', time_executed='2021-08-28 02:35:49.380223', time_epoch_executed='1630143349.38' WHERE source_name='4FGL J0742.6+5443' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/694937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/694937/ft1_4FGL_J0742.6+5443_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/694937/ft2_4FGL_J0742.6+5443_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/694937/ft1_4FGL_J0742.6+5443_daily_bin653.fits outfile=/scratch/kocevski/694937/ft1_filteredMKT_4FGL_J0742.6+5443_daily_bin653.fits ra=115.672 dec=54.727 rad=12.0 tmin=408585601.0 tmax=408844801.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.65
user 4.08
sys 0.54

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/694937/ft2_4FGL_J0742.6+5443_daily_bin653.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/694937/ft2_4FGL_J0742.6+5443_daily_bin653.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/694937/ft1_filteredMKT_4FGL_J0742.6+5443_daily_bin653.fits evtable="EVENTS" outfile="/scratch/kocevski/694937/ft1_filtered_4FGL_J0742.6+5443_daily_bin653.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.84
user 0.33
sys 0.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/694937/ft1_filtered_4FGL_J0742.6+5443_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/694937/ft2_4FGL_J0742.6+5443_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/694937/ltcube_408585601_408844801_4FGL_J0742.6+5443_daily_bin653.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/694937/ft2_4FGL_J0742.6+5443_daily_bin653.fits
.....................!
real 12.40
user 11.54
sys 0.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/694937/ft1_filtered_4FGL_J0742.6+5443_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/694937/ft2_4FGL_J0742.6+5443_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/694937/ltcube_408585601_408844801_4FGL_J0742.6+5443_daily_bin653.fits outfile=/scratch/kocevski/694937/expmap_408585601_408844801_4FGL_J0742.6+5443_daily_bin653.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/694937/ltcube_408585601_408844801_4FGL_J0742.6+5443_daily_bin653.fits
.....................!
real 193.70
user 187.14
sys 5.69

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

Setting source of interest to:
4FGL J0742.6+5443 @ 115.672 54.727

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/694937/ft1_filtered_4FGL_J0742.6+5443_daily_bin653.fits scfile=/scratch/kocevski/694937/ft2_4FGL_J0742.6+5443_daily_bin653.fits outfile=/scratch/kocevski/694937/cmap_408585601_408844801_4FGL_J0742.6+5443_daily_bin653.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=115.672 yref=54.727 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.90
user 0.35
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/694937/ft1_filtered_4FGL_J0742.6+5443_daily_bin653.fits scfile=/scratch/kocevski/694937/ft2_4FGL_J0742.6+5443_daily_bin653.fits outfile=/scratch/kocevski/694937/cmap_HighResolution_408585601_408844801_4FGL_J0742.6+5443_daily_bin653.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=115.672 yref=54.727 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.88
user 0.39
sys 0.48

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/694937/ft1_filtered_4FGL_J0742.6+5443_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/694937/ft2_4FGL_J0742.6+5443_daily_bin653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/694937/Model_4FGL_J0742.6+5443_daily_bin653.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/694937/ft1_filtered_4FGL_J0742.6+5443_daily_bin653.fits......................!
real 33.61
user 31.81
sys 1.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/694937/ft1_filtered_4FGL_J0742.6+5443_daily_bin653.fits', '/scratch/kocevski/694937/ft2_4FGL_J0742.6+5443_daily_bin653.fits', expMap='/scratch/kocevski/694937/expmap_408585601_408844801_4FGL_J0742.6+5443_daily_bin653.fits', expCube='/scratch/kocevski/694937/ltcube_408585601_408844801_4FGL_J0742.6+5443_daily_bin653.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/694937/Model_4FGL_J0742.6+5443_daily_bin653.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0742.6+5443'

4FGL J0742.6+5443
   Spectrum: LogParabola
285         norm:  1.016e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
286        alpha:  2.224e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  8.463e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  6.024e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/694937/ft1_filtered_4FGL_J0742.6+5443_daily_bin653.fits
Spacecraft file(s): /scratch/kocevski/694937/ft2_4FGL_J0742.6+5443_daily_bin653.fits
Exposure map: /scratch/kocevski/694937/expmap_408585601_408844801_4FGL_J0742.6+5443_daily_bin653.fits
Exposure cube: /scratch/kocevski/694937/ltcube_408585601_408844801_4FGL_J0742.6+5443_daily_bin653.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/694937/Model_4FGL_J0742.6+5443_daily_bin653.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) = 2247.68572248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.535       1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.795       1.0000         .10000E-03   10000.    
     3 'norm      '    20.098       1.0000         .10000E-03   10000.    
     4 'norm      '    4.5683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14287E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3997       1.0000         .10000E-03   10000.    
     9 'norm      '    3.6752       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7356       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17279E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0061       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8996       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.2907       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1938       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.1564       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.597       1.0000         .10000E-03   10000.    
    28 'norm      '    34.391       1.0000         .10000E-03   10000.    
    29 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1427       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .52540       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2247.670     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     4373 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.535        58.204        .36078E-06    .83854E-05
   2  Prefactor     67.735        93.065       -.81823E-06   -.25780E-04
   3  norm          20.100        10.052        .12040E-07    .19502E-05
   4  norm          4.5715        9.4885        .22227E-06    .38517E-05
   5  Prefactor     .10002E-03    332.37       -.15723E-05** at limit **
   6  Prefactor     8.6697        10.295        .18623E-07    .32464E-05
   7  Prefactor     .10000E-03    62.170        .60975E-06** at limit **
   8  Prefactor     3.3985        100.17       -.13838E-04    .84111E-05
   9  norm          3.6753        7.5774        .21956E-06   -.17156E-05
  10  Prefactor     .10000E-03    16.929        .21534E-06** at limit **
  11  Prefactor     4.7355        59.395        .37694E-06   -.51619E-05
  12  Prefactor     .10000E-03    232.72        .13596E-05** at limit **
  13  norm          .10000E-03    .86310        .32877E-06** at limit **
  14  Prefactor     .10000E-03    6.5086        .35664E-07** at limit **
  15  Prefactor     .10000E-03    15.894        .12625E-06** at limit **
  16  norm          .10000E-03    1.5192        .34978E-07** at limit **
  17  Prefactor     .10000E-03    4.5188        .31806E-07** at limit **
  18  Prefactor     2.9797        122.91        .12250E-05   -.62112E-06
  19  norm          2.9006        5.4571        .24077E-06   -.17171E-04
  20  Prefactor     .10000E-03    30.951        .14695E-06** at limit **
  21  Prefactor     .10000E-03    32.771       -.11510E-06** at limit **
  22  norm          .10000E-03    5.0888        .23180E-07** at limit **
  23  norm          4.2925        4.2601        .55665E-07   -.28467E-04
  24  Prefactor     3.1945        3.5534       -.45833E-07   -.99636E-05
  25  Prefactor     5.1575        12.721        .16127E-06   -.66904E-05
  26  Prefactor     .10000E-03    5.8502       -.15615E-07** at limit **
  27  Prefactor     11.606        21.840       -.21404E-07   -.74244E-05
  28  norm          34.396        24.118        .10395E-07   -.56709E-05
  29  norm          .10000E-03    9.1255       -.15688E-06** at limit **
  30  Prefactor     .10000E-03    25.624       -.26562E-06** at limit **
  31  Normalizat    1.1423        .32373        .30374E-06   -.55782E-04
  32  Prefactor     .52555        .18608       -.10488E-05   -.11738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.5353
  Prefactor  = 67.7346
  norm       = 20.1001
  norm       = 4.57146
  Prefactor  = 0.000100018
  Prefactor  = 8.66972
  Prefactor  = 0.0001
  Prefactor  = 3.39849
  norm       = 3.67525
  Prefactor  = 0.0001
  Prefactor  = 4.73553
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.97967
  norm       = 2.90062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.29248
  Prefactor  = 3.19453
  Prefactor  = 5.15753
  Prefactor  = 0.0001
  Prefactor  = 11.6056
  norm       = 34.3958
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14234
  Prefactor  = 0.525547
 **********
 **   18 **HESSE 
 **********

 FCN=   2247.670     FROM HESSE     STATUS=OK           659 CALLS     5032 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.535        58.347        .48138E-04   -1.4038    
   2  Prefactor     67.735        93.092        .48747E-04   -1.4060    
   3  norm          20.100        10.045        .89342E-04   -1.4811    
   4  norm          4.5715        9.4316        .18414E-03   -1.5280    
   5  Prefactor     .10002E-03    335.81        .36377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.6697        10.256        .13614E-03   -1.5119    
   7  Prefactor     .10000E-03    62.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3985        99.313        .21942E-03   -1.5339    
   9  norm          3.6753        7.5686        .18090E-03   -1.5325    
  10  Prefactor     .10000E-03    16.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7355        59.523        .18490E-03   -1.5273    
  12  Prefactor     .10000E-03    233.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0896        .85232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5120        .11813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5225        .57070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5205        .98436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9797        121.26        .23410E-03   -1.5363    
  19  norm          2.9006        5.4768        .13664E-03   -1.5367    
  20  Prefactor     .10000E-03    30.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.1102        .10429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.2925        4.2514        .92877E-04   -1.5294    
  24  Prefactor     3.1945        3.5144        .82480E-04   -1.5350    
  25  Prefactor     5.1575        12.706        .17704E-03   -1.5254    
  26  Prefactor     .10000E-03    5.8867        .11195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.606        21.993        .11764E-03   -1.5026    
  28  norm          34.396        24.200        .68333E-04   -1.4534    
  29  norm          .10000E-03    9.1372        .13976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    25.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1423        .37798        .24656E-03   -.88404    
  32  Prefactor     .52555        .21419        .21963E-03   -1.1082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14786e-10
Minuit parameter uncertainties:
  1  58.3953
  2  93.2929
  3  10.0455
  4  9.43468
  5  0.00496594
  6  10.2581
  7  5.03979e-05
  8  36.81
  9  7.57055
  10  3.59935e-05
  11  33.6192
  12  0.00194716
  13  5.71337e-07
  14  3.87541e-07
  15  9.05269e-07
  16  3.55654e-07
  17  3.55007e-07
  18  38.0992
  19  5.4777
  20  3.03695e-05
  21  5.10509e-06
  22  1.76607e-07
  23  4.25165
  24  3.51458
  25  12.7127
  26  7.31145e-07
  27  22.0087
  28  24.2065
  29  2.19324e-06
  30  9.31786e-06
  31  0.378883
  32  0.214525
Done.

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

Extracting fit parameters...

4FGL J0742.6+5443
   Spectrum: LogParabola
285         norm:  1.000e-04  5.713e-07  1.000e-04  1.000e+04 ( 1.000e-11)
286        alpha:  2.224e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  8.463e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  6.024e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  5.255e-01  2.145e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.142e+00  3.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 115.672 54.727
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/694937/likelihoodResults_408585601_408844801_4FGL_J0742.6+5443_daily_bin653.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) = 2247.67420344
delta logL = -0.00430225698119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2247.66605118
delta logL = 0.00385000246524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14008E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1216       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52857       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2247.666     FROM MIGRAD    STATUS=FAILED        81 CALLS      320 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14009E-01    92.376        .35972E-03    .58628E-02
   2  alpha         4.1216        3.3832        .13735E-01    .68642E-06
   3  Normalizat    1.1340        .40292        .24740E-03    .26285E-04
   4  Prefactor     .52857        .17394        .21907E-03   -.20758E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2247.666     FROM SIMPLEX   STATUS=UNCHANGED    112 CALLS      432 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14009E-01    92.376        .61525E-04    .58628E-02
   2  alpha         4.1216        3.3832        .71002E-02    .68642E-06
   3  Normalizat    1.1340        .40292        .41530E-03    .26285E-04
   4  Prefactor     .52857        .17394        .10820E-03   -.20758E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2247.666     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      467 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14009E-01    1.2617        .71945E-04    .29708E-04
   2  alpha         4.1216        2.7166        .27470E-02   -.10140E-06
   3  Normalizat    1.1340        .34237        .98960E-05    .25733E-04
   4  Prefactor     .52857        .20912        .87627E-05   -.20758E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0140093
  alpha      = 4.12157
  Normalizat = 1.13396
  Prefactor  = 0.52857
 **********
 **   18 **HESSE 
 **********

 FCN=   2247.666     FROM HESSE     STATUS=OK            25 CALLS      492 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14009E-01    .99461        .28778E-05   -1.5684    
   2  alpha         4.1216        2.7904        .10988E-03    .70578    
   3  Normalizat    1.1340        .34123        .19792E-05   -.88669    
   4  Prefactor     .52857        .20867        .17525E-05   -1.1068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0945e-11
Minuit parameter uncertainties:
  1  0.235243
  2  8.13772
  3  0.341895
  4  0.208975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/694937': 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) = 2247.66605118
delta logL = 0.00385000253755

Extracting fit parameters...

4FGL J0742.6+5443
   Spectrum: LogParabola
285         norm:  1.401e-02  2.352e-01  1.000e-04  1.000e+04 ( 1.000e-11)
286        alpha:  4.122e+00  8.138e+00  0.000e+00  5.000e+00 ( 1.000e+00)
287         beta:  8.463e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  6.024e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  5.286e-01  2.090e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.134e+00  3.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 115.672 54.727

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/694937/cmap_HighResolution_408585601_408844801_4FGL_J0742.6+5443_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-05', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-08-28 02:46:10.187987', job_id='694937', GAL2='0.53', fit_tolerance='1e-08', EG2='1.13', EG='1.14', time_epoch_completed='1630143970.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='3.85e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='653' AND source_name='4FGL J0742.6+5443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 02:46:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 694937: <4FGL_J0742.6+5443_daily_bin653> in cluster <slac> Done

Job <4FGL_J0742.6+5443_daily_bin653> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 28 02:35:27 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 02:35:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 02:35:28 2021
Terminated at Sat Aug 28 02:46:10 2021
Results reported at Sat Aug 28 02:46:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0742.6+5443_daily_bin653 115.672 54.727 408585601 408844801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0742.6+5443 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   615.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            643 sec.

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

