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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1086
RA = 145.494, Dec = 27.4136
tmin = 520819201, tmax = 521078401
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='437872', job_status='RUN', time_executed='2021-08-31 22:49:43.791558', time_epoch_executed='1630475383.79' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437872/ft1_4FGL_J0941.9+2724_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437872/ft2_4FGL_J0941.9+2724_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437872/ft1_4FGL_J0941.9+2724_daily_bin1086.fits outfile=/scratch/kocevski/437872/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1086.fits ra=145.494 dec=27.4136 rad=12.0 tmin=520819201.0 tmax=521078401.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.46
user 3.24
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/437872/ft2_4FGL_J0941.9+2724_daily_bin1086.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437872/ft2_4FGL_J0941.9+2724_daily_bin1086.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/437872/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1086.fits evtable="EVENTS" outfile="/scratch/kocevski/437872/ft1_filtered_4FGL_J0941.9+2724_daily_bin1086.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.52
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437872/ft1_filtered_4FGL_J0941.9+2724_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/437872/ft2_4FGL_J0941.9+2724_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/437872/ltcube_520819201_521078401_4FGL_J0941.9+2724_daily_bin1086.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/437872/ft2_4FGL_J0941.9+2724_daily_bin1086.fits
.....................!
real 12.01
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437872/ft1_filtered_4FGL_J0941.9+2724_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/437872/ft2_4FGL_J0941.9+2724_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/437872/ltcube_520819201_521078401_4FGL_J0941.9+2724_daily_bin1086.fits outfile=/scratch/kocevski/437872/expmap_520819201_521078401_4FGL_J0941.9+2724_daily_bin1086.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/437872/ltcube_520819201_521078401_4FGL_J0941.9+2724_daily_bin1086.fits
.....................!
real 192.34
user 186.63
sys 5.28

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

Setting source of interest to:
4FGL J0941.9+2724 @ 145.494 27.4136

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/437872/ft1_filtered_4FGL_J0941.9+2724_daily_bin1086.fits scfile=/scratch/kocevski/437872/ft2_4FGL_J0941.9+2724_daily_bin1086.fits outfile=/scratch/kocevski/437872/cmap_520819201_521078401_4FGL_J0941.9+2724_daily_bin1086.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=145.494 yref=27.4136 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437872/ft1_filtered_4FGL_J0941.9+2724_daily_bin1086.fits scfile=/scratch/kocevski/437872/ft2_4FGL_J0941.9+2724_daily_bin1086.fits outfile=/scratch/kocevski/437872/cmap_HighResolution_520819201_521078401_4FGL_J0941.9+2724_daily_bin1086.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=145.494 yref=27.4136 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/437872/ft1_filtered_4FGL_J0941.9+2724_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/437872/ft2_4FGL_J0941.9+2724_daily_bin1086.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437872/Model_4FGL_J0941.9+2724_daily_bin1086.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/437872/ft1_filtered_4FGL_J0941.9+2724_daily_bin1086.fits.....................!
real 46.90
user 45.57
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437872/ft1_filtered_4FGL_J0941.9+2724_daily_bin1086.fits', '/scratch/kocevski/437872/ft2_4FGL_J0941.9+2724_daily_bin1086.fits', expMap='/scratch/kocevski/437872/expmap_520819201_521078401_4FGL_J0941.9+2724_daily_bin1086.fits', expCube='/scratch/kocevski/437872/ltcube_520819201_521078401_4FGL_J0941.9+2724_daily_bin1086.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437872/Model_4FGL_J0941.9+2724_daily_bin1086.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0941.9+2724'

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  6.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/437872/ft1_filtered_4FGL_J0941.9+2724_daily_bin1086.fits
Spacecraft file(s): /scratch/kocevski/437872/ft2_4FGL_J0941.9+2724_daily_bin1086.fits
Exposure map: /scratch/kocevski/437872/expmap_520819201_521078401_4FGL_J0941.9+2724_daily_bin1086.fits
Exposure cube: /scratch/kocevski/437872/ltcube_520819201_521078401_4FGL_J0941.9+2724_daily_bin1086.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437872/Model_4FGL_J0941.9+2724_daily_bin1086.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) = 4742.38212148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.1549       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.096       1.0000         .10000E-03   10000.    
     5 'norm      '    .10279E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    58.716       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5179       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .41547E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.735       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3035       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4713       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7628       1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8176       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.855       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10882E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93630       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4742.378     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2053 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2106        .39957E-06** at limit **
   2  Prefactor     .10000E-03    7.6392       -.68315E-07** at limit **
   3  norm          6.1237        49.159       -.61050E-07    .26606E-04
   4  Prefactor     12.097        4.9379       -.76137E-07    .63024E-04
   5  norm          .10000E-03    1.3332       -.27905E-06** at limit **
   6  Prefactor     58.770        62.534       -.17756E-05   -.69894E-04
   7  Prefactor     8.5196        4.7786       -.93830E-07    .11511E-03
   8  Prefactor     .10000E-03    102.63        .16927E-04** at limit **
   9  Prefactor     .10000E-03    16.041       -.39097E-07** at limit **
  10  Prefactor     12.734        21.918       -.26461E-06    .79080E-05
  11  Prefactor     3.3045        6.1496       -.85142E-06    .23385E-04
  12  Prefactor     1.4797        13.039       -.37879E-05    .28666E-04
  13  Prefactor     3.7642        2.8673       -.92894E-09    .22080E-03
  14  norm          .10000E-03    2.3291        .25897E-07** at limit **
  15  Prefactor     3.8188        3.6801        .54380E-07    .25059E-03
  16  Prefactor     19.859        54.897       -.98437E-06    .95434E-06
  17  Prefactor     .10000E-03    1.8785        .49020E-07** at limit **
  18  Prefactor     .10000E-03    23.364        .45106E-07** at limit **
  19  Normalizat    .93599        .18051        .79445E-06    .91803E-04
  20  Prefactor     .87458        .17759        .66746E-06    .19330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.12369
  Prefactor  = 12.0971
  norm       = 0.0001
  Prefactor  = 58.7699
  Prefactor  = 8.51955
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.7343
  Prefactor  = 3.30451
  Prefactor  = 1.47969
  Prefactor  = 3.76423
  norm       = 0.0001
  Prefactor  = 3.81882
  Prefactor  = 19.8594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.935995
  Prefactor  = 0.874579
 **********
 **   18 **HESSE 
 **********

 FCN=   4742.378     FROM HESSE     STATUS=OK           295 CALLS     2348 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2403        .18048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.1237        49.428        .16182E-03   -1.5213    
   4  Prefactor     12.097        4.9403        .93962E-04   -1.5012    
   5  norm          .10000E-03    5.2226        .15082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     58.770        62.932        .52357E-04   -1.4173    
   7  Prefactor     8.5196        4.7269        .10423E-03   -1.5124    
   8  Prefactor     .10000E-03    100.78        .56576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.734        21.916        .11225E-03   -1.4994    
  11  Prefactor     3.3045        6.1274        .21959E-03   -1.5344    
  12  Prefactor     1.4797        13.064        .35426E-03   -1.5465    
  13  Prefactor     3.7642        2.8643        .95624E-04   -1.5320    
  14  norm          .10000E-03    2.3327        .10263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8188        3.6754        .12271E-03   -1.5317    
  16  Prefactor     19.859        54.926        .89887E-04   -1.4816    
  17  Prefactor     .10000E-03    1.8838        .92076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .93599        .20910        .22096E-03   -.95207    
  20  Prefactor     .87458        .20689        .24034E-03   -.97035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2131e-10
