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


Performing analysis on: 4FGL_J0945.7+5759_monthly_bin151
RA = 146.432, Dec = 57.9871
tmin = 628387201, tmax = 630979201
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='883553', job_status='RUN', time_executed='2021-10-21 03:29:10.059284', time_epoch_executed='1634812150.06' WHERE source_name='4FGL J0945.7+5759' and cadence='monthly' and bin_id='151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883553

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883553/ft1_4FGL_J0945.7+5759_monthly_bin151.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883553/ft2_4FGL_J0945.7+5759_monthly_bin151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883553/ft1_4FGL_J0945.7+5759_monthly_bin151.fits outfile=/scratch/kocevski/883553/ft1_filteredMKT_4FGL_J0945.7+5759_monthly_bin151.fits ra=146.432 dec=57.9871 rad=12.0 tmin=628387201.0 tmax=630979201.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 30.59
user 29.76
sys 0.68

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/883553/ft2_4FGL_J0945.7+5759_monthly_bin151.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/883553/ft2_4FGL_J0945.7+5759_monthly_bin151.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/883553/ft1_filteredMKT_4FGL_J0945.7+5759_monthly_bin151.fits evtable="EVENTS" outfile="/scratch/kocevski/883553/ft1_filtered_4FGL_J0945.7+5759_monthly_bin151.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.83
user 0.63
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/883553/ft1_filtered_4FGL_J0945.7+5759_monthly_bin151.fits" evtable="EVENTS" scfile=/scratch/kocevski/883553/ft2_4FGL_J0945.7+5759_monthly_bin151.fits sctable="SC_DATA" outfile=/scratch/kocevski/883553/ltcube_628387201_630979201_4FGL_J0945.7+5759_monthly_bin151.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/883553/ft2_4FGL_J0945.7+5759_monthly_bin151.fits
.....................!
real 118.79
user 118.05
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883553/ft1_filtered_4FGL_J0945.7+5759_monthly_bin151.fits evtable="EVENTS" scfile=/scratch/kocevski/883553/ft2_4FGL_J0945.7+5759_monthly_bin151.fits sctable="SC_DATA" expcube=/scratch/kocevski/883553/ltcube_628387201_630979201_4FGL_J0945.7+5759_monthly_bin151.fits outfile=/scratch/kocevski/883553/expmap_628387201_630979201_4FGL_J0945.7+5759_monthly_bin151.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/883553/ltcube_628387201_630979201_4FGL_J0945.7+5759_monthly_bin151.fits
.....................!
real 193.61
user 188.44
sys 4.74

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

