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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin624
RA = 183.001, Dec = -23.4494
tmin = 401068801, tmax = 401328001
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='406895', job_status='RUN', time_executed='2021-09-05 03:50:55.951774', time_epoch_executed='1630839055.95' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406895

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406895/ft1_4FGL_J1212.0-2326_daily_bin624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406895/ft2_4FGL_J1212.0-2326_daily_bin624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406895/ft1_4FGL_J1212.0-2326_daily_bin624.fits outfile=/scratch/kocevski/406895/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin624.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=401068801.0 tmax=401328001.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.41
user 3.13
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/406895/ft2_4FGL_J1212.0-2326_daily_bin624.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406895/ft2_4FGL_J1212.0-2326_daily_bin624.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/406895/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin624.fits evtable="EVENTS" outfile="/scratch/kocevski/406895/ft1_filtered_4FGL_J1212.0-2326_daily_bin624.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.56
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406895/ft1_filtered_4FGL_J1212.0-2326_daily_bin624.fits" evtable="EVENTS" scfile=/scratch/kocevski/406895/ft2_4FGL_J1212.0-2326_daily_bin624.fits sctable="SC_DATA" outfile=/scratch/kocevski/406895/ltcube_401068801_401328001_4FGL_J1212.0-2326_daily_bin624.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/406895/ft2_4FGL_J1212.0-2326_daily_bin624.fits
.....................!
real 11.92
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406895/ft1_filtered_4FGL_J1212.0-2326_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/406895/ft2_4FGL_J1212.0-2326_daily_bin624.fits sctable="SC_DATA" expcube=/scratch/kocevski/406895/ltcube_401068801_401328001_4FGL_J1212.0-2326_daily_bin624.fits outfile=/scratch/kocevski/406895/expmap_401068801_401328001_4FGL_J1212.0-2326_daily_bin624.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/406895/ltcube_401068801_401328001_4FGL_J1212.0-2326_daily_bin624.fits
.....................!
real 192.59
user 186.87
sys 5.34

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/406895/ft1_filtered_4FGL_J1212.0-2326_daily_bin624.fits scfile=/scratch/kocevski/406895/ft2_4FGL_J1212.0-2326_daily_bin624.fits outfile=/scratch/kocevski/406895/cmap_401068801_401328001_4FGL_J1212.0-2326_daily_bin624.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=183.001 yref=-23.4494 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.54
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406895/ft1_filtered_4FGL_J1212.0-2326_daily_bin624.fits scfile=/scratch/kocevski/406895/ft2_4FGL_J1212.0-2326_daily_bin624.fits outfile=/scratch/kocevski/406895/cmap_HighResolution_401068801_401328001_4FGL_J1212.0-2326_daily_bin624.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=183.001 yref=-23.4494 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.63
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406895/ft1_filtered_4FGL_J1212.0-2326_daily_bin624.fits evtable="EVENTS" scfile=/scratch/kocevski/406895/ft2_4FGL_J1212.0-2326_daily_bin624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406895/Model_4FGL_J1212.0-2326_daily_bin624.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/406895/ft1_filtered_4FGL_J1212.0-2326_daily_bin624.fits.....................!
real 60.19
user 58.82
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406895/ft1_filtered_4FGL_J1212.0-2326_daily_bin624.fits', '/scratch/kocevski/406895/ft2_4FGL_J1212.0-2326_daily_bin624.fits', expMap='/scratch/kocevski/406895/expmap_401068801_401328001_4FGL_J1212.0-2326_daily_bin624.fits', expCube='/scratch/kocevski/406895/ltcube_401068801_401328001_4FGL_J1212.0-2326_daily_bin624.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406895/Model_4FGL_J1212.0-2326_daily_bin624.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/406895/ft1_filtered_4FGL_J1212.0-2326_daily_bin624.fits
Spacecraft file(s): /scratch/kocevski/406895/ft2_4FGL_J1212.0-2326_daily_bin624.fits
Exposure map: /scratch/kocevski/406895/expmap_401068801_401328001_4FGL_J1212.0-2326_daily_bin624.fits
Exposure cube: /scratch/kocevski/406895/ltcube_401068801_401328001_4FGL_J1212.0-2326_daily_bin624.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406895/Model_4FGL_J1212.0-2326_daily_bin624.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) = 6618.47849844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0627       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.523       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.011       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7280       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.757       1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.864       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1796       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43153       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0517       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.8966       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.3157       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4793       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96335       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6618.465     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2702 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0737        .15270E-05** at limit **
   2  Prefactor     .10000E-03    46.564        .35979E-04** at limit **
   3  norm          2.0627        1.4818       -.10300E-06   -.43591E-03
   4  Prefactor     32.523        36.243       -.51427E-06    .22177E-05
   5  Prefactor     .10000E-03    2.1105        .20957E-07** at limit **
   6  Prefactor     .10000E-03    48.953        .42893E-04** at limit **
   7  norm          10.011        21.159       -.45203E-06   -.12244E-04
   8  Prefactor     .10000E-03    8.0496        .24980E-05** at limit **
   9  norm          1.7265        3.5101       -.11283E-06   -.73430E-03
  10  Prefactor     .10000E-03    7.8995        .37888E-05** at limit **
  11  Prefactor     19.746        40.331       -.14549E-04   -.21292E-04
  12  Prefactor     61.854        43.094       -.79322E-05   -.50187E-04
  13  Prefactor     .10000E-03    10.887        .58736E-05** at limit **
  14  Prefactor     3.1740        54.654       -.51270E-05   -.42719E-04
  15  Prefactor     .10000E-03    36.216       -.36734E-04** at limit **
  16  Prefactor     .42708        4.8200       -.20319E-05   -.16617E-03
  17  Prefactor     8.0520        2.9529        .28388E-06    .27679E-02
  18  Prefactor     .10000E-03    9.2274       -.93806E-05** at limit **
  19  norm          6.8966        1.8921        .22240E-07    .66671E-03
  20  Prefactor     .10000E-03    78.835       -.60113E-04** at limit **
  21  norm          9.3177        7.8754        .19019E-07    .47202E-03
  22  Prefactor     .10000E-03    6.2057       -.25403E-05** at limit **
  23  Normalizat    1.4793        .27669        .17178E-05    .10602E-03
  24  Prefactor     .96336        .13371        .83803E-06    .20216E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.06271
  Prefactor  = 32.5228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0109
  Prefactor  = 0.0001
  norm       = 1.72653
  Prefactor  = 0.000100001
  Prefactor  = 19.7459
  Prefactor  = 61.8536
  Prefactor  = 0.0001
  Prefactor  = 3.17402
  Prefactor  = 0.0001
  Prefactor  = 0.427077
  Prefactor  = 8.052
  Prefactor  = 0.0001
  norm       = 6.89662
  Prefactor  = 0.0001
  norm       = 9.31765
  Prefactor  = 0.0001
  Normalizat = 1.47932
  Prefactor  = 0.963356
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.465     FROM HESSE     STATUS=OK           395 CALLS     3097 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0627        1.4799        .81133E-04   -1.5421    
   4  Prefactor     32.523        36.255        .70262E-04   -1.4567    
   5  Prefactor     .10000E-03    2.1160        .11540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.011        21.188        .12664E-03   -1.5075    
   8  Prefactor     .10000E-03    8.0641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7265        3.4755        .20874E-03   -1.5445    
  10  Prefactor     .10000E-03    8.0271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.746        40.270        .90109E-04   -1.4819    
  12  Prefactor     61.854        43.136        .51016E-04   -1.4133    
  13  Prefactor     .10000E-03    10.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1740        54.642        .22726E-03   -1.5352    
  15  Prefactor     .10000E-03    36.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .42708        13.949        .33831E-02   -1.5577    
  17  Prefactor     8.0520        2.9635        .40426E-03   -1.5140    
  18  Prefactor     .10000E-03    9.2532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.8966        1.8921        .55932E-04   -1.5183    
  20  Prefactor     .10000E-03    78.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.3177        7.8505        .13131E-03   -1.5097    
  22  Prefactor     .10000E-03    6.2564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4793        .32991        .35548E-03   -.78361    
  24  Prefactor     .96336        .15997        .20819E-03   -.93961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34336e-08
