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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin880
RA = 177.603, Dec = 24.3016
tmin = 467424001, tmax = 467683201
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='104021', job_status='RUN', time_executed='2021-09-04 12:51:50.856404', time_epoch_executed='1630785110.86' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='880'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104021

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104021/ft1_4FGL_J1150.4+2418_daily_bin880.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104021/ft2_4FGL_J1150.4+2418_daily_bin880.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104021/ft1_4FGL_J1150.4+2418_daily_bin880.fits outfile=/scratch/kocevski/104021/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin880.fits ra=177.603 dec=24.3016 rad=12.0 tmin=467424001.0 tmax=467683201.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 3.56
user 3.34
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/104021/ft2_4FGL_J1150.4+2418_daily_bin880.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104021/ft2_4FGL_J1150.4+2418_daily_bin880.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/104021/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin880.fits evtable="EVENTS" outfile="/scratch/kocevski/104021/ft1_filtered_4FGL_J1150.4+2418_daily_bin880.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104021/ft1_filtered_4FGL_J1150.4+2418_daily_bin880.fits" evtable="EVENTS" scfile=/scratch/kocevski/104021/ft2_4FGL_J1150.4+2418_daily_bin880.fits sctable="SC_DATA" outfile=/scratch/kocevski/104021/ltcube_467424001_467683201_4FGL_J1150.4+2418_daily_bin880.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/104021/ft2_4FGL_J1150.4+2418_daily_bin880.fits
.....................!
real 12.28
user 11.95
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104021/ft1_filtered_4FGL_J1150.4+2418_daily_bin880.fits evtable="EVENTS" scfile=/scratch/kocevski/104021/ft2_4FGL_J1150.4+2418_daily_bin880.fits sctable="SC_DATA" expcube=/scratch/kocevski/104021/ltcube_467424001_467683201_4FGL_J1150.4+2418_daily_bin880.fits outfile=/scratch/kocevski/104021/expmap_467424001_467683201_4FGL_J1150.4+2418_daily_bin880.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/104021/ltcube_467424001_467683201_4FGL_J1150.4+2418_daily_bin880.fits
.....................!
real 190.30
user 185.39
sys 4.41

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