Setting source of interest to:
4FGL J0945.7+5759 @ 146.432 57.9871

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/883553/ft1_filtered_4FGL_J0945.7+5759_monthly_bin151.fits scfile=/scratch/kocevski/883553/ft2_4FGL_J0945.7+5759_monthly_bin151.fits outfile=/scratch/kocevski/883553/cmap_628387201_630979201_4FGL_J0945.7+5759_monthly_bin151.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=146.432 yref=57.9871 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.77
user 0.60
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883553/ft1_filtered_4FGL_J0945.7+5759_monthly_bin151.fits scfile=/scratch/kocevski/883553/ft2_4FGL_J0945.7+5759_monthly_bin151.fits outfile=/scratch/kocevski/883553/cmap_HighResolution_628387201_630979201_4FGL_J0945.7+5759_monthly_bin151.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=146.432 yref=57.9871 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.77
user 0.61
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/883553/ft1_filtered_4FGL_J0945.7+5759_monthly_bin151.fits evtable="EVENTS" scfile=/scratch/kocevski/883553/ft2_4FGL_J0945.7+5759_monthly_bin151.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/883553/Model_4FGL_J0945.7+5759_monthly_bin151.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/883553/ft1_filtered_4FGL_J0945.7+5759_monthly_bin151.fits.....................!
real 522.44
user 519.64
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/883553/ft1_filtered_4FGL_J0945.7+5759_monthly_bin151.fits', '/scratch/kocevski/883553/ft2_4FGL_J0945.7+5759_monthly_bin151.fits', expMap='/scratch/kocevski/883553/expmap_628387201_630979201_4FGL_J0945.7+5759_monthly_bin151.fits', expCube='/scratch/kocevski/883553/ltcube_628387201_630979201_4FGL_J0945.7+5759_monthly_bin151.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/883553/Model_4FGL_J0945.7+5759_monthly_bin151.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.7+5759'

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.030e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  1.875e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
396         beta:  2.282e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/883553/ft1_filtered_4FGL_J0945.7+5759_monthly_bin151.fits
Spacecraft file(s): /scratch/kocevski/883553/ft2_4FGL_J0945.7+5759_monthly_bin151.fits
Exposure map: /scratch/kocevski/883553/expmap_628387201_630979201_4FGL_J0945.7+5759_monthly_bin151.fits
Exposure cube: /scratch/kocevski/883553/ltcube_628387201_630979201_4FGL_J0945.7+5759_monthly_bin151.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/883553/Model_4FGL_J0945.7+5759_monthly_bin151.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) = 63465.4971466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3226       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5072       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5228       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1333       1.0000         .10000E-03   10000.    
     5 'norm      '    .11923E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15631       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0405       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13351E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .29492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2231       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3016       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .98325       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4538       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9101       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.368       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1524       1.0000         .10000E-03   10000.    
    21 'norm      '    5.8898       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0212       1.0000         .10000E-03   10000.    
    23 'norm      '    2.0952       1.0000         .10000E-03   10000.    
    24 'norm      '    5.3932       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .46754       1.0000         .10000E-03   10000.    
    26 'norm      '    .94666E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.6414       1.0000         .10000E-03   10000.    
    28 'norm      '    .58239       1.0000         .10000E-03   10000.    
    29 'norm      '    1.8288       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    53.923       1.0000         .10000E-03   10000.    
    32 'norm      '    1.4719       1.0000         .10000E-03   10000.    
    33 'Prefactor '    9.2717       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .91489       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0568       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   63465.43     FROM MIGRAD    STATUS=CONVERGED   1030 CALLS     4550 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3223        3.6356         .0000        .44577E-02
   2  Prefactor     2.5071        1.8816         .0000        .13585    
   3  Prefactor     2.5240        1.6776         .0000        .29842E-01
   4  Prefactor     9.1326        9.1287         .0000        .61311E-03
   5  norm          .12670E-02    .39227         .0000    ** at limit **
   6  Prefactor     .16006        .97858         .0000        .28723E-02
   7  Prefactor     2.0403        1.9501         .0000        .45420E-02
   8  Prefactor     .10041E-03    1.4088         .0000    ** at limit **
   9  Prefactor     .10000E-03    4.0933         .0000    ** at limit **
  10  norm          .29482        .21147         .0000        .10966E-01
  11  Prefactor     1.2228        1.6914         .0000        .78229E-02
  12  Prefactor     4.3009        2.7588         .0000        .15634E-02
  13  Prefactor     .98346        1.0163         .0000        .11108E-01
  14  Prefactor     2.4538        2.6836         .0000        .13233E-01
  15  Prefactor     .10000E-03    .64482         .0000    ** at limit **
  16  Prefactor     .10000E-03    .47689         .0000    ** at limit **
  17  Prefactor     1.9098        1.8820         .0000        .69150E-02
  18  norm          .10000E-03    .65719         .0000    ** at limit **
  19  Prefactor     27.365        9.2002         .0000       -.32026E-02
  20  norm          1.1524        .16623         .0000       -.29825E-02
  21  norm          5.8895        3.6432         .0000        .19574E-01
  22  Prefactor     3.0211        1.7785         .0000        .14366    
  23  norm          2.0951        .25091         .0000        .25591E-02
  24  norm          5.3931        .92378         .0000        .61719E-03
  25  Prefactor     .42617        2.2377         .0000        .92462E-03
  26  norm          .10000E-03    .99839         .0000    ** at limit **
  27  Prefactor     9.6419        4.9245         .0000        .10038E-01
  28  norm          .58237        .45779         .0000        .37943E-02
  29  norm          1.8288        .41967         .0000       -.10592E-02
  30  Prefactor     .10004E-03    33.253         .0000    ** at limit **
  31  Prefactor     53.932        25.726         .0000       -.59916E-03
  32  norm          1.4720        .51710         .0000        .16910E-02
  33  Prefactor     9.2676        5.9662         .0000        .17691E-02
  34  Normalizat    .91491        .55304E-01     .0000        .21944E-03
  35  Prefactor     1.0568        .52949E-01     .0000        .46385E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.32225
  Prefactor  = 2.50708
  Prefactor  = 2.524
  Prefactor  = 9.13256
  norm       = 0.00126695
  Prefactor  = 0.160062
  Prefactor  = 2.04027
  Prefactor  = 0.000100407
  Prefactor  = 0.0001
  norm       = 0.294825
  Prefactor  = 1.22278
  Prefactor  = 4.30093
  Prefactor  = 0.983463
  Prefactor  = 2.45381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9098
  norm       = 0.0001
  Prefactor  = 27.365
  norm       = 1.15243
  norm       = 5.88952
  Prefactor  = 3.02112
  norm       = 2.09512
  norm       = 5.39307
  Prefactor  = 0.426167
  norm       = 0.0001
  Prefactor  = 9.64187
  norm       = 0.582368
  norm       = 1.82879
  Prefactor  = 0.000100044
  Prefactor  = 53.9317
  norm       = 1.47199
  Prefactor  = 9.26765
  Normalizat = 0.914912
  Prefactor  = 1.05682
 **********
 **   18 **HESSE 
 **********

 FCN=   63465.43     FROM HESSE     STATUS=OK           844 CALLS     5394 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3223        3.6272        .15963E-03   -1.5205    
   2  Prefactor     2.5071        1.8713        .12903E-02   -1.5391    
   3  Prefactor     2.5240        1.6769        .12777E-02   -1.5390    
   4  Prefactor     9.1326        9.1350        .13262E-03   -1.5103    
   5  norm          .12670E-02    .39960        .55417E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16006        1.3350        .77317E-01   -1.5628    
   7  Prefactor     2.0403        1.9244        .28950E-03   -1.5422    
   8  Prefactor     .10041E-03    1.4942        .97464E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .29482        .17630        .90614E-03   -1.5599    
  11  Prefactor     1.2228        1.6558        .36915E-03   -1.5487    
  12  Prefactor     4.3009        2.7569        .19424E-03   -1.5293    
  13  Prefactor     .98346        .97525        .23459E-03   -1.5510    
  14  Prefactor     2.4538        2.6675        .13056E-02   -1.5395    
  15  Prefactor     .10000E-03    .68601        .77401E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3581        .32150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9098        1.8252        .30080E-03   -1.5432    
  18  norm          .10000E-03    .66579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.365        9.1675        .76579E-04   -1.4661    
  20  norm          1.1524        .16636        .37092E-04   -1.5493    
  21  norm          5.8895        3.6383        .82736E-03   -1.5223    
  22  Prefactor     3.0211        1.7627        .11674E-02   -1.5360    
  23  norm          2.0951        .25020        .41375E-04   -1.5418    
  24  norm          5.3931        .92333        .96638E-04   -1.5243    
  25  Prefactor     .42617        2.8262        .11232       -1.5577    
  26  norm          .10000E-03    1.0682        .95432E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.6419        4.7622        .64529E-03   -1.5087    
  28  norm          .58237        .42876        .12870E-03   -1.5555    
  29  norm          1.8288        .41940        .75662E-04   -1.5437    
  30  Prefactor     .10004E-03    33.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     53.932        25.713        .54622E-04   -1.4238    
  32  norm          1.4720        .51538        .10163E-03   -1.5465    
  33  Prefactor     9.2676        5.9615        .13162E-03   -1.5099    
  34  Normalizat    .91491        .61773E-01    .25236E-03   -.95938    
  35  Prefactor     1.0568        .59295E-01    .24611E-03   -.90859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.109e-08