Minuit parameter uncertainties:
  1  6.39543e-06
  2  0.00010194
  3  1.47998
  4  36.2793
  5  1.79216e-08
  6  0.000215701
  7  21.2034
  8  3.05059e-05
  9  3.47587
  10  0.00017465
  11  40.3252
  12  43.1574
  13  6.10177e-05
  14  26.3668
  15  0.000178081
  16  4.88216
  17  2.96351
  18  1.30067e-07
  19  1.89213
  20  2.31159e-05
  21  7.85133
  22  4.31215e-06
  23  0.330389
  24  0.16005
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  6.102e-05  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.634e-01  1.601e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.479e+00  3.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 6.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406895/likelihoodResults_401068801_401328001_4FGL_J1212.0-2326_daily_bin624.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) = 6618.46584194
delta logL = -0.00043681180432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6618.46540508
delta logL = 5.22750269738e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8779       1.0000          .0000       10.000    
     3 'Normalizat'    1.4793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96336       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   6618.465     FROM MIGRAD    STATUS=FAILED        89 CALLS      242 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10169E-03    111.45        .18142E-02** at limit **
   2  Index         1.8050        7.0557        .50000        .11209E-04
   3  Normalizat    1.4793        .22088E-01    .35548E-03    .11961E-04
   4  Prefactor     .96336        .10799E-01    .20819E-03    .61161E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6618.465     FROM SIMPLEX   STATUS=UNCHANGED    129 CALLS      371 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10169E-03    111.45        .47880E-03** at limit **
   2  Index         1.8050        7.0557        .69979E-03    .11209E-04
   3  Normalizat    1.4793        .22088E-01    .39586E-05    .11961E-04
   4  Prefactor     .96336        .10799E-01    .19159E-05    .61161E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6618.465     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      417 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    136.49        .36285E-02** at limit **
   2  Index         1.4164        7.1271        .50000        .20184E-06
   3  Normalizat    1.4793        .22816E-01    .14219E-04   -.51490E-04
   4  Prefactor     .96336        .11155E-01    .83275E-05   -.91196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.41637
  Normalizat = 1.47932
  Prefactor  = 0.963355
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.465     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    693.80        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4164        8.6584        .50000       -.79910    
   3  Normalizat    1.4793        .54649E-01    .28438E-05   -.78361    
   4  Prefactor     .96336        .26715E-01    .16655E-05   -.93961    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29017e-09
Minuit parameter uncertainties:
  1  0.00155094
  2  1615.47
  3  0.0546517
  4  0.0267156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406895': 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) = 6618.46540427
delta logL = 8.57471604832e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.551e-03  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.416e+00  1.615e+03  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.634e-01  2.672e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.479e+00  5.465e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

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/406895/cmap_HighResolution_401068801_401328001_4FGL_J1212.0-2326_daily_bin624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-05 04:02:50.707340', job_id='406895', GAL2='0.96', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1630839770.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='8.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='624' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:02:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 406895: <4FGL_J1212.0-2326_daily_bin624> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin624> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 03:50:38 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:50:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:50:39 2021
Terminated at Sun Sep  5 04:02:51 2021
Results reported at Sun Sep  5 04:02:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin624 183.001 -23.4494 401068801 401328001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   709.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            733 sec.

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

