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


Performing analysis on: 4FGL_J0754.7+4823_monthly_bin114
RA = 118.693, Dec = 48.3932
tmin = 532483201, tmax = 535075201
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='110555', job_status='RUN', time_executed='2021-10-19 01:46:55.256264', time_epoch_executed='1634633215.26' WHERE source_name='4FGL J0754.7+4823' and cadence='monthly' and bin_id='114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110555

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110555/ft1_4FGL_J0754.7+4823_monthly_bin114.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110555/ft2_4FGL_J0754.7+4823_monthly_bin114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110555/ft1_4FGL_J0754.7+4823_monthly_bin114.fits outfile=/scratch/kocevski/110555/ft1_filteredMKT_4FGL_J0754.7+4823_monthly_bin114.fits ra=118.693 dec=48.3932 rad=12.0 tmin=532483201.0 tmax=535075201.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 26.31
user 25.39
sys 0.77

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/110555/ft2_4FGL_J0754.7+4823_monthly_bin114.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/110555/ft2_4FGL_J0754.7+4823_monthly_bin114.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/110555/ft1_filteredMKT_4FGL_J0754.7+4823_monthly_bin114.fits evtable="EVENTS" outfile="/scratch/kocevski/110555/ft1_filtered_4FGL_J0754.7+4823_monthly_bin114.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.77
user 0.58
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/110555/ft1_filtered_4FGL_J0754.7+4823_monthly_bin114.fits" evtable="EVENTS" scfile=/scratch/kocevski/110555/ft2_4FGL_J0754.7+4823_monthly_bin114.fits sctable="SC_DATA" outfile=/scratch/kocevski/110555/ltcube_532483201_535075201_4FGL_J0754.7+4823_monthly_bin114.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/110555/ft2_4FGL_J0754.7+4823_monthly_bin114.fits
.....................!
real 110.27
user 109.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110555/ft1_filtered_4FGL_J0754.7+4823_monthly_bin114.fits evtable="EVENTS" scfile=/scratch/kocevski/110555/ft2_4FGL_J0754.7+4823_monthly_bin114.fits sctable="SC_DATA" expcube=/scratch/kocevski/110555/ltcube_532483201_535075201_4FGL_J0754.7+4823_monthly_bin114.fits outfile=/scratch/kocevski/110555/expmap_532483201_535075201_4FGL_J0754.7+4823_monthly_bin114.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/110555/ltcube_532483201_535075201_4FGL_J0754.7+4823_monthly_bin114.fits
.....................!
real 157.69
user 152.36
sys 5.00

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

Setting source of interest to:
4FGL J0754.7+4823 @ 118.693 48.3932

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/110555/ft1_filtered_4FGL_J0754.7+4823_monthly_bin114.fits scfile=/scratch/kocevski/110555/ft2_4FGL_J0754.7+4823_monthly_bin114.fits outfile=/scratch/kocevski/110555/cmap_532483201_535075201_4FGL_J0754.7+4823_monthly_bin114.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=118.693 yref=48.3932 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.68
user 0.52
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110555/ft1_filtered_4FGL_J0754.7+4823_monthly_bin114.fits scfile=/scratch/kocevski/110555/ft2_4FGL_J0754.7+4823_monthly_bin114.fits outfile=/scratch/kocevski/110555/cmap_HighResolution_532483201_535075201_4FGL_J0754.7+4823_monthly_bin114.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=118.693 yref=48.3932 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.66
user 0.51
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/110555/ft1_filtered_4FGL_J0754.7+4823_monthly_bin114.fits evtable="EVENTS" scfile=/scratch/kocevski/110555/ft2_4FGL_J0754.7+4823_monthly_bin114.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/110555/Model_4FGL_J0754.7+4823_monthly_bin114.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/110555/ft1_filtered_4FGL_J0754.7+4823_monthly_bin114.fits.....................!
real 551.52
user 548.93
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/110555/ft1_filtered_4FGL_J0754.7+4823_monthly_bin114.fits', '/scratch/kocevski/110555/ft2_4FGL_J0754.7+4823_monthly_bin114.fits', expMap='/scratch/kocevski/110555/expmap_532483201_535075201_4FGL_J0754.7+4823_monthly_bin114.fits', expCube='/scratch/kocevski/110555/ltcube_532483201_535075201_4FGL_J0754.7+4823_monthly_bin114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/110555/Model_4FGL_J0754.7+4823_monthly_bin114.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0754.7+4823'

4FGL J0754.7+4823
   Spectrum: LogParabola