Setting source of interest to:
4FGL J1150.4+2418 @ 177.603 24.3016

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/104021/ft1_filtered_4FGL_J1150.4+2418_daily_bin880.fits scfile=/scratch/kocevski/104021/ft2_4FGL_J1150.4+2418_daily_bin880.fits outfile=/scratch/kocevski/104021/cmap_467424001_467683201_4FGL_J1150.4+2418_daily_bin880.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=177.603 yref=24.3016 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104021/ft1_filtered_4FGL_J1150.4+2418_daily_bin880.fits scfile=/scratch/kocevski/104021/ft2_4FGL_J1150.4+2418_daily_bin880.fits outfile=/scratch/kocevski/104021/cmap_HighResolution_467424001_467683201_4FGL_J1150.4+2418_daily_bin880.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=177.603 yref=24.3016 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104021/ft1_filtered_4FGL_J1150.4+2418_daily_bin880.fits evtable="EVENTS" scfile=/scratch/kocevski/104021/ft2_4FGL_J1150.4+2418_daily_bin880.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104021/Model_4FGL_J1150.4+2418_daily_bin880.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/104021/ft1_filtered_4FGL_J1150.4+2418_daily_bin880.fits.....................!
real 53.40
user 52.06
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/104021/ft1_filtered_4FGL_J1150.4+2418_daily_bin880.fits', '/scratch/kocevski/104021/ft2_4FGL_J1150.4+2418_daily_bin880.fits', expMap='/scratch/kocevski/104021/expmap_467424001_467683201_4FGL_J1150.4+2418_daily_bin880.fits', expCube='/scratch/kocevski/104021/ltcube_467424001_467683201_4FGL_J1150.4+2418_daily_bin880.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/104021/Model_4FGL_J1150.4+2418_daily_bin880.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1150.4+2418'

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.344e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/104021/ft1_filtered_4FGL_J1150.4+2418_daily_bin880.fits
Spacecraft file(s): /scratch/kocevski/104021/ft2_4FGL_J1150.4+2418_daily_bin880.fits
Exposure map: /scratch/kocevski/104021/expmap_467424001_467683201_4FGL_J1150.4+2418_daily_bin880.fits
Exposure cube: /scratch/kocevski/104021/ltcube_467424001_467683201_4FGL_J1150.4+2418_daily_bin880.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/104021/Model_4FGL_J1150.4+2418_daily_bin880.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) = 5523.73506937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6553       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3016       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22417E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.928       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.139       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0963       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.200       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3030       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9260       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4302       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .91824E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    9.3306       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3168       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .57944       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5523.733     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3122 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6550        2.7760        .11316E-06    .68452E-04
   2  Prefactor     .10000E-03    8.2748       -.37286E-07** at limit **
   3  norm          2.2997        13.845       -.78342E-05    .43655E-05
   4  Prefactor     .10000E-03    42.219        .11673E-06** at limit **
   5  Prefactor     .10000E-03    3.8139       -.28572E-07** at limit **
   6  Prefactor     .10000E-03    235.18       -.14875E-05** at limit **
   7  Prefactor     .10000E-03    3.4654        .50379E-07** at limit **
   8  Prefactor     12.928        6.8214       -.89243E-07    .24393E-04
   9  Prefactor     14.140        21.955       -.12027E-05    .28935E-04
  10  Prefactor     1.0943        .52805        .91286E-07   -.14005E-03
  11  Prefactor     .10000E-03    .70303        .17142E-07** at limit **
  12  Prefactor     .10000E-03    13.882        .30202E-07** at limit **
  13  norm          .10000E-03    .62315       -.12833E-07** at limit **
  14  Prefactor     .10000E-03    1.6258       -.15983E-07** at limit **
  15  Prefactor     56.203        37.954        .19499E-06    .83592E-05
  16  Prefactor     .10000E-03    1.0246       -.13584E-07** at limit **
  17  Prefactor     1.3027        3.0062       -.12299E-06   -.15483E-04
  18  norm          3.9258        2.6479        .12602E-07    .14241E-04
  19  Prefactor     .10000E-03    .88136       -.80119E-08** at limit **
  20  Prefactor     6.4303        2.9894       -.58987E-07    .42741E-04
  21  Prefactor     .10000E-03    3.1693        .31662E-07** at limit **
  22  norm          .91756E-01    .17643       -.17128E-07   -.14680E-03
  23  norm          9.3306        4.6429       -.64607E-06    .14014E-04
  24  Prefactor     .10000E-03    6.7267       -.55567E-08** at limit **
  25  Normalizat    1.3168        .18647        .11031E-05    .34918E-04
  26  Prefactor     .57953        .18117        .13701E-06    .94591E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65496
  Prefactor  = 0.0001
  norm       = 2.2997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9277
  Prefactor  = 14.1402
  Prefactor  = 1.09432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.2027
  Prefactor  = 0.0001
  Prefactor  = 1.3027
  norm       = 3.92582
  Prefactor  = 0.0001
  Prefactor  = 6.43025
  Prefactor  = 0.0001
  norm       = 0.0917556
  norm       = 9.33063
  Prefactor  = 0.0001
  Normalizat = 1.31679
  Prefactor  = 0.579527
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.733     FROM HESSE     STATUS=OK           458 CALLS     3580 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6550        2.7590        .15376E-03   -1.5451    
   2  Prefactor     .10000E-03    8.4394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2997        13.878        .27050E-03   -1.5405    
   4  Prefactor     .10000E-03    43.936        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8159        .14175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    243.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4701        .13512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.928        6.8291        .11141E-03   -1.4989    
   9  Prefactor     14.140        21.980        .10652E-03   -1.4956    
  10  Prefactor     1.0943        14.020        .22755E-02   -1.5499    
  11  Prefactor     .10000E-03    .70969        .60709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7239        .11329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6447        .92504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.203        38.097        .53510E-04   -1.4207    
  16  Prefactor     .10000E-03    1.0300        .73258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.3027        2.9714        .18353E-03   -1.5480    
  18  norm          3.9258        2.6458        .95179E-04   -1.5312    
  19  Prefactor     .10000E-03    .88457        .68087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4303        2.9930        .82607E-04   -1.5201    
  21  Prefactor     .10000E-03    3.2162        .12911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .91756E-01    .15491        .41086E-03   -1.5647    
  23  norm          9.3306        4.6360        .10911E-03   -1.5097    
  24  Prefactor     .10000E-03    6.7576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3168        .21877        .21416E-03   -.83067    
  26  Prefactor     .57953        .21199        .31682E-03   -1.0846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75647e-09