Minuit parameter uncertainties:
  1  3.62735
  2  1.87131
  3  1.67696
  4  9.13638
  5  0.0431891
  6  0.924263
  7  1.92449
  8  0.00155942
  9  4.50676e-05
  10  0.176298
  11  1.65586
  12  2.757
  13  0.975268
  14  2.66762
  15  2.44691e-05
  16  4.62487e-06
  17  1.82527
  18  2.53898e-06
  19  9.16797
  20  0.166365
  21  3.63845
  22  1.76276
  23  0.250198
  24  0.923331
  25  2.19484
  26  4.01658e-05
  27  4.76243
  28  0.428764
  29  0.419402
  30  0.00241457
  31  25.7178
  32  0.515378
  33  5.9619
  34  0.0617779
  35  0.0592984
Done.

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

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.000e-04  2.539e-06  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  1.875e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
396         beta:  2.282e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.057e+00  5.930e-02  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  9.149e-01  6.178e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.432 57.987
Photon Flux Upper Limit: 3.99e-09 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/883553/likelihoodResults_628387201_630979201_4FGL_J0945.7+5759_monthly_bin151.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) = 63465.4297607
delta logL = -0.000136030997965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 63465.4296997
delta logL = -7.50628241803e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1983       1.0000          .0000       5.0000    
     3 'Normalizat'    .91491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0568       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   63465.43     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      251 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.474        .90712E-02** at limit **
   2  alpha         2.0504        3.1019        .43390        .83759E-06
   3  Normalizat    .91491        .53176E-02    .45092E-01   -.13373E-02
   4  Prefactor     1.0568        .55603E-02    .39526E-01   -.23170E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.05041
  Normalizat = 0.914913
  Prefactor  = 1.05682
 **********
 **   18 **HESSE 
 **********

 FCN=   63465.43     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    129.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0504        3.9028        .17356       -.18082    
   3  Normalizat    .91491        .27255E-01    .25236E-03   -.95938    
   4  Prefactor     1.0568        .28511E-01    .24611E-03   -.90859    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40895e-07