274         norm:  1.564e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
275        alpha:  1.983e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  8.608e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  1.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/110555/ft1_filtered_4FGL_J0754.7+4823_monthly_bin114.fits
Spacecraft file(s): /scratch/kocevski/110555/ft2_4FGL_J0754.7+4823_monthly_bin114.fits
Exposure map: /scratch/kocevski/110555/expmap_532483201_535075201_4FGL_J0754.7+4823_monthly_bin114.fits
Exposure cube: /scratch/kocevski/110555/ltcube_532483201_535075201_4FGL_J0754.7+4823_monthly_bin114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/110555/Model_4FGL_J0754.7+4823_monthly_bin114.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) = 82447.3417113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .64631       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.214       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9171       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0536       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2214       1.0000         .10000E-03   10000.    
     7 'Prefactor '    66.904       1.0000         .10000E-03   10000.    
     8 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8038       1.0000         .10000E-03   10000.    
    11 'norm      '    .81534E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5650       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5399       1.0000         .10000E-03   10000.    
    14 'norm      '    .83849       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1842       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6960       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2145       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0640       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2571       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5182       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0102       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8437       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.9295       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1370       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .56046E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.2808       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.6705       1.0000         .10000E-03   10000.    
    29 'norm      '    2.8125       1.0000         .10000E-03   10000.    
    30 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.2830       1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.1064       1.0000         .10000E-03   10000.    
    33 'Prefactor '    12.204       1.0000         .10000E-03   10000.    
    34 'Prefactor '    6.5858       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .92753       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.1023       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   82447.18     FROM MIGRAD    STATUS=CONVERGED   1029 CALLS     4671 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .23205         .0000    ** at limit **
   2  norm          .64682        .88505         .0000        .18154E-01
   3  Prefactor     10.214        7.4265         .0000        .19922E-02
   4  norm          1.9170        1.0509         .0000        .56640E-02
   5  Prefactor     5.0537        1.7127         .0000        .94107E-01
   6  Prefactor     4.2213        2.7036         .0000        .30261E-03
   7  Prefactor     66.904        8.3366         .0000       -.13301E-02
   8  norm          .10000E-03    .34669         .0000    ** at limit **
   9  Prefactor     .10000E-03    1.2347         .0000    ** at limit **
  10  Prefactor     9.8039        6.5971         .0000        .42841E-02
  11  norm          .81542E-01    .91157E-01     .0000        .23451E-01
  12  Prefactor     2.5656        2.8200         .0000        .59673E-01
  13  Prefactor     2.5403        3.7616         .0000        .22507E-02
  14  norm          .83828        .67010         .0000        .10434E-01
  15  Prefactor     1.1844        1.4006         .0000        .64686E-02
  16  Prefactor     5.6958        10.073         .0000        .43988E-03
  17  Prefactor     .10000E-03    3.2787         .0000    ** at limit **
  18  Prefactor     5.2144        1.4890         .0000        .77741E-01
  19  norm          4.0640        1.1160         .0000        .15563E-02
  20  norm          2.2571        .52223         .0000        .16989E-02
  21  Prefactor     5.5183        2.1930         .0000        .10330E-02
  22  norm          1.0101        .18079         .0000        .30046E-02
  23  Prefactor     1.8436        3.5192         .0000        .68158E-01
  24  Prefactor     2.9295        1.3781         .0000        .79332E-02
  25  Prefactor     1.1368        .77652         .0000        .11331E-01
  26  Prefactor     .10000E-03    1.6544         .0000    ** at limit **
  27  Prefactor     4.2793        2.6100         .0000        .28647E-01
  28  Prefactor     3.6706        1.5907         .0000        .31908E-01
  29  norm          2.8126        1.2695         .0000        .24389E-02
  30  norm          .10000E-03    .28860         .0000    ** at limit **
  31  Prefactor     4.2831        2.9560         .0000        .10400E-02
  32  Prefactor     2.1063        .93314         .0000        .71690E-02
  33  Prefactor     12.204        6.1999         .0000        .31639E-02
  34  Prefactor     6.5858        12.993         .0000        .10236E-03
  35  Normalizat    .92756        .59740E-01     .0000        .30280E-03
  36  Prefactor     1.1023        .39306E-01     .0000       -.15754E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.646821
  Prefactor  = 10.2141
  norm       = 1.91702
  Prefactor  = 5.05368
  Prefactor  = 4.22135
  Prefactor  = 66.9039
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.80389
  norm       = 0.081542
  Prefactor  = 2.56564
  Prefactor  = 2.54028
  norm       = 0.83828
  Prefactor  = 1.18441
  Prefactor  = 5.69584
  Prefactor  = 0.0001
  Prefactor  = 5.21437
  norm       = 4.06403
  norm       = 2.25708
  Prefactor  = 5.51833
  norm       = 1.01011
  Prefactor  = 1.84363
  Prefactor  = 2.92952
  Prefactor  = 1.13675
  Prefactor  = 0.000100001
  Prefactor  = 4.2793
  Prefactor  = 3.67058
  norm       = 2.81259
  norm       = 0.0001
  Prefactor  = 4.28305
  Prefactor  = 2.1063
  Prefactor  = 12.2044
  Prefactor  = 6.58579
  Normalizat = 0.927558
  Prefactor  = 1.10229
 **********
 **   18 **HESSE 
 **********

 FCN=   82447.18     FROM HESSE     STATUS=OK           851 CALLS     5522 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .67274        .26644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .64682        .87133        .30045E-03   -1.5547    
   3  Prefactor     10.214        7.4090        .62686E-03   -1.5069    
   4  norm          1.9170        1.0380        .20556E-03   -1.5431    
   5  Prefactor     5.0537        1.6875        .89434E-03   -1.5258    
   6  Prefactor     4.2213        2.7011        .19613E-03   -1.5297    
   7  Prefactor     66.904        8.2237        .49069E-04   -1.4070    
   8  norm          .10000E-03    .86511        .32414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.7710        .60453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8039        6.5834        .63991E-03   -1.5082    
  11  norm          .81542E-01    .10226        .87786E-03   -1.5651    
  12  Prefactor     2.5656        2.7325        .12744E-02   -1.5388    
  13  Prefactor     2.5403        3.7392        .25625E-03   -1.5389    
  14  norm          .83828        .56267        .19216E-02   -1.5525    
  15  Prefactor     1.1844        1.3641        .34776E-03   -1.5490    
  16  Prefactor     5.6958        9.9665        .16830E-03   -1.5231    
  17  Prefactor     .10000E-03    3.3385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2144        1.4817        .86906E-03   -1.5251    
  19  norm          4.0640        1.1127        .14959E-03   -1.5305    
  20  norm          2.2571        .52047        .94561E-04   -1.5407    
  21  Prefactor     5.5183        2.1893        .17104E-03   -1.5238    
  22  norm          1.0101        .17802        .47984E-04   -1.5507    
  23  Prefactor     1.8436        3.3949        .15358E-02   -1.5436    
  24  Prefactor     2.9295        1.3721        .21898E-03   -1.5366    
  25  Prefactor     1.1368        .74153        .18700E-03   -1.5495    
  26  Prefactor     .10000E-03    14.016        .68367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.2793        2.5468        .97362E-03   -1.5294    
  28  Prefactor     3.6706        1.5871        .10541E-02   -1.5325    
  29  norm          2.8126        1.2633        .20843E-03   -1.5373    
  30  norm          .10000E-03    .66366        .29560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.2831        2.9524        .19467E-03   -1.5294    
  32  Prefactor     2.1063        .92884        .17528E-03   -1.5418    
  33  Prefactor     12.204        6.1754        .57334E-03   -1.5009    
  34  Prefactor     6.5858        12.969        .15637E-03   -1.5195    
  35  Normalizat    .92756        .66956E-01    .30947E-03   -.95498    
  36  Prefactor     1.1023        .44608E-01    .20248E-03   -.89394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23589e-07