Minuit parameter uncertainties:
  1  2.75924
  2  7.46145e-06
  3  11.3023
  4  3.70749e-05
  5  1.3546e-06
  6  0.000526072
  7  1.60716e-06
  8  6.82956
  9  21.9927
  10  7.83562
  11  1.88839e-06
  12  6.65504e-06
  13  1.83871e-06
  14  2.15217e-06
  15  38.1132
  16  1.13137e-06
  17  2.97169
  18  2.64583
  19  6.79983e-07
  20  2.99311
  21  8.1642e-06
  22  0.154907
  23  4.63613
  24  1.35029e-06
  25  0.218925
  26  0.212278
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.888e-06  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  5.795e-01  2.123e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.317e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/104021/likelihoodResults_467424001_467683201_4FGL_J1150.4+2418_daily_bin880.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) = 5523.73919684
delta logL = -0.00647914732872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5523.73271795
delta logL = -2.50153789239e-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     '    2.2316       1.0000          .0000       10.000    
     3 'Normalizat'    1.3168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+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=   5523.733     FROM MIGRAD    STATUS=FAILED        87 CALLS      239 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1868        .60730E-03** at limit **
   2  Index         2.2355        5.4129        .50000       -.44585E-04
   3  Normalizat    1.3168        .20258        .21416E-03    .26968E-05
   4  Prefactor     .57953        .20721        .31682E-03    .23325E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5523.733     FROM SIMPLEX   STATUS=UNCHANGED    142 CALLS      381 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1868        .14228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2355        5.4129        .36571E-03   -.58585    
   3  Normalizat    1.3168        .20258        .25159E-04   -.83067    
   4  Prefactor     .57953        .20721        .53043E-04   -1.0846    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5523.733     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      414 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .73221        .12146E-03** at limit **
   2  Index         2.2358        6.1168        .50000       -.44561E-04
   3  Normalizat    1.3168        .20273        .42831E-04   -.11838E-04
   4  Prefactor     .57953        .20737        .12673E-04   -.46649E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.23582
  Normalizat = 1.31679
  Prefactor  = 0.579525
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.733     FROM HESSE     STATUS=OK            29 CALLS      443 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .71128        .24292E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2358        6.1176        .50000       -.58576    
   3  Normalizat    1.3168        .20270        .85663E-05   -.83067    
   4  Prefactor     .57953        .20733        .25345E-05   -1.0846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75895e-09
Minuit parameter uncertainties:
  1  6.21392e-05
  2  4.1692
  3  0.20282
  4  0.207601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104021': 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) = 5523.73271761
delta logL = 8.04184310255e-08

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  6.214e-05  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.236e+00  4.169e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  5.795e-01  2.076e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.317e+00  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.603 24.302

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/104021/cmap_HighResolution_467424001_467683201_4FGL_J1150.4+2418_daily_bin880.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2021-09-04 13:03:52.523068', job_id='104021', GAL2='0.58', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630785832.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='8.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='880' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:03:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 104021: <4FGL_J1150.4+2418_daily_bin880> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin880> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 12:51:33 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:51:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 12:51:34 2021
Terminated at Sat Sep  4 13:03:53 2021
Results reported at Sat Sep  4 13:03:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin880 177.603 24.3016 467424001 467683201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1150.4+2418 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   720.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            740 sec.

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