Minuit parameter uncertainties:
  1  0.000174424
  2  1524.59
  3  0.0272556
  4  0.0285116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883553': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 63465.4296235
delta logL = 1.16687442642e-06

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.000e-04  1.744e-04  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  2.050e+00  1.525e+03  0.000e+00  5.000e+00 ( 1.000e+00)
396         beta:  2.282e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.057e+00  2.851e-02  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  9.149e-01  2.726e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.432 57.987

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/883553/cmap_HighResolution_628387201_630979201_4FGL_J0945.7+5759_monthly_bin151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-06', job_status='DONE', photon_flux_upper_limit='3.99e-09', time_completed='2021-10-21 06:14:14.056241', job_id='883553', GAL2='1.06', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1634822054.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='151' AND source_name='4FGL J0945.7+5759' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 21 06:14:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 883553: <4FGL_J0945.7+5759_monthly_bin151> in cluster <slac> Done

Job <4FGL_J0945.7+5759_monthly_bin151> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Oct 21 03:25:15 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 03:28:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 21 03:28:49 2021
Terminated at Thu Oct 21 06:14:15 2021
Results reported at Thu Oct 21 06:14:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.7+5759_monthly_bin151 146.432 57.9871 628387201 630979201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.7+5759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9665.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             409.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9925 sec.
    Turnaround time :                            10140 sec.

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