Minuit parameter uncertainties:
  1  1.53524e-05
  2  0.871345
  3  7.40962
  4  1.038
  5  1.68755
  6  2.70115
  7  8.22381
  8  3.4606e-06
  9  2.98076e-05
  10  6.58393
  11  0.102263
  12  2.73265
  13  3.73952
  14  0.562672
  15  1.36418
  16  9.96938
  17  7.98591e-06
  18  1.48173
  19  1.1127
  20  0.520474
  21  2.18931
  22  0.178023
  23  3.39522
  24  1.37216
  25  0.741538
  26  0.000255227
  27  2.54684
  28  1.58716
  29  1.26327
  30  1.2334e-05
  31  2.95253
  32  0.928846
  33  6.17573
  34  12.9742
  35  0.0669623
  36  0.0446096
Done.

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

Extracting fit parameters...

4FGL J0754.7+4823
   Spectrum: LogParabola
274         norm:  8.383e-01  5.627e-01  1.000e-04  1.000e+04 ( 1.000e-12)
275        alpha:  1.983e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  8.608e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  1.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.102e+00  4.461e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  9.276e-01  6.696e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.83
Ra Dec: 118.693 48.393
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 7.35e-09 +/- 4.93e-09
Energy Flux (Fixed Index): 4.67e-06 +/- 3.13e-06