Minuit parameter uncertainties:
  1  1.41803e-05
  2  1.19341e-05
  3  34.8347
  4  4.94047
  5  5.49242e-05
  6  63.0034
  7  4.72714
  8  0.000537584
  9  2.13368e-06
  10  21.9299
  11  6.12858
  12  8.79551
  13  2.86443
  14  1.33246e-06
  15  3.67558
  16  55.0663
  17  4.39454e-07
  18  1.22129e-05
  19  0.209283
  20  0.207078
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  5.376e-04  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.746e-01  2.071e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.360e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437872/likelihoodResults_520819201_521078401_4FGL_J0941.9+2724_daily_bin1086.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) = 4742.37804224
delta logL = -4.6332281272e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4742.37804224
delta logL = -4.63274509457e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96347E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4329       1.0000          .0000       10.000    
     3 'Normalizat'    .93599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4742.378     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      216 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .42338        .14016    ** at limit **
   2  Index         2.4332        6.7726        .50000        .71294E-06
   3  Normalizat    .93600        .76469E-03    .45360E-01   -.62640E-04
   4  Prefactor     .87458        .81107E-03    .44680E-01   -.58215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43321
  Normalizat = 0.935996
  Prefactor  = 0.874577
 **********
 **   18 **HESSE 
 **********

 FCN=   4742.378     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      249 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    262.70        .48685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4332        5.1536        .50000       -.53909    
   3  Normalizat    .93600        .68834E-02    .22096E-03   -.95207    
   4  Prefactor     .87458        .73013E-02    .24034E-03   -.97035    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.36621e-09
Minuit parameter uncertainties:
  1  3.40211e-05
  2  350.184
  3  0.00688341
  4  0.00730126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437872': 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) = 4742.37799591
delta logL = 4.45652403869e-11

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  3.402e-05  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  3.502e+02  0.000e+00  1.000e+01 (-1.000e+00)
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.746e-01  7.301e-03  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.360e-01  6.883e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.494 27.414

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/437872/cmap_HighResolution_520819201_521078401_4FGL_J0941.9+2724_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-08-31 22:58:51.099824', job_id='437872', GAL2='0.87', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630475931.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.46e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1086' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:58:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 437872: <4FGL_J0941.9+2724_daily_bin1086> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin1086> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 22:45:58 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:46:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 22:46:00 2021
Terminated at Tue Aug 31 22:58:51 2021
Results reported at Tue Aug 31 22:58:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1086 145.494 27.4136 520819201 521078401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0941.9+2724 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   537.46 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             215.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