TS (Fixed Index): 3.83
Ra Dec: 118.693 48.393
Photon Flux Upper Limit: 1.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/110555/likelihoodResults_532483201_535075201_4FGL_J0754.7+4823_monthly_bin114.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 82446.6486967
delta logL = 0.534111772155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 82446.6359342
delta logL = 0.546874343665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23103       1.0000         .10000E-03   10000.    
     2 'alpha     '    .95490       1.0000          .0000       5.0000    
     3 'Normalizat'    .93048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1036       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+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=   82446.64     FROM MIGRAD    STATUS=FAILED        99 CALLS      279 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23092        .35364        .14112E-02   -.27165E-02
   2  alpha         .95485        .64313        .43785E-01   -.26002E-02
   3  Normalizat    .93046        .61236E-01    .30902E-03    .48856E-04
   4  Prefactor     1.1037        .43578E-01    .20238E-03   -.10696E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   82446.64     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      352 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23092        .35364        .22072E-04   -1.5612    
   2  alpha         .95485        .64313        .10393E-02   -.66627    
   3  Normalizat    .93046        .61236E-01    .96702E-04   -.95398    
   4  Prefactor     1.1037        .43578E-01    .36166E-04   -.89350    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   82446.64     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      382 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23091        .33980        .56450E-04    .41890E-04
   2  alpha         .95484        .61943        .87571E-02   -.10640E-03
   3  Normalizat    .93046        .61277E-01    .12361E-04    .29431E-05
   4  Prefactor     1.1037        .43605E-01    .80952E-05    .89879E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.230914
  alpha      = 0.954844
  Normalizat = 0.930457
  Prefactor  = 1.10365
 **********
 **   18 **HESSE 
 **********

 FCN=   82446.64     FROM HESSE     STATUS=OK            25 CALLS      407 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23091        .35749        .22580E-05   -1.5612    
   2  alpha         .95484        .65049        .17514E-02   -.66628    
   3  Normalizat    .93046        .61321E-01    .24722E-05   -.95398    
   4  Prefactor     1.1037        .43631E-01    .80952E-05   -.89350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64915e-13
Minuit parameter uncertainties:
  1  0.357497
  2  0.662989
  3  0.0613259
  4  0.0436329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110555': 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) = 82446.635934
delta logL = 0.546874551539

Extracting fit parameters...

4FGL J0754.7+4823
   Spectrum: LogParabola
274         norm:  2.309e-01  3.575e-01  1.000e-04  1.000e+04 ( 1.000e-12)
275        alpha:  9.548e-01  6.630e-01  0.000e+00  5.000e+00 ( 1.000e+00)
276         beta:  8.608e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  1.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.104e+00  4.363e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  9.305e-01  6.133e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.92
Ra Dec: 118.693 48.393
Photon Index (Free Index): 0.95 +/- 0.66
Photon Flux (Free Index): 1.23e-09 +/- 1.45e-09
Energy Flux (Free Index): 9.90e-06 +/- 9.97e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/110555/cmap_HighResolution_532483201_535075201_4FGL_J0754.7+4823_monthly_bin114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-05', comment='SUCCESS', photon_flux='7.35e-09', energy_flux2='9.90e-06', photon_flux_error='4.93e-09', dlogl='5.47e-01', energy_flux='4.67e-06', photon_flux2='1.23e-09', job_status='DONE', time_completed='2021-10-19 04:46:45.052198', photon_index_error2='0.66', photon_index2='0.95', ts='3.83', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.77e-08', energy_flux_error2='9.97e-06', EG='0.93', time_epoch_completed='1634644005.05', return_code='0', job_id='110555', GAL2='1.10', EG2='0.93', return_code2='0', energy_flux_error='3.13e-06', photon_flux_error2='1.45e-09', ts2='4.92', photon_index='1.98' WHERE bin_id='114' AND source_name='4FGL J0754.7+4823' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 19 04:46:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 110555: <4FGL_J0754.7+4823_monthly_bin114> in cluster <slac> Done

Job <4FGL_J0754.7+4823_monthly_bin114> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Oct 19 01:35:15 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 19 01:46:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 19 01:46:43 2021
Terminated at Tue Oct 19 04:46:46 2021
Results reported at Tue Oct 19 04:46:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0754.7+4823_monthly_bin114 118.693 48.3932 532483201 535075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0754.7+4823 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9529.00 sec.
    Max Memory :                                 631 MB
    Average Memory :                             394.01 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10802 sec.
    Turnaround time :                            11491 sec.

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

